20128773221623a986c7eaa7d2e889d5cd118e7d
[ccsdk/distribution.git] / odlsli / odlsli-alpine / 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-SNAPSHOT</version>
9         <relativePath/>
10     </parent>
11
12     <groupId>org.onap.ccsdk.distribution</groupId>
13     <artifactId>distribution-odlsli-alpine</artifactId>
14     <version>1.0.0-SNAPSHOT</version>
15     <packaging>pom</packaging>
16
17     <name>ccsdk-distribution :: odlsli-alpine</name>
18     <description>Creates Alpine-based ODLSLI Docker container</description>
19     <organization>
20         <name>openECOMP</name>
21     </organization>
22
23     <properties>
24         <base.image.name>onap/ccsdk-odl-neon-alpine-image</base.image.name>
25         <image.name>onap/ccsdk-odlsli-alpine-image</image.name>
26         <ccsdk.project.version>${project.version}</ccsdk.project.version>
27         <ccsdk.build.timestamp>${maven.build.timestamp}</ccsdk.build.timestamp>
28         <docker.buildArg.https_proxy>${https_proxy}</docker.buildArg.https_proxy>
29         <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
30         <opendaylight.root>opt/opendaylight</opendaylight.root>
31         <docker.push.phase>deploy</docker.push.phase>
32         <docker.verbose>true</docker.verbose>
33         <ansible.gpg.key>93C4A3FD7BB9C367</ansible.gpg.key>
34         <odl.features.extra>odl-restconf-all,odl-mdsal-all,odl-mdsal-apidocs, odl-daexim-all, odl-restconf-nb-rfc8040
35         </odl.features.extra>
36         <ccsdk.odl.features>
37             ccsdk-sli-core-all,ccsdk-sli-adaptors-all,ccsdk-sli-northbound-all,ccsdk-sli-plugins-all,ccsdk-features-all
38         </ccsdk.odl.features>
39         <odl.boot.features.extra>${odl.features.extra},${ccsdk.odl.features}</odl.boot.features.extra>
40
41                 <ccsdk.features.version>0.7.1</ccsdk.features.version>
42         <ccsdk.sli.core.version>0.7.1</ccsdk.sli.core.version>
43         <ccsdk.sli.adaptors.version>0.7.1</ccsdk.sli.adaptors.version>
44         <ccsdk.sli.northbound.version>0.7.1</ccsdk.sli.northbound.version>
45         <ccsdk.sli.plugins.version>0.7.1</ccsdk.sli.plugins.version>
46     </properties>
47
48     <dependencies>
49         <dependency>
50             <groupId>${project.groupId}</groupId>
51             <artifactId>dependencies</artifactId>
52             <version>${project.version}</version>
53             <classifier>repo</classifier>
54             <type>zip</type>
55         </dependency>
56
57         <dependency>
58             <groupId>org.onap.ccsdk.sli.core</groupId>
59             <artifactId>dblib-installer</artifactId>
60             <version>${ccsdk.sli.core.version}</version>
61             <classifier>repo</classifier>
62             <type>zip</type>
63         </dependency>
64         <dependency>
65             <groupId>org.onap.ccsdk.sli.core</groupId>
66             <artifactId>filters-installer</artifactId>
67             <version>${ccsdk.sli.core.version}</version>
68             <classifier>repo</classifier>
69             <type>zip</type>
70         </dependency>
71         <dependency>
72             <groupId>org.onap.ccsdk.sli.core</groupId>
73             <artifactId>sli-installer</artifactId>
74             <version>${ccsdk.sli.core.version}</version>
75             <classifier>repo</classifier>
76             <type>zip</type>
77         </dependency>
78         <dependency>
79             <groupId>org.onap.ccsdk.sli.core</groupId>
80             <artifactId>sliapi-installer</artifactId>
81             <version>${ccsdk.sli.core.version}</version>
82             <classifier>repo</classifier>
83             <type>zip</type>
84         </dependency>
85         <dependency>
86             <groupId>org.onap.ccsdk.sli.core</groupId>
87             <artifactId>sliPluginUtils-installer</artifactId>
88             <version>${ccsdk.sli.core.version}</version>
89             <classifier>repo</classifier>
90             <type>zip</type>
91         </dependency>
92         <dependency>
93             <groupId>org.onap.ccsdk.sli.core</groupId>
94             <artifactId>utils-installer</artifactId>
95             <version>${ccsdk.sli.core.version}</version>
96             <classifier>repo</classifier>
97             <type>zip</type>
98         </dependency>
99         <dependency>
100             <groupId>org.onap.ccsdk.sli.core</groupId>
101             <artifactId>slicore-features-installer</artifactId>
102             <version>${ccsdk.sli.core.version}</version>
103             <classifier>repo</classifier>
104             <type>zip</type>
105         </dependency>
106         <dependency>
107             <groupId>org.onap.ccsdk.sli.adaptors</groupId>
108             <artifactId>aai-service-installer</artifactId>
109             <version>${ccsdk.sli.adaptors.version}</version>
110             <classifier>repo</classifier>
111             <type>zip</type>
112         </dependency>
113         <dependency>
114             <groupId>org.onap.ccsdk.sli.adaptors</groupId>
115             <artifactId>ansible-adapter-installer</artifactId>
116             <version>${ccsdk.sli.adaptors.version}</version>
117             <classifier>repo</classifier>
118             <type>zip</type>
119         </dependency>
120         <dependency>
121             <groupId>org.onap.ccsdk.sli.adaptors</groupId>
122             <artifactId>base-http-installer</artifactId>
123             <version>${ccsdk.sli.adaptors.version}</version>
124             <classifier>repo</classifier>
125             <type>zip</type>
126         </dependency>
127         <dependency>
128             <groupId>org.onap.ccsdk.sli.adaptors</groupId>
129             <artifactId>mdsal-resource-installer</artifactId>
130             <version>${ccsdk.sli.adaptors.version}</version>
131             <classifier>repo</classifier>
132             <type>zip</type>
133         </dependency>
134         <dependency>
135             <groupId>org.onap.ccsdk.sli.adaptors.messagerouter</groupId>
136             <artifactId>publisher.installer</artifactId>
137             <version>${ccsdk.sli.adaptors.version}</version>
138             <classifier>repo</classifier>
139             <type>zip</type>
140         </dependency>
141         <dependency>
142             <groupId>org.onap.ccsdk.sli.adaptors</groupId>
143             <artifactId>netbox-client-installer</artifactId>
144             <version>${ccsdk.sli.adaptors.version}</version>
145             <classifier>repo</classifier>
146             <type>zip</type>
147         </dependency>
148         <dependency>
149             <groupId>org.onap.ccsdk.sli.adaptors</groupId>
150             <artifactId>resource-assignment-installer</artifactId>
151             <version>${ccsdk.sli.adaptors.version}</version>
152             <classifier>repo</classifier>
153             <type>zip</type>
154         </dependency>
155         <dependency>
156             <groupId>org.onap.ccsdk.sli.adaptors</groupId>
157             <artifactId>saltstack-adapter-installer</artifactId>
158             <version>${ccsdk.sli.adaptors.version}</version>
159             <classifier>repo</classifier>
160             <type>zip</type>
161         </dependency>
162         <dependency>
163             <groupId>org.onap.ccsdk.sli.adaptors</groupId>
164             <artifactId>sql-resource-installer</artifactId>
165             <version>${ccsdk.sli.adaptors.version}</version>
166             <classifier>repo</classifier>
167             <type>zip</type>
168         </dependency>
169         <dependency>
170             <groupId>org.onap.ccsdk.sli.adaptors</groupId>
171             <artifactId>sliadaptors-features-installer</artifactId>
172             <version>${ccsdk.sli.adaptors.version}</version>
173             <classifier>repo</classifier>
174             <type>zip</type>
175         </dependency>
176
177         <dependency>
178             <groupId>org.onap.ccsdk.sli.northbound</groupId>
179             <artifactId>asdcApi-installer</artifactId>
180             <version>${ccsdk.sli.northbound.version}</version>
181             <classifier>repo</classifier>
182             <type>zip</type>
183         </dependency>
184         <dependency>
185             <groupId>org.onap.ccsdk.sli.northbound</groupId>
186             <artifactId>dataChange-installer</artifactId>
187             <version>${ccsdk.sli.northbound.version}</version>
188             <classifier>repo</classifier>
189             <type>zip</type>
190         </dependency>
191         <dependency>
192             <groupId>org.onap.ccsdk.sli.northbound</groupId>
193             <artifactId>lcm-installer</artifactId>
194             <version>${ccsdk.sli.northbound.version}</version>
195             <classifier>repo</classifier>
196             <type>zip</type>
197         </dependency>
198         <dependency>
199             <groupId>org.onap.ccsdk.sli.northbound</groupId>
200             <artifactId>slinorthbound-features-installer</artifactId>
201             <version>${ccsdk.sli.northbound.version}</version>
202             <classifier>repo</classifier>
203             <type>zip</type>
204         </dependency>
205         <dependency>
206             <groupId>org.onap.ccsdk.sli.plugins</groupId>
207             <artifactId>properties-node-installer</artifactId>
208             <version>${ccsdk.sli.plugins.version}</version>
209             <classifier>repo</classifier>
210             <type>zip</type>
211         </dependency>
212         <dependency>
213             <groupId>org.onap.ccsdk.sli.plugins</groupId>
214             <artifactId>restapi-call-node-installer</artifactId>
215             <version>${ccsdk.sli.plugins.version}</version>
216             <classifier>repo</classifier>
217             <type>zip</type>
218         </dependency>
219         <dependency>
220             <groupId>org.onap.ccsdk.sli.plugins</groupId>
221             <artifactId>template-node-installer</artifactId>
222             <version>${ccsdk.sli.plugins.version}</version>
223             <classifier>repo</classifier>
224             <type>zip</type>
225         </dependency>
226         <dependency>
227             <groupId>org.onap.ccsdk.sli.plugins</groupId>
228             <artifactId>restconf-client-installer</artifactId>
229             <version>${ccsdk.sli.plugins.version}</version>
230             <classifier>repo</classifier>
231             <type>zip</type>
232         </dependency>
233         <dependency>
234             <groupId>org.onap.ccsdk.sli.plugins</groupId>
235             <artifactId>sshapi-call-node-installer</artifactId>
236             <version>${ccsdk.sli.plugins.version}</version>
237             <classifier>repo</classifier>
238             <type>zip</type>
239         </dependency>
240         <dependency>
241             <groupId>org.onap.ccsdk.sli.plugins</groupId>
242             <artifactId>sliplugins-features-installer</artifactId>
243             <version>${ccsdk.sli.plugins.version}</version>
244             <classifier>repo</classifier>
245             <type>zip</type>
246         </dependency>
247         <dependency>
248             <groupId>org.onap.ccsdk.features</groupId>
249             <artifactId>features-installer</artifactId>
250             <version>${ccsdk.features.version}</version>
251             <classifier>repo</classifier>
252             <type>zip</type>
253         </dependency>
254         <dependency>
255             <groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
256             <artifactId>sdnr-wt-feature-aggregator-installer</artifactId>
257             <version>${ccsdk.features.version}</version>
258             <classifier>repo</classifier>
259             <type>zip</type>
260         </dependency>
261         <dependency>
262             <groupId>org.onap.ccsdk.features</groupId>
263             <artifactId>aafshiro-installer</artifactId>
264             <version>${ccsdk.features.version}</version>
265             <classifier>repo</classifier>
266             <type>zip</type>
267         </dependency>
268         <dependency>
269             <groupId>org.onap.ccsdk.features.sdnr.northbound</groupId>
270             <artifactId>sdnr-northbound-features-installer</artifactId>
271             <version>${ccsdk.features.version}</version>
272             <classifier>repo</classifier>
273             <type>zip</type>
274         </dependency>
275         <dependency>
276             <groupId>org.onap.ccsdk.features.sdnr.northbound</groupId>
277             <artifactId>oofpcipoc-installer</artifactId>
278             <version>${ccsdk.features.version}</version>
279             <classifier>repo</classifier>
280             <type>zip</type>
281         </dependency>
282         <dependency>
283             <groupId>org.onap.ccsdk.features.sdnr.northbound</groupId>
284             <artifactId>a1Adapter-installer</artifactId>
285             <version>${ccsdk.features.version}</version>
286             <classifier>repo</classifier>
287             <type>zip</type>
288         </dependency>
289         <dependency>
290             <groupId>org.onap.ccsdk.features.sdnr.northbound</groupId>
291             <artifactId>CMNotify-installer</artifactId>
292             <version>${ccsdk.features.version}</version>
293             <classifier>repo</classifier>
294             <type>zip</type>
295         </dependency>
296     </dependencies>
297
298     <build>
299         <extensions>
300             <extension>
301                 <!-- this extension is required by wagon in order to pass the proxy -->
302                 <groupId>org.apache.maven.wagon</groupId>
303                 <artifactId>wagon-http-lightweight</artifactId>
304                 <version>2.2</version>
305             </extension>
306         </extensions>
307         <plugins>
308
309
310             <plugin>
311                 <groupId>org.codehaus.groovy.maven</groupId>
312                 <artifactId>gmaven-plugin</artifactId>
313                 <executions>
314                     <execution>
315                         <phase>validate</phase>
316                         <goals>
317                             <goal>execute</goal>
318                         </goals>
319                         <configuration>
320                             <source>${basedir}/../../src/main/scripts/TagVersion.groovy</source>
321                         </configuration>
322                     </execution>
323                 </executions>
324             </plugin>
325
326
327             <plugin>
328                 <artifactId>maven-resources-plugin</artifactId>
329                 <version>2.6</version>
330                 <executions>
331                     <execution>
332                         <id>copy-dockerfile</id>
333                         <goals>
334                             <goal>copy-resources</goal>
335                         </goals><!-- here the phase you need -->
336                         <phase>validate</phase>
337                         <configuration>
338                             <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
339                             <resources>
340                                 <resource>
341                                     <directory>src/main/docker</directory>
342                                     <includes>
343                                         <include>Dockerfile</include>
344                                     </includes>
345                                     <filtering>true</filtering>
346                                 </resource>
347                             </resources>
348                         </configuration>
349                     </execution>
350
351                     <execution>
352                         <id>copy-scripts</id>
353                         <goals>
354                             <goal>copy-resources</goal>
355                         </goals><!-- here the phase you need -->
356                         <phase>validate</phase>
357                         <configuration>
358                             <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/bin</outputDirectory>
359                             <resources>
360                                 <resource>
361                                     <directory>../src/main/scripts</directory>
362                                     <includes>
363                                         <include>*.sh</include>
364                                     </includes>
365                                     <filtering>false</filtering>
366                                 </resource>
367                             </resources>
368                         </configuration>
369                     </execution>
370
371                     <execution>
372                         <id>copy-odl-resources</id>
373                         <goals>
374                             <goal>copy-resources</goal>
375                         </goals><!-- here the phase you need -->
376                         <phase>validate</phase>
377                         <configuration>
378                             <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
379                             <resources>
380                                 <resource>
381                                     <directory>../src/main/resources</directory>
382                                     <includes>
383                                         <include>idmlight.db.mv.db</include>
384                                         <include>org.ops4j.pax.logging.cfg</include>
385                                         <include>install_ccsdk.yml</include>
386                                         <include>ansible-sources.list</include>
387                                     </includes>
388                                     <filtering>false</filtering>
389                                 </resource>
390                             </resources>
391                         </configuration>
392                     </execution>
393                     <execution>
394                         <id>copy-config</id>
395                         <goals>
396                             <goal>copy-resources</goal>
397                         </goals><!-- here the phase you need -->
398                         <phase>validate</phase>
399                         <configuration>
400                             <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
401                             <resources>
402                                 <resource>
403                                     <directory>../src/main/resources</directory>
404                                     <includes>
405                                         <include>org.ops4j.pax.logging.cfg</include>
406                                     </includes>
407                                     <filtering>false</filtering>
408                                 </resource>
409                             </resources>
410                         </configuration>
411                     </execution>
412                     <execution>
413                         <id>copy-data</id>
414                         <goals>
415                             <goal>copy-resources</goal>
416                         </goals><!-- here the phase you need -->
417                         <phase>validate</phase>
418                         <configuration>
419                             <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/data</outputDirectory>
420                             <resources>
421                                 <resource>
422                                     <directory>../src/main/resources</directory>
423                                     <includes>
424                                         <include>*.dump</include>
425                                     </includes>
426                                     <filtering>false</filtering>
427                                 </resource>
428                             </resources>
429                         </configuration>
430                     </execution>
431                     <execution>
432                         <id>copy-properties</id>
433                         <goals>
434                             <goal>copy-resources</goal>
435                         </goals><!-- here the phase you need -->
436                         <phase>validate</phase>
437                         <configuration>
438                             <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/data/properties
439                             </outputDirectory>
440                             <resources>
441                                 <resource>
442                                     <directory>../src/main/properties</directory>
443                                     <includes>
444                                         <include>*.properties</include>
445                                         <include>*.vt</include>
446                                     </includes>
447                                     <filtering>false</filtering>
448                                 </resource>
449                             </resources>
450                         </configuration>
451                     </execution>
452                     <execution>
453                         <id>copy-keystores</id>
454                         <goals>
455                             <goal>copy-resources</goal>
456                         </goals><!-- here the phase you need -->
457                         <phase>validate</phase>
458                         <configuration>
459                             <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/data/stores</outputDirectory>
460                             <resources>
461                                 <resource>
462                                     <directory>../src/main/stores</directory>
463                                     <includes>
464                                         <include>*.jks</include>
465                                     </includes>
466                                     <filtering>false</filtering>
467                                 </resource>
468                             </resources>
469                         </configuration>
470                     </execution>
471                 </executions>
472             </plugin>
473             <plugin>
474                 <groupId>org.apache.maven.plugins</groupId>
475                 <artifactId>maven-dependency-plugin</artifactId>
476                 <version>3.0.2</version>
477                 <executions>
478                     <execution>
479                         <id>unpack features</id>
480                         <phase>generate-sources</phase>
481                         <goals>
482                             <goal>unpack-dependencies</goal>
483                         </goals>
484                         <configuration>
485                             <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
486                             <excludeTransitive>true</excludeTransitive>
487                         </configuration>
488                     </execution>
489                     <execution>
490                         <id>unpack dgs</id>
491                         <phase>generate-sources</phase>
492                         <goals>
493                             <goal>unpack</goal>
494                         </goals>
495                         <configuration>
496                             <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk</outputDirectory>
497                             <artifactItems>
498                                 <artifactItem>
499                                     <groupId>${project.groupId}</groupId>
500                                     <artifactId>platform-logic-installer</artifactId>
501                                     <version>${project.version}</version>
502                                     <type>zip</type>
503                                 </artifactItem>
504                             </artifactItems>
505                         </configuration>
506                     </execution>
507                 </executions>
508             </plugin>
509             <plugin>
510                 <groupId>org.codehaus.mojo</groupId>
511                 <artifactId>exec-maven-plugin</artifactId>
512                 <version>1.5.0</version>
513                 <executions>
514
515                     <execution>
516                         <id>change shell permissions</id>
517                         <phase>process-sources</phase>
518                         <goals>
519                             <goal>exec</goal>
520                         </goals>
521                         <configuration>
522                             <executable>/usr/bin/find</executable>
523                             <arguments>
524                                 <argument>${basedir}/target/docker-stage/opt/onap/ccsdk</argument>
525                                 <argument>-name</argument>
526                                 <argument>*.sh</argument>
527                                 <argument>-exec</argument>
528                                 <argument>chmod</argument>
529                                 <argument>+x</argument>
530                                 <argument>{}</argument>
531                                 <argument>;</argument>
532                             </arguments>
533                         </configuration>
534                     </execution>
535                 </executions>
536             </plugin>
537
538
539         </plugins>
540     </build>
541
542     <profiles>
543         <profile>
544             <id>docker</id>
545             <build>
546                 <plugins>
547                     <plugin>
548                         <groupId>io.fabric8</groupId>
549                         <artifactId>docker-maven-plugin</artifactId>
550                         <version>0.28.0</version>
551                         <inherited>false</inherited>
552                         <configuration>
553                             <images>
554                                 <image>
555                                     <name>${image.name}</name>
556                                     <build>
557                                         <cleanup>try</cleanup>
558                                         <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
559                                         <dockerFile>Dockerfile</dockerFile>
560                                         <tags>
561                                             <tag>${project.docker.latestminortag.version}</tag>
562                                             <tag>${project.docker.latestfulltag.version}</tag>
563                                             <tag>${project.docker.latesttagtimestamp.version}</tag>
564                                         </tags>
565                                     </build>
566                                 </image>
567                             </images>
568                         </configuration>
569                         <executions>
570                             <execution>
571                                 <id>generate-images</id>
572                                 <phase>package</phase>
573                                 <goals>
574                                     <goal>build</goal>
575                                 </goals>
576                             </execution>
577
578                             <execution>
579                                 <id>push-images</id>
580                                 <phase>${docker.push.phase}</phase>
581                                 <goals>
582                                     <goal>build</goal>
583                                     <goal>push</goal>
584                                 </goals>
585                             </execution>
586                         </executions>
587                     </plugin>
588                 </plugins>
589             </build>
590         </profile>
591     </profiles>
592 </project>

© 2017 ONAP. Copyright © The Linux Foundation ®. All Rights Reserved.
The Linux Foundation has registered trademarks and uses trademarks.
For a list of trademarks of The Linux Foundation, please see our Trademark Usage page.
Linux is a registered trademark of Linus Torvalds.
Privacy Policy and Terms of Use