0d2e721a0fcf4a7763adf8edae4c46f29ff2fa40
[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.3.3-SNAPSHOT</version>
9                 <relativePath/>
10         </parent>
11
12         <groupId>org.onap.ccsdk.distribution</groupId>
13         <artifactId>distribution-odlsli-alpine</artifactId>
14         <version>0.5.2-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-fluorine-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.5.1</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.5.1</ccsdk.sli.core.version>
40                 <ccsdk.sli.adaptors.version>0.5.1</ccsdk.sli.adaptors.version>
41                 <ccsdk.sli.northbound.version>0.5.1</ccsdk.sli.northbound.version>
42                 <ccsdk.sli.plugins.version>0.5.1</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>mdsal-resource-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.messagerouter</groupId>
126                     <artifactId>publisher.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</groupId>
133                         <artifactId>netbox-client-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>resource-assignment-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>saltstack-adapter-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>sql-resource-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>sliadaptors-features-installer</artifactId>
162                         <version>${ccsdk.sli.adaptors.version}</version>
163                         <classifier>repo</classifier>
164                         <type>zip</type>
165                 </dependency>
166
167                 <dependency>
168                         <groupId>org.onap.ccsdk.sli.northbound</groupId>
169                         <artifactId>asdcApi-installer</artifactId>
170                         <version>${ccsdk.sli.northbound.version}</version>
171                         <classifier>repo</classifier>
172                         <type>zip</type>
173                 </dependency>
174                 <dependency>
175                         <groupId>org.onap.ccsdk.sli.northbound</groupId>
176                         <artifactId>dataChange-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>lcm-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>slinorthbound-features-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.plugins</groupId>
197                         <artifactId>properties-node-installer</artifactId>
198                         <version>${ccsdk.sli.plugins.version}</version>
199                         <classifier>repo</classifier>
200                         <type>zip</type>
201                 </dependency>
202                 <dependency>
203                         <groupId>org.onap.ccsdk.sli.plugins</groupId>
204                         <artifactId>restapi-call-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>template-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>restconf-client-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>sshapi-call-node-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>sliplugins-features-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.features</groupId>
239                         <artifactId>features-installer</artifactId>
240                         <version>${ccsdk.features.version}</version>
241                         <classifier>repo</classifier>
242                         <type>zip</type>
243                 </dependency>
244                 <dependency>
245                         <groupId>org.onap.ccsdk.features</groupId>
246                         <artifactId>blueprints-processor-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.sdnr.wt</groupId>
253                         <artifactId>sdnr-wt-feature-aggregator-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</groupId>
260                         <artifactId>aafshiro-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.sdnr.northbound</groupId>
267       <artifactId>sdnr-northbound-features-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>oofpcipoc-installer</artifactId>
275                         <version>${ccsdk.features.version}</version>
276                         <classifier>repo</classifier>
277                         <type>zip</type>
278                 </dependency>
279
280         </dependencies>
281
282         <build>
283         <extensions>
284                 <extension>
285                         <!-- this extension is required by wagon in order to pass the proxy -->
286                         <groupId>org.apache.maven.wagon</groupId>
287                         <artifactId>wagon-http-lightweight</artifactId>
288                         <version>2.2</version>
289                 </extension>
290         </extensions>
291                 <plugins>
292
293
294                         <plugin>
295                                 <groupId>org.codehaus.groovy.maven</groupId>
296                                 <artifactId>gmaven-plugin</artifactId>
297                                 <executions>
298                                         <execution>
299                                                 <phase>validate</phase>
300                                                 <goals>
301                                                         <goal>execute</goal>
302                                                 </goals>
303                                                 <configuration>
304                                                         <source>${basedir}/../../src/main/scripts/TagVersion.groovy</source>
305                                                 </configuration>
306                                         </execution>
307                                 </executions>
308                         </plugin>
309
310
311
312                         <plugin>
313                                 <artifactId>maven-resources-plugin</artifactId>
314                                 <version>2.6</version>
315                                 <executions>
316                                         <execution>
317                                                 <id>copy-dockerfile</id>
318                                                 <goals>
319                                                         <goal>copy-resources</goal>
320                                                 </goals><!-- here the phase you need -->
321                                                 <phase>validate</phase>
322                                                 <configuration>
323                                                         <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
324                                                         <resources>
325                                                                 <resource>
326                                                                         <directory>src/main/docker</directory>
327                                                                         <includes>
328                                                                                 <include>Dockerfile</include>
329                                                                         </includes>
330                                                                         <filtering>true</filtering>
331                                                                 </resource>
332                                                         </resources>
333                                                 </configuration>
334                                         </execution>
335
336                                         <execution>
337                                                 <id>copy-scripts</id>
338                                                 <goals>
339                                                         <goal>copy-resources</goal>
340                                                 </goals><!-- here the phase you need -->
341                                                 <phase>validate</phase>
342                                                 <configuration>
343                                                         <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/bin</outputDirectory>
344                                                         <resources>
345                                                                 <resource>
346                                                                         <directory>../src/main/scripts</directory>
347                                                                         <includes>
348                                                                                 <include>*.sh</include>
349                                                                         </includes>
350                                                                         <filtering>false</filtering>
351                                                                 </resource>
352                                                         </resources>
353                                                 </configuration>
354                                         </execution>
355
356                                         <execution>
357                                                 <id>copy-odl-resources</id>
358                                                 <goals>
359                                                         <goal>copy-resources</goal>
360                                                 </goals><!-- here the phase you need -->
361                                                 <phase>validate</phase>
362                                                 <configuration>
363                                                         <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
364                                                         <resources>
365                                                                 <resource>
366                                                                         <directory>../src/main/resources</directory>
367                                                                         <includes>
368                                                                                 <include>idmlight.db.mv.db</include>
369                                                                                 <include>org.ops4j.pax.logging.cfg</include>
370                                                                                 <include>install_ccsdk.yml</include>
371                                                                                 <include>ansible-sources.list</include>
372                                                                         </includes>
373                                                                         <filtering>false</filtering>
374                                                                 </resource>
375                                                         </resources>
376                                                 </configuration>
377                                         </execution>
378                                         <execution>
379                                                 <id>copy-config</id>
380                                                 <goals>
381                                                         <goal>copy-resources</goal>
382                                                 </goals><!-- here the phase you need -->
383                                                 <phase>validate</phase>
384                                                 <configuration>
385                                                         <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
386                                                         <resources>
387                                                                 <resource>
388                                                                         <directory>../src/main/resources</directory>
389                                                                         <includes>
390                                                                                 <include>org.ops4j.pax.logging.cfg</include>
391                                                                         </includes>
392                                                                         <filtering>false</filtering>
393                                                                 </resource>
394                                                         </resources>
395                                                 </configuration>
396                                         </execution>
397                                         <execution>
398                                                 <id>copy-data</id>
399                                                 <goals>
400                                                         <goal>copy-resources</goal>
401                                                 </goals><!-- here the phase you need -->
402                                                 <phase>validate</phase>
403                                                 <configuration>
404                                                         <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/data</outputDirectory>
405                                                         <resources>
406                                                                 <resource>
407                                                                         <directory>../src/main/resources</directory>
408                                                                         <includes>
409                                                                                 <include>*.dump</include>
410                                                                         </includes>
411                                                                         <filtering>false</filtering>
412                                                                 </resource>
413                                                         </resources>
414                                                 </configuration>
415                                         </execution>
416                                         <execution>
417                                                 <id>copy-properties</id>
418                                                 <goals>
419                                                         <goal>copy-resources</goal>
420                                                 </goals><!-- here the phase you need -->
421                                                 <phase>validate</phase>
422                                                 <configuration>
423                                                         <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/data/properties</outputDirectory>
424                                                         <resources>
425                                                                 <resource>
426                                                                         <directory>../src/main/properties</directory>
427                                                                         <includes>
428                                                                                 <include>*.properties</include>
429                                                                                 <include>*.vt</include>
430                                                                         </includes>
431                                                                         <filtering>false</filtering>
432                                                                 </resource>
433                                                         </resources>
434                                                 </configuration>
435                                         </execution>
436                                         <execution>
437                                                 <id>copy-keystores</id>
438                                                 <goals>
439                                                         <goal>copy-resources</goal>
440                                                 </goals><!-- here the phase you need -->
441                                                 <phase>validate</phase>
442                                                 <configuration>
443                                                         <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/data/stores</outputDirectory>
444                                                         <resources>
445                                                                 <resource>
446                                                                         <directory>../src/main/stores</directory>
447                                                                         <includes>
448                                                                                 <include>*.jks</include>
449                                                                         </includes>
450                                                                         <filtering>false</filtering>
451                                                                 </resource>
452                                                         </resources>
453                                                 </configuration>
454                                         </execution>
455                                 </executions>
456                         </plugin>
457                         <plugin>
458                                 <groupId>org.apache.maven.plugins</groupId>
459                                 <artifactId>maven-dependency-plugin</artifactId>
460                                 <version>3.0.2</version>
461                                 <executions>
462                                         <execution>
463                                                 <id>unpack features</id>
464                                                 <phase>generate-sources</phase>
465                                                 <goals>
466                                                         <goal>unpack-dependencies</goal>
467                                                 </goals>
468                                                 <configuration>
469                                                         <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
470                                                         <excludeTransitive>true</excludeTransitive>
471                                                 </configuration>
472                                         </execution>
473                                         <execution>
474                                                 <id>unpack dgs</id>
475                                                 <phase>generate-sources</phase>
476                                                 <goals>
477                                                         <goal>unpack</goal>
478                                                 </goals>
479                                                 <configuration>
480                                                         <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk</outputDirectory>
481                                                         <artifactItems>
482                                                                 <artifactItem>
483                                                                         <groupId>${project.groupId}</groupId>
484                                                                         <artifactId>platform-logic-installer</artifactId>
485                                                                         <version>${project.version}</version>
486                                                                         <type>zip</type>
487                                                                 </artifactItem>
488                                                         </artifactItems>
489                                                 </configuration>
490                                         </execution>
491                                 </executions>
492                         </plugin>
493                         <plugin>
494                                 <groupId>org.codehaus.mojo</groupId>
495                                 <artifactId>exec-maven-plugin</artifactId>
496                                 <version>1.5.0</version>
497                                 <executions>
498
499                                         <execution>
500                                                 <id>change shell permissions</id>
501                                                 <phase>process-sources</phase>
502                                                 <goals>
503                                                         <goal>exec</goal>
504                                                 </goals>
505                                                 <configuration>
506                                                         <executable>/usr/bin/find</executable>
507                                                         <arguments>
508                                                                 <argument>${basedir}/target/docker-stage/opt/onap/ccsdk</argument>
509                                                                 <argument>-name</argument>
510                                                                 <argument>*.sh</argument>
511                                                                 <argument>-exec</argument>
512                                                                 <argument>chmod</argument>
513                                                                 <argument>+x</argument>
514                                                                 <argument>{}</argument>
515                                                                 <argument>;</argument>
516                                                         </arguments>
517                                                 </configuration>
518                                         </execution>
519                                 </executions>
520                         </plugin>
521
522
523                 </plugins>
524         </build>
525
526         <profiles>
527                 <profile>
528                         <id>docker</id>
529                         <build>
530                                 <plugins>
531                                         <plugin>
532                                                 <groupId>io.fabric8</groupId>
533                                                 <artifactId>docker-maven-plugin</artifactId>
534                                                 <version>0.28.0</version>
535                                                 <inherited>false</inherited>
536                                                 <configuration>
537                                                         <images>
538                                                                 <image>
539                                                                         <name>${image.name}</name>
540                                                                         <build>
541                                                                                 <cleanup>try</cleanup>
542                                                                                 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
543                                                                                 <dockerFile>Dockerfile</dockerFile>
544                                                                                 <tags>
545                                                                                         <tag>${project.docker.latestminortag.version}</tag>
546                                                                                         <tag>${project.docker.latestfulltag.version}</tag>
547                                                                                         <tag>${project.docker.latesttagtimestamp.version}</tag>
548                                                                                 </tags>
549                                                                         </build>
550                                                                 </image>
551                                                         </images>
552                                                 </configuration>
553                                                 <executions>
554                                                         <execution>
555                                                                 <id>generate-images</id>
556                                                                 <phase>package</phase>
557                                                                 <goals>
558                                                                         <goal>build</goal>
559                                                                 </goals>
560                                                         </execution>
561
562                                                         <execution>
563                                                                 <id>push-images</id>
564                                                                 <phase>${docker.push.phase}</phase>
565                                                                 <goals>
566                                                                         <goal>build</goal>
567                                                                         <goal>push</goal>
568                                                                 </goals>
569                                                         </execution>
570                                                 </executions>
571                                         </plugin>
572                                 </plugins>
573                         </build>
574                 </profile>
575         </profiles>
576 </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