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