Moving CCSDK/Features and ORAN Features from CCSDK/distribution
[sdnc/oam.git] / installation / sdnc / 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.sdnc.oam</groupId>
7         <artifactId>installation</artifactId>
8         <version>2.2.0-SNAPSHOT</version>
9     </parent>
10
11     <artifactId>installation-sdnc</artifactId>
12     <packaging>pom</packaging>
13
14     <name>sdnc-oam :: installation :: ${project.artifactId}</name>
15     <description>Creates SDN Controller Docker container</description>
16     <organization>
17         <name>ONAP</name>
18     </organization>
19
20     <properties>
21         <image.name>onap/sdnc-aaf-image</image.name>
22         <standalone.image.name>onap/sdnc-image</standalone.image.name>
23         <ccsdk.docker.version>${ccsdk.docker.odlsli.alpine.version}</ccsdk.docker.version>
24         <sdnc.keystore>org.onap.sdnc.p12</sdnc.keystore>
25         <sdnc.keypass><![CDATA[;:G58,7ZhqOSI:7^oZCY[9Dv]]></sdnc.keypass>
26         <sdnc.secureport>8443</sdnc.secureport>
27
28         <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
29         <sdnc.build.timestamp>${maven.build.timestamp}</sdnc.build.timestamp>
30
31         <docker.buildArg.https_proxy>${https_proxy}</docker.buildArg.https_proxy>
32         <docker.autoCreateCustomNetworks>true</docker.autoCreateCustomNetworks>
33     </properties>
34
35     <dependencies>
36         <dependency>
37             <groupId>org.onap.sdnc.northbound</groupId>
38             <artifactId>generic-resource-api-installer</artifactId>
39             <version>${sdnc.northbound.version}</version>
40             <type>zip</type>
41             <classifier>repo</classifier>
42         </dependency>
43         <dependency>
44             <groupId>org.onap.sdnc.northbound</groupId>
45             <artifactId>optical-service-installer</artifactId>
46             <version>${sdnc.northbound.version}</version>
47             <type>zip</type>
48             <classifier>repo</classifier>
49         </dependency>
50         <dependency>
51             <groupId>org.onap.sdnc.northbound</groupId>
52             <artifactId>vnftools-installer</artifactId>
53             <version>${sdnc.northbound.version}</version>
54             <type>zip</type>
55             <classifier>repo</classifier>
56         </dependency>
57         <dependency>
58             <groupId>org.onap.sdnc.northbound</groupId>
59             <artifactId>sdnc-northbound-features-installer</artifactId>
60             <version>${sdnc.northbound.version}</version>
61             <type>zip</type>
62             <classifier>repo</classifier>
63         </dependency>
64         <!-- SDNR Related Features : Start -->
65         <dependency>
66             <groupId>org.onap.ccsdk.features</groupId>
67             <artifactId>features-installer</artifactId>
68             <version>${ccsdk.features.version}</version>
69             <type>zip</type>
70             <classifier>repo</classifier>
71         </dependency>
72         <dependency>
73             <groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
74             <artifactId>sdnr-wt-feature-aggregator-installer</artifactId>
75             <version>${ccsdk.features.version}</version>
76             <type>zip</type>
77             <classifier>repo</classifier>
78         </dependency>
79         <dependency>
80             <groupId>org.onap.ccsdk.features</groupId>
81             <artifactId>aafshiro-installer</artifactId>
82             <version>${ccsdk.features.version}</version>
83             <type>zip</type>
84             <classifier>repo</classifier>
85         </dependency>
86         <dependency>
87             <groupId>org.onap.ccsdk.features.sdnr.northbound</groupId>
88             <artifactId>sdnr-northbound-features-installer</artifactId>
89             <version>${ccsdk.features.version}</version>
90             <type>zip</type>
91             <classifier>repo</classifier>
92         </dependency>
93         <dependency>
94             <groupId>org.onap.ccsdk.features.sdnr.northbound</groupId>
95             <artifactId>oofpcipoc-installer</artifactId>
96             <version>${ccsdk.features.version}</version>
97             <type>zip</type>
98             <classifier>repo</classifier>
99         </dependency>
100         <dependency>
101             <groupId>org.onap.ccsdk.features.sdnr.northbound</groupId>
102             <artifactId>CMNotify-installer</artifactId>
103             <version>${ccsdk.features.version}</version>
104             <type>zip</type>
105             <classifier>repo</classifier>
106         </dependency>
107         <dependency>
108             <groupId>org.onap.ccsdk.features.sdnr.northbound</groupId>
109             <artifactId>ranSlice-installer</artifactId>
110             <version>${ccsdk.features.version}</version>
111             <type>zip</type>
112             <classifier>repo</classifier>
113         </dependency>
114         <dependency>
115             <groupId>org.onap.ccsdk.oran</groupId>
116             <artifactId>a1-adapter-northbound-installer</artifactId>
117             <version>${ccsdk.oran.a1adapter.version}</version>
118             <type>zip</type>
119             <classifier>repo</classifier>
120         </dependency>
121         <dependency>
122             <groupId>org.onap.ccsdk.oran</groupId>
123             <artifactId>a1-adapter-installer</artifactId>
124             <version>${ccsdk.oran.a1adapter.version}</version>
125             <type>zip</type>
126             <classifier>repo</classifier>
127         </dependency>
128         <!-- SDNR Related Features : End -->
129     </dependencies>
130
131     <build>
132         <plugins>
133             <plugin>
134                 <groupId>org.codehaus.groovy.maven</groupId>
135                 <artifactId>gmaven-plugin</artifactId>
136                 <version>1.0</version>
137                 <executions>
138                     <execution>
139                         <phase>validate</phase>
140                         <goals>
141                             <goal>execute</goal>
142                         </goals>
143                         <configuration>
144                             <source>${basedir}/../TagVersion.groovy</source>
145                         </configuration>
146                     </execution>
147                 </executions>
148             </plugin>
149
150             <plugin>
151                 <groupId>io.fabric8</groupId>
152                 <artifactId>docker-maven-plugin</artifactId>
153                 <version>0.34.0</version>
154                 <inherited>false</inherited>
155                 <configuration>
156                     <images>
157                         <image>
158                             <name>${image.name}</name>
159                             <build>
160                                 <cleanup>try</cleanup>
161                                 <noCache>true</noCache>
162                                 <contextDir>${basedir}/target/docker-stage</contextDir>
163                                 <dockerFile>Dockerfile</dockerFile>
164                                 <args>
165                                     <AAF>true</AAF>
166                                 </args>
167                                 <tags>
168                                     <tag>${project.docker.latestminortag.version}</tag>
169                                     <tag>${project.docker.latestfulltag.version}</tag>
170                                     <tag>${project.docker.latesttagtimestamp.version}</tag>
171                                 </tags>
172                             </build>
173                         </image>
174                         <image>
175                             <name>${standalone.image.name}</name>
176                             <build>
177                                 <cleanup>try</cleanup>
178                                 <noCache>true</noCache>
179                                 <contextDir>${basedir}/target/docker-stage</contextDir>
180                                 <dockerFile>Dockerfile</dockerFile>
181                                 <args>
182                                     <AAF>false</AAF>
183                                 </args>
184                                 <tags>
185                                     <tag>${project.docker.latestminortag.version}</tag>
186                                     <tag>${project.docker.latestfulltag.version}</tag>
187                                     <tag>${project.docker.latesttagtimestamp.version}</tag>
188                                 </tags>
189                             </build>
190                         </image>
191                     </images>
192                     <verbose>${docker.verbose}</verbose>
193                     <skipPush>${docker.skip.push}</skipPush>
194                 </configuration>
195                 <executions>
196                     <execution>
197                         <id>build-push-images</id>
198                         <goals>
199                             <goal>build</goal>
200                             <goal>push</goal>
201                         </goals>
202                     </execution>
203                 </executions>
204             </plugin>
205             <plugin>
206                 <artifactId>maven-resources-plugin</artifactId>
207                 <version>2.6</version>
208                 <executions>
209                     <execution>
210                         <id>copy-dockerfile</id>
211                         <goals>
212                             <goal>copy-resources</goal>
213                         </goals>
214                         <!-- here the phase you need -->
215                         <phase>validate</phase>
216                         <configuration>
217                             <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
218                             <resources>
219                                 <resource>
220                                     <directory>src/main/docker</directory>
221                                     <includes>
222                                         <include>Dockerfile</include>
223                                     </includes>
224                                     <filtering>true</filtering>
225                                 </resource>
226                             </resources>
227                         </configuration>
228                     </execution>
229                     <execution>
230                         <id>copy-scripts</id>
231                         <goals>
232                             <goal>copy-resources</goal>
233                         </goals>
234                         <!-- here the phase you need -->
235                         <phase>validate</phase>
236                         <configuration>
237                             <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/bin</outputDirectory>
238                             <resources>
239                                 <resource>
240                                     <directory>src/main/scripts</directory>
241                                     <includes>
242                                         <include>*.py</include>
243                                         <include>*.sh</include>
244                                     </includes>
245                                     <filtering>true</filtering>
246                                 </resource>
247                             </resources>
248                         </configuration>
249                     </execution>
250                     <execution>
251                         <id>copy-tarballs</id>
252                         <goals>
253                             <goal>copy-resources</goal>
254                         </goals>
255                         <!-- here the phase you need -->
256                         <phase>validate</phase>
257                         <configuration>
258                             <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
259                             <resources>
260                                 <resource>
261                                     <directory>src/main/resources</directory>
262                                     <includes>
263                                         <include>idmlight.db.mv.db</include>
264                                         <include>truststoreONAPall.jks</include>
265                                         <include>aaa-app-config.xml</include>
266                                     </includes>
267                                     <filtering>false</filtering>
268                                 </resource>
269                             </resources>
270                         </configuration>
271                     </execution>
272                     <execution>
273                         <id>copy-data</id>
274                         <goals>
275                             <goal>copy-resources</goal>
276                         </goals>
277                         <!-- here the phase you need -->
278                         <phase>validate</phase>
279                         <configuration>
280                             <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data</outputDirectory>
281                             <resources>
282                                 <resource>
283                                     <directory>src/main/resources</directory>
284                                     <includes>
285                                         <include>*.dump</include>
286                                         <include>oauth-aaa-app-config.xml</include>
287                                     </includes>
288                                     <filtering>false</filtering>
289                                 </resource>
290                             </resources>
291                         </configuration>
292                     </execution>
293                     <execution>
294                         <id>copy-properties</id>
295                         <goals>
296                             <goal>copy-resources</goal>
297                         </goals>
298                         <!-- here the phase you need -->
299                         <phase>validate</phase>
300                         <configuration>
301                             <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/properties</outputDirectory>
302                             <resources>
303                                 <resource>
304                                     <directory>../src/main/properties</directory>
305                                     <includes>
306                                         <include>*.properties</include>
307                                         <include>*.props</include>
308                                         <include>*.csv</include>
309                                     </includes>
310                                     <filtering>false</filtering>
311                                 </resource>
312                             </resources>
313                         </configuration>
314                     </execution>
315                     <execution>
316                         <id>copy-keystores</id>
317                         <goals>
318                             <goal>copy-resources</goal>
319                         </goals>
320                         <!-- here the phase you need -->
321                         <phase>validate</phase>
322                         <configuration>
323                             <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/stores</outputDirectory>
324                             <resources>
325                                 <resource>
326                                     <directory>../src/main/stores</directory>
327                                     <includes>
328                                         <include>*.jks</include>
329                                         <include>*.keyfile</include>
330                                         <include>*.p12</include>
331                                     </includes>
332                                     <filtering>false</filtering>
333                                 </resource>
334                             </resources>
335                         </configuration>
336                     </execution>
337                 </executions>
338             </plugin>
339             <plugin>
340                 <groupId>org.apache.maven.plugins</groupId>
341                 <artifactId>maven-dependency-plugin</artifactId>
342                 <version>3.0.2</version>
343                 <executions>
344                     <execution>
345                         <id>unpack-sdnc-features</id>
346                         <phase>generate-sources</phase>
347                         <goals>
348                             <goal>unpack-dependencies</goal>
349                         </goals>
350                         <configuration>
351                             <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
352                             <excludeTransitive>true</excludeTransitive>
353                         </configuration>
354                     </execution>
355                     <execution>
356                         <id>unpack-platform-logic</id>
357                         <phase>generate-sources</phase>
358                         <goals>
359                             <goal>unpack</goal>
360                         </goals>
361                         <configuration>
362                             <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc</outputDirectory>
363                             <artifactItems>
364                                 <artifactItem>
365                                     <groupId>${project.groupId}</groupId>
366                                     <artifactId>platform-logic-installer</artifactId>
367                                     <version>${project.version}</version>
368                                     <type>zip</type>
369                                 </artifactItem>
370                             </artifactItems>
371                         </configuration>
372                     </execution>
373                     <execution>
374                         <id>unpack-data-migrator</id>
375                         <phase>generate-sources</phase>
376                         <goals>
377                             <goal>unpack</goal>
378                         </goals>
379                         <configuration>
380                             <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data-migrator</outputDirectory>
381                             <artifactItems>
382                                 <artifactItem>
383                                     <groupId>org.onap.sdnc.oam</groupId>
384                                     <artifactId>data-migrator</artifactId>
385                                     <version>${project.version}</version>
386                                     <type>zip</type>
387                                 </artifactItem>
388                             </artifactItems>
389                         </configuration>
390                     </execution>
391                 </executions>
392             </plugin>
393             <plugin>
394                 <groupId>org.apache.maven.plugins</groupId>
395                 <artifactId>maven-antrun-plugin</artifactId>
396                 <version>1.8</version>
397                 <executions>
398                     <execution>
399                         <id>change-shell-permissions</id>
400                         <phase>process-sources</phase>
401                         <configuration>
402                             <target>
403                                 <chmod dir="${basedir}/target/docker-stage/opt/onap/sdnc" perm="+x" includes="**/*.sh"/>
404                             </target>
405                         </configuration>
406                         <goals>
407                             <goal>run</goal>
408                         </goals>
409                     </execution>
410                 </executions>
411             </plugin>
412             <plugin>
413                 <groupId>org.apache.maven.plugins</groupId>
414                 <artifactId>maven-failsafe-plugin</artifactId>
415                 <executions>
416                     <execution>
417                         <goals>
418                             <goal>integration-test</goal>
419                             <goal>verify</goal>
420                         </goals>
421                     </execution>
422                 </executions>
423                 <configuration>
424                     <skipITs>false</skipITs>
425                     <environmentVariables>
426                         <SDNC_PORT>${sdnc.port}</SDNC_PORT>
427                     </environmentVariables>
428                 </configuration>
429             </plugin>
430         </plugins>
431     </build>
432 </project>