blob: 60f4ca8ec2a9952984da392aed790ed5bb9d0c70 [file] [log] [blame]
Patrick Brady57b5eef2017-02-10 15:00:49 -08001<?xml version="1.0" encoding="UTF-8"?>
2<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3 <modelVersion>4.0.0</modelVersion>
4 <parent>
5 <artifactId>appc-iaas-adapter</artifactId>
6 <groupId>org.openecomp.appc</groupId>
Jessica Wagantall65367992017-11-16 17:22:13 -08007 <version>1.3.0-SNAPSHOT</version>
Patrick Brady57b5eef2017-02-10 15:00:49 -08008 </parent>
9 <artifactId>appc-iaas-adapter-installer</artifactId>
10 <name>IaaS Adapter - Karaf Installer</name>
11 <packaging>pom</packaging>
12
13 <properties>
14 <application.name>appc-iaas-adapter</application.name>
15 <features.boot>appc-iaas-adapter</features.boot>
16 <features.repositories>mvn:org.openecomp.appc/appc-iaas-adapter-features/${project.version}/xml/features</features.repositories>
17 <include.transitive.dependencies>false</include.transitive.dependencies>
18 </properties>
19
20 <dependencies>
21 <dependency>
22 <groupId>org.openecomp.appc</groupId>
23 <artifactId>appc-iaas-adapter-features</artifactId>
24 <classifier>features</classifier>
25 <type>xml</type>
26 <exclusions>
27 <exclusion>
28 <groupId>*</groupId>
29 <artifactId>*</artifactId>
30 </exclusion>
31 </exclusions>
32 </dependency>
33
34 <dependency>
35 <groupId>org.openecomp.appc</groupId>
36 <artifactId>appc-iaas-adapter-bundle</artifactId>
37 <version>${project.version}</version>
38 </dependency>
39 </dependencies>
40
41 <build>
42 <plugins>
43 <plugin>
44 <artifactId>maven-assembly-plugin</artifactId>
45 <executions>
46 <execution>
47 <id>mvn-repo-zip</id>
48 <goals>
49 <goal>single</goal>
50 </goals>
51 <phase>package</phase>
52 <configuration>
53 <appendAssemblyId>false</appendAssemblyId>
54 <attach>false</attach>
55 <finalName>stage/${application.name}-${project.version}</finalName>
56 <descriptors>
57 <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor>
58 </descriptors>
59 </configuration>
60 </execution>
61 <execution>
62 <id>installer-zip</id>
63 <goals>
64 <goal>single</goal>
65 </goals>
66 <phase>package</phase>
67 <configuration>
68 <appendAssemblyId>false</appendAssemblyId>
69 <attach>true</attach>
70 <finalName>${application.name}-${project.version}</finalName>
71 <descriptors>
72 <descriptor>src/assembly/assemble_installer_zip.xml</descriptor>
73 </descriptors>
74 </configuration>
75 </execution>
76 </executions>
77 </plugin>
78 <plugin>
79 <groupId>org.apache.maven.plugins</groupId>
80 <artifactId>maven-dependency-plugin</artifactId>
81 <executions>
82 <execution>
83 <id>copy-dependencies</id>
84 <goals>
85 <goal>copy-dependencies</goal>
86 </goals>
87 <phase>prepare-package</phase>
88 <configuration>
89 <transitive>false</transitive>
90 <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
91 <overWriteReleases>false</overWriteReleases>
92 <overWriteSnapshots>true</overWriteSnapshots>
93 <overWriteIfNewer>true</overWriteIfNewer>
94 <useRepositoryLayout>true</useRepositoryLayout>
95 <addParentPoms>false</addParentPoms>
96 <copyPom>false</copyPom>
97 <excludeGroupIds>org.opendaylight</excludeGroupIds>
98 <scope>provided</scope>
99 </configuration>
100 </execution>
101 </executions>
102 </plugin>
103 <plugin>
104 <artifactId>maven-resources-plugin</artifactId>
105 <executions>
106 <execution>
107 <id>copy-version</id>
108 <goals>
109 <goal>copy-resources</goal>
110 </goals>
111 <!-- here the phase you need -->
112 <phase>validate</phase>
113 <configuration>
114 <outputDirectory>${basedir}/target/stage</outputDirectory>
115 <resources>
116 <resource>
117 <directory>src/main/resources/scripts</directory>
118 <includes>
119 <include>install-feature.sh</include>
120 </includes>
121 <filtering>true</filtering>
122 </resource>
123 </resources>
124 </configuration>
125 </execution>
126 </executions>
127 </plugin>
128
129 </plugins>
130 </build>
131
132</project>