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