Fix dependency versions
[ccsdk/distribution.git] / odlsli / odlsli-ubuntu / 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.4</version>
9                 <relativePath/>
10         </parent>
11
12         <groupId>org.onap.ccsdk.distribution</groupId>
13         <artifactId>distribution-odlsli-ubuntu</artifactId>
14         <version>0.4.4-SNAPSHOT</version>
15         <packaging>pom</packaging>
16
17         <name>ccsdk-distribution :: odlsli-ubuntu</name>
18         <description>Creates Ubuntu-based ODLSLI  Docker container</description>
19         <organization>
20                 <name>openECOMP</name>
21         </organization>
22
23         <properties>
24             <base.image.name>onap/ccsdk-odl-fluorine-ubuntu-image</base.image.name>
25                 <image.name>onap/ccsdk-odlsli-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.4</ccsdk.features.version>
29                 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
30                 <opendaylight.root>opt/opendaylight</opendaylight.root>
31                 <docker.push.phase>deploy</docker.push.phase>
32                 <docker.verbose>true</docker.verbose>
33                 <ansible.gpg.key>93C4A3FD7BB9C367</ansible.gpg.key>
34                 <odl.features.extra>odl-restconf-all,odl-mdsal-all,odl-mdsal-apidocs, odl-daexim-all,odl-restconf-nb-rfc8040</odl.features.extra>
35                 <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>
36                 <odl.boot.features.extra>${odl.features.extra},${ccsdk.odl.features}</odl.boot.features.extra>
37         </properties>
38
39         <dependencies>
40                 <dependency>
41                         <groupId>${project.groupId}</groupId>
42                         <artifactId>dependencies</artifactId>
43                         <version>${project.version}</version>
44                         <classifier>repo</classifier>
45                         <type>zip</type>
46                 </dependency>
47
48                 <dependency>
49                         <groupId>org.onap.ccsdk.sli.core</groupId>
50                         <artifactId>dblib-installer</artifactId>
51                         <version>${ccsdk.sli.core.version}</version>
52                         <classifier>repo</classifier>
53                         <type>zip</type>
54                 </dependency>
55                 <dependency>
56                         <groupId>org.onap.ccsdk.sli.core</groupId>
57                         <artifactId>filters-installer</artifactId>
58                         <version>${ccsdk.sli.core.version}</version>
59                         <classifier>repo</classifier>
60                         <type>zip</type>
61                 </dependency>
62                 <dependency>
63                         <groupId>org.onap.ccsdk.sli.core</groupId>
64                         <artifactId>sli-installer</artifactId>
65                         <version>${ccsdk.sli.core.version}</version>
66                         <classifier>repo</classifier>
67                         <type>zip</type>
68                 </dependency>
69                 <dependency>
70                         <groupId>org.onap.ccsdk.sli.core</groupId>
71                         <artifactId>sliapi-installer</artifactId>
72                         <version>${ccsdk.sli.core.version}</version>
73                         <classifier>repo</classifier>
74                         <type>zip</type>
75                 </dependency>
76                 <dependency>
77                         <groupId>org.onap.ccsdk.sli.core</groupId>
78                         <artifactId>sliPluginUtils-installer</artifactId>
79                         <version>${ccsdk.sli.core.version}</version>
80                         <classifier>repo</classifier>
81                         <type>zip</type>
82                 </dependency>
83                 <dependency>
84                         <groupId>org.onap.ccsdk.sli.core</groupId>
85                         <artifactId>utils-installer</artifactId>
86                         <version>${ccsdk.sli.core.version}</version>
87                         <classifier>repo</classifier>
88                         <type>zip</type>
89                 </dependency>
90                 <dependency>
91                         <groupId>org.onap.ccsdk.sli.core</groupId>
92                         <artifactId>slicore-features-installer</artifactId>
93                         <version>${ccsdk.sli.core.version}</version>
94                         <classifier>repo</classifier>
95                         <type>zip</type>
96                 </dependency>
97                 <dependency>
98                         <groupId>org.onap.ccsdk.sli.adaptors</groupId>
99                         <artifactId>aai-service-installer</artifactId>
100                         <version>${ccsdk.sli.adaptors.version}</version>
101                         <classifier>repo</classifier>
102                         <type>zip</type>
103                 </dependency>
104         <dependency>
105                         <groupId>org.onap.ccsdk.sli.adaptors</groupId>
106                         <artifactId>ansible-adapter-installer</artifactId>
107                         <version>${ccsdk.sli.adaptors.version}</version>
108                         <classifier>repo</classifier>
109                         <type>zip</type>
110                 </dependency>
111         <dependency>
112             <groupId>org.onap.ccsdk.sli.adaptors</groupId>
113             <artifactId>grpc-client-installer</artifactId>
114             <version>${ccsdk.sli.adaptors.version}</version>
115             <classifier>repo</classifier>
116             <type>zip</type>
117         </dependency>
118                 <dependency>
119                         <groupId>org.onap.ccsdk.sli.adaptors</groupId>
120                         <artifactId>mdsal-resource-installer</artifactId>
121                         <version>${ccsdk.sli.adaptors.version}</version>
122                         <classifier>repo</classifier>
123                         <type>zip</type>
124                 </dependency>
125                 <dependency>
126                         <groupId>org.onap.ccsdk.sli.adaptors.messagerouter</groupId>
127                         <artifactId>publisher.installer</artifactId>
128                         <version>${ccsdk.sli.adaptors.version}</version>
129                         <classifier>repo</classifier>
130                         <type>zip</type>
131                 </dependency>
132                 <dependency>
133                         <groupId>org.onap.ccsdk.sli.adaptors</groupId>
134                         <artifactId>netbox-client-installer</artifactId>
135                         <version>${ccsdk.sli.adaptors.version}</version>
136                         <classifier>repo</classifier>
137                         <type>zip</type>
138                 </dependency>
139                 <dependency>
140                         <groupId>org.onap.ccsdk.sli.adaptors</groupId>
141                         <artifactId>resource-assignment-installer</artifactId>
142                         <version>${ccsdk.sli.adaptors.version}</version>
143                         <classifier>repo</classifier>
144                         <type>zip</type>
145                 </dependency>
146                 <dependency>
147                         <groupId>org.onap.ccsdk.sli.adaptors</groupId>
148                         <artifactId>saltstack-adapter-installer</artifactId>
149                         <version>${ccsdk.sli.adaptors.version}</version>
150                         <classifier>repo</classifier>
151                         <type>zip</type>
152                 </dependency>
153                 <dependency>
154                         <groupId>org.onap.ccsdk.sli.adaptors</groupId>
155                         <artifactId>sql-resource-installer</artifactId>
156                         <version>${ccsdk.sli.adaptors.version}</version>
157                         <classifier>repo</classifier>
158                         <type>zip</type>
159                 </dependency>
160                 <dependency>
161                         <groupId>org.onap.ccsdk.sli.adaptors</groupId>
162                         <artifactId>sliadaptors-features-installer</artifactId>
163                         <version>${ccsdk.sli.adaptors.version}</version>
164                         <classifier>repo</classifier>
165                         <type>zip</type>
166                 </dependency>
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         </dependencies>
280
281         <build>
282         <extensions>
283                 <extension>
284                         <!-- this extension is required by wagon in order to pass the proxy -->
285                         <groupId>org.apache.maven.wagon</groupId>
286                         <artifactId>wagon-http-lightweight</artifactId>
287                         <version>2.2</version>
288                 </extension>
289         </extensions>
290                 <plugins>
291
292
293                         <plugin>
294                                 <groupId>org.codehaus.groovy.maven</groupId>
295                                 <artifactId>gmaven-plugin</artifactId>
296                                 <executions>
297                                         <execution>
298                                                 <phase>validate</phase>
299                                                 <goals>
300                                                         <goal>execute</goal>
301                                                 </goals>
302                                                 <configuration>
303                                                         <source>${basedir}/../../src/main/scripts/TagVersion.groovy</source>
304                                                 </configuration>
305                                         </execution>
306                                 </executions>
307                         </plugin>
308
309
310
311                         <plugin>
312                                 <artifactId>maven-resources-plugin</artifactId>
313                                 <version>2.6</version>
314                                 <executions>
315                                         <execution>
316                                                 <id>copy-dockerfile</id>
317                                                 <goals>
318                                                         <goal>copy-resources</goal>
319                                                 </goals><!-- here the phase you need -->
320                                                 <phase>validate</phase>
321                                                 <configuration>
322                                                         <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
323                                                         <resources>
324                                                                 <resource>
325                                                                         <directory>src/main/docker</directory>
326                                                                         <includes>
327                                                                                 <include>Dockerfile</include>
328                                                                         </includes>
329                                                                         <filtering>true</filtering>
330                                                                 </resource>
331                                                         </resources>
332                                                 </configuration>
333                                         </execution>
334
335                                         <execution>
336                                                 <id>copy-scripts</id>
337                                                 <goals>
338                                                         <goal>copy-resources</goal>
339                                                 </goals><!-- here the phase you need -->
340                                                 <phase>validate</phase>
341                                                 <configuration>
342                                                         <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/bin</outputDirectory>
343                                                         <resources>
344                                                                 <resource>
345                                                                         <directory>../src/main/scripts</directory>
346                                                                         <includes>
347                                                                                 <include>*.sh</include>
348                                                                         </includes>
349                                                                         <filtering>false</filtering>
350                                                                 </resource>
351                                                         </resources>
352                                                 </configuration>
353                                         </execution>
354
355                                         <execution>
356                                                 <id>copy-odl-resources</id>
357                                                 <goals>
358                                                         <goal>copy-resources</goal>
359                                                 </goals><!-- here the phase you need -->
360                                                 <phase>validate</phase>
361                                                 <configuration>
362                                                         <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
363                                                         <resources>
364                                                                 <resource>
365                                                                         <directory>../src/main/resources</directory>
366                                                                         <includes>
367                                                                                 <include>idmlight.db.mv.db</include>
368                                                                                 <include>org.ops4j.pax.logging.cfg</include>
369                                                                                 <include>install_ccsdk.yml</include>
370                                                                                 <include>ansible-sources.list</include>
371                                                                         </includes>
372                                                                         <filtering>false</filtering>
373                                                                 </resource>
374                                                         </resources>
375                                                 </configuration>
376                                         </execution>
377                                         <execution>
378                                                 <id>copy-config</id>
379                                                 <goals>
380                                                         <goal>copy-resources</goal>
381                                                 </goals><!-- here the phase you need -->
382                                                 <phase>validate</phase>
383                                                 <configuration>
384                                                         <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
385                                                         <resources>
386                                                                 <resource>
387                                                                         <directory>../src/main/resources</directory>
388                                                                         <includes>
389                                                                                 <include>org.ops4j.pax.logging.cfg</include>
390                                                                         </includes>
391                                                                         <filtering>false</filtering>
392                                                                 </resource>
393                                                         </resources>
394                                                 </configuration>
395                                         </execution>
396                                         <execution>
397                                                 <id>copy-data</id>
398                                                 <goals>
399                                                         <goal>copy-resources</goal>
400                                                 </goals><!-- here the phase you need -->
401                                                 <phase>validate</phase>
402                                                 <configuration>
403                                                         <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/data</outputDirectory>
404                                                         <resources>
405                                                                 <resource>
406                                                                         <directory>../src/main/resources</directory>
407                                                                         <includes>
408                                                                                 <include>*.dump</include>
409                                                                         </includes>
410                                                                         <filtering>false</filtering>
411                                                                 </resource>
412                                                         </resources>
413                                                 </configuration>
414                                         </execution>
415                                         <execution>
416                                                 <id>copy-properties</id>
417                                                 <goals>
418                                                         <goal>copy-resources</goal>
419                                                 </goals><!-- here the phase you need -->
420                                                 <phase>validate</phase>
421                                                 <configuration>
422                                                         <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/data/properties</outputDirectory>
423                                                         <resources>
424                                                                 <resource>
425                                                                         <directory>../src/main/properties</directory>
426                                                                         <includes>
427                                                                                 <include>*.properties</include>
428                                                                         </includes>
429                                                                         <filtering>false</filtering>
430                                                                 </resource>
431                                                         </resources>
432                                                 </configuration>
433                                         </execution>
434                                         <execution>
435                                                 <id>copy-keystores</id>
436                                                 <goals>
437                                                         <goal>copy-resources</goal>
438                                                 </goals><!-- here the phase you need -->
439                                                 <phase>validate</phase>
440                                                 <configuration>
441                                                         <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/data/stores</outputDirectory>
442                                                         <resources>
443                                                                 <resource>
444                                                                         <directory>../src/main/stores</directory>
445                                                                         <includes>
446                                                                                 <include>*.jks</include>
447                                                                         </includes>
448                                                                         <filtering>false</filtering>
449                                                                 </resource>
450                                                         </resources>
451                                                 </configuration>
452                                         </execution>
453                                 </executions>
454                         </plugin>
455                         <plugin>
456                                 <groupId>org.apache.maven.plugins</groupId>
457                                 <artifactId>maven-dependency-plugin</artifactId>
458                                 <version>3.0.2</version>
459                                 <executions>
460                                         <execution>
461                                                 <id>unpack features</id>
462                                                 <phase>generate-sources</phase>
463                                                 <goals>
464                                                         <goal>unpack-dependencies</goal>
465                                                 </goals>
466                                                 <configuration>
467                                                         <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
468                                                         <excludeTransitive>true</excludeTransitive>
469                                                 </configuration>
470                                         </execution>
471                                         <execution>
472                                                 <id>unpack dgs</id>
473                                                 <phase>generate-sources</phase>
474                                                 <goals>
475                                                         <goal>unpack</goal>
476                                                 </goals>
477                                                 <configuration>
478                                                         <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk</outputDirectory>
479                                                         <artifactItems>
480                                                                 <artifactItem>
481                                                                         <groupId>${project.groupId}</groupId>
482                                                                         <artifactId>platform-logic-installer</artifactId>
483                                                                         <version>${project.version}</version>
484                                                                         <type>zip</type>
485                                                                 </artifactItem>
486                                                         </artifactItems>
487                                                 </configuration>
488                                         </execution>
489                                 </executions>
490                         </plugin>
491                         <plugin>
492                                 <groupId>org.codehaus.mojo</groupId>
493                                 <artifactId>exec-maven-plugin</artifactId>
494                                 <version>1.5.0</version>
495                                 <executions>
496
497                                         <execution>
498                                                 <id>change shell permissions</id>
499                                                 <phase>process-sources</phase>
500                                                 <goals>
501                                                         <goal>exec</goal>
502                                                 </goals>
503                                                 <configuration>
504                                                         <executable>/usr/bin/find</executable>
505                                                         <arguments>
506                                                                 <argument>${basedir}/target/docker-stage/opt/onap/ccsdk</argument>
507                                                                 <argument>-name</argument>
508                                                                 <argument>*.sh</argument>
509                                                                 <argument>-exec</argument>
510                                                                 <argument>chmod</argument>
511                                                                 <argument>+x</argument>
512                                                                 <argument>{}</argument>
513                                                                 <argument>;</argument>
514                                                         </arguments>
515                                                 </configuration>
516                                         </execution>
517                                 </executions>
518                         </plugin>
519
520
521                 </plugins>
522         </build>
523
524         <profiles>
525                 <profile>
526                         <id>docker</id>
527                         <build>
528                                 <plugins>
529                                         <plugin>
530                                                 <groupId>io.fabric8</groupId>
531                                                 <artifactId>docker-maven-plugin</artifactId>
532                                                 <version>0.16.5</version>
533                                                 <inherited>false</inherited>
534                                                 <configuration>
535                                                         <images>
536                                                                 <image>
537                                                                         <name>${image.name}</name>
538                                                                         <build>
539                                                                                 <cleanup>try</cleanup>
540                                                                                 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
541                                                                                 <dockerFile>${basedir}/target/docker-stage/Dockerfile</dockerFile>
542                                                                                 <tags>
543                                                                                         <tag>${project.docker.latestminortag.version}</tag>
544                                                                                         <tag>${project.docker.latestfulltag.version}</tag>
545                                                                                         <tag>${project.docker.latesttagtimestamp.version}</tag>
546                                                                                 </tags>
547                                                                         </build>
548                                                                 </image>
549                                                         </images>
550                                                 </configuration>
551                                                 <executions>
552                                                         <execution>
553                                                                 <id>generate-images</id>
554                                                                 <phase>package</phase>
555                                                                 <goals>
556                                                                         <goal>build</goal>
557                                                                 </goals>
558                                                         </execution>
559
560                                                         <execution>
561                                                                 <id>push-images</id>
562                                                                 <phase>${docker.push.phase}</phase>
563                                                                 <goals>
564                                                                         <goal>build</goal>
565                                                                         <goal>push</goal>
566                                                                 </goals>
567                                                         </execution>
568                                                 </executions>
569                                         </plugin>
570                                 </plugins>
571                         </build>
572                 </profile>
573         </profiles>
574 </project>