Release ccsdk/sli/adaptors
[ccsdk/sli/adaptors.git] / features / installer / pom.xml
1 <?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
5         <parent>
6                 <groupId>org.onap.ccsdk.parent</groupId>
7                 <artifactId>odlparent-lite</artifactId>
8                 <version>2.0.0</version>
9                 <relativePath/>
10         </parent>
11
12         <groupId>org.onap.ccsdk.sli.adaptors</groupId>
13         <artifactId>sliadaptors-features-installer</artifactId>
14         <version>1.0.0</version>
15         <packaging>pom</packaging>
16
17         <name>ccsdk-sli-adaptors :: features :: ${project.artifactId}</name>
18
19         <properties>
20                 <application.name>ccsdk-sli-adaptors-all</application.name>
21                 <features.boot>${application.name}</features.boot>
22                 <features.repositories>mvn:org.onap.ccsdk.sli.adaptors/${features.boot}/${project.version}/xml/features</features.repositories>
23                 <include.transitive.dependencies>false</include.transitive.dependencies>
24         </properties>
25
26         <dependencies>
27                 <dependency>
28                         <groupId>org.onap.ccsdk.sli.adaptors</groupId>
29                         <artifactId>ccsdk-aai-service</artifactId>
30                         <version>${project.version}</version>
31                         <type>xml</type>
32                         <classifier>features</classifier>
33                         <exclusions>
34                                 <exclusion>
35                                         <groupId>*</groupId>
36                                         <artifactId>*</artifactId>
37                                 </exclusion>
38                         </exclusions>
39                 </dependency>
40                 <dependency>
41                         <groupId>org.onap.ccsdk.sli.adaptors</groupId>
42                         <artifactId>ccsdk-ansible-adapter</artifactId>
43                         <version>${project.version}</version>
44                         <type>xml</type>
45                         <classifier>features</classifier>
46                         <exclusions>
47                                 <exclusion>
48                                         <groupId>*</groupId>
49                                         <artifactId>*</artifactId>
50                                 </exclusion>
51                         </exclusions>
52                 </dependency>
53                 <dependency>
54                         <groupId>org.onap.ccsdk.sli.adaptors</groupId>
55                         <artifactId>ccsdk-base-http</artifactId>
56                         <version>${project.version}</version>
57                         <type>xml</type>
58                         <classifier>features</classifier>
59                         <exclusions>
60                                 <exclusion>
61                                         <groupId>*</groupId>
62                                         <artifactId>*</artifactId>
63                                 </exclusion>
64                         </exclusions>
65                 </dependency>
66                 <dependency>
67                         <groupId>org.onap.ccsdk.sli.adaptors</groupId>
68                         <artifactId>ccsdk-mdsal-resource</artifactId>
69                         <version>${project.version}</version>
70                         <type>xml</type>
71                         <classifier>features</classifier>
72                         <exclusions>
73                                 <exclusion>
74                                         <groupId>*</groupId>
75                                         <artifactId>*</artifactId>
76                                 </exclusion>
77                         </exclusions>
78                 </dependency>
79                 <dependency>
80                         <groupId>org.onap.ccsdk.sli.adaptors.messagerouter</groupId>
81                         <artifactId>ccsdk-messagerouter-consumer</artifactId>
82                         <version>${project.version}</version>
83                         <type>xml</type>
84                         <classifier>features</classifier>
85                         <exclusions>
86                                 <exclusion>
87                                         <groupId>*</groupId>
88                                         <artifactId>*</artifactId>
89                                 </exclusion>
90                         </exclusions>
91                 </dependency>
92                 <dependency>
93                         <groupId>org.onap.ccsdk.sli.adaptors.messagerouter</groupId>
94                         <artifactId>ccsdk-messagerouter-publisher</artifactId>
95                         <version>${project.version}</version>
96                         <type>xml</type>
97                         <classifier>features</classifier>
98                         <exclusions>
99                                 <exclusion>
100                                         <groupId>*</groupId>
101                                         <artifactId>*</artifactId>
102                                 </exclusion>
103                         </exclusions>
104                 </dependency>
105                 <dependency>
106                         <groupId>org.onap.ccsdk.sli.adaptors</groupId>
107                         <artifactId>ccsdk-netbox-client</artifactId>
108                         <version>${project.version}</version>
109                         <type>xml</type>
110                         <classifier>features</classifier>
111                         <exclusions>
112                                 <exclusion>
113                                         <groupId>*</groupId>
114                                         <artifactId>*</artifactId>
115                                 </exclusion>
116                         </exclusions>
117                 </dependency>
118                 <dependency>
119                         <groupId>org.onap.ccsdk.sli.adaptors</groupId>
120                         <artifactId>ccsdk-resource-assignment</artifactId>
121                         <version>${project.version}</version>
122                         <type>xml</type>
123                         <classifier>features</classifier>
124                         <exclusions>
125                                 <exclusion>
126                                         <groupId>*</groupId>
127                                         <artifactId>*</artifactId>
128                                 </exclusion>
129                         </exclusions>
130                 </dependency>
131                 <dependency>
132                         <groupId>org.onap.ccsdk.sli.adaptors</groupId>
133                         <artifactId>ccsdk-saltstack-adapter</artifactId>
134                         <version>${project.version}</version>
135                         <type>xml</type>
136                         <classifier>features</classifier>
137                         <exclusions>
138                                 <exclusion>
139                                         <groupId>*</groupId>
140                                         <artifactId>*</artifactId>
141                                 </exclusion>
142                         </exclusions>
143                 </dependency>
144                 <dependency>
145                         <groupId>org.onap.ccsdk.sli.adaptors</groupId>
146                         <artifactId>ccsdk-sql-resource</artifactId>
147                         <version>${project.version}</version>
148                         <type>xml</type>
149                         <classifier>features</classifier>
150                         <exclusions>
151                                 <exclusion>
152                                         <groupId>*</groupId>
153                                         <artifactId>*</artifactId>
154                                 </exclusion>
155                         </exclusions>
156                 </dependency>
157                 <dependency>
158                         <groupId>org.onap.ccsdk.sli.adaptors</groupId>
159                         <artifactId>${application.name}</artifactId>
160                         <version>${project.version}</version>
161                         <type>xml</type>
162                         <classifier>features</classifier>
163                         <exclusions>
164                                 <exclusion>
165                                         <groupId>*</groupId>
166                                         <artifactId>*</artifactId>
167                                 </exclusion>
168                         </exclusions>
169                 </dependency>
170
171
172         </dependencies>
173
174         <build>
175                 <plugins>
176                         <plugin>
177                                 <artifactId>maven-assembly-plugin</artifactId>
178                                 <executions>
179                                         <execution>
180                                                 <id>maven-repo-zip</id>
181                                                 <goals>
182                                                         <goal>single</goal>
183                                                 </goals>
184                                                 <phase>package</phase>
185                                                 <configuration>
186                                                         <attach>true</attach>
187                                                         <finalName>stage/${application.name}-${project.version}</finalName>
188                                                         <descriptors>
189                                                                 <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor>
190                                                         </descriptors>
191                                                         <appendAssemblyId>true</appendAssemblyId>
192                                                 </configuration>
193                                         </execution>
194                                         <execution>
195                                                 <id>installer-zip</id>
196                                                 <goals>
197                                                         <goal>single</goal>
198                                                 </goals>
199                                                 <phase>package</phase>
200                                                 <configuration>
201                                                         <attach>true</attach>
202                                                         <finalName>${application.name}-${project.version}-installer</finalName>
203                                                         <descriptors>
204                                                                 <descriptor>src/assembly/assemble_installer_zip.xml</descriptor>
205                                                         </descriptors>
206                                                         <appendAssemblyId>false</appendAssemblyId>
207                                                 </configuration>
208                                         </execution>
209                                 </executions>
210                         </plugin>
211                         <plugin>
212                                 <groupId>org.apache.maven.plugins</groupId>
213                                 <artifactId>maven-dependency-plugin</artifactId>
214                                 <executions>
215                                         <execution>
216                                                 <id>copy-dependencies</id>
217                                                 <goals>
218                                                         <goal>copy-dependencies</goal>
219                                                 </goals>
220                                                 <phase>prepare-package</phase>
221                                                 <configuration>
222                                                         <transitive>false</transitive>
223                                                         <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
224                                                         <overWriteReleases>false</overWriteReleases>
225                                                         <overWriteSnapshots>true</overWriteSnapshots>
226                                                         <overWriteIfNewer>true</overWriteIfNewer>
227                                                         <useRepositoryLayout>true</useRepositoryLayout>
228                                                         <addParentPoms>false</addParentPoms>
229                                                         <copyPom>false</copyPom>
230                              <includeGroupIds>org.onap.ccsdk.sli.adaptors</includeGroupIds>
231                                                         <scope>provided</scope>
232                                                 </configuration>
233                                         </execution>
234                                 </executions>
235                         </plugin>
236                         <plugin>
237                                 <artifactId>maven-resources-plugin</artifactId>
238                                 <version>2.6</version>
239                                 <executions>
240                                         <execution>
241                                                 <id>copy-version</id>
242                                                 <goals>
243                                                         <goal>copy-resources</goal>
244                                                 </goals><!-- here the phase you need -->
245                                                 <phase>validate</phase>
246                                                 <configuration>
247                                                         <outputDirectory>${basedir}/target/stage</outputDirectory>
248                                                         <resources>
249                                                                 <resource>
250                                                                         <directory>src/main/resources/scripts</directory>
251                                                                         <includes>
252                                                                                 <include>install-feature.sh</include>
253                                                                         </includes>
254                                                                         <filtering>true</filtering>
255                                                                 </resource>
256                                                         </resources>
257                                                 </configuration>
258                                         </execution>
259
260                                 </executions>
261                         </plugin>
262
263                 </plugins>
264         </build>
265 </project>