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