blob: 25f2dc7bd32956398ee52245cae74cfd30bb4b2e [file] [log] [blame]
Timoney, Dan (dt5972)b1ac7252018-12-14 13:00:43 -05001<?xml version="1.0" encoding="UTF-8"?>
Timoney, Dan (dt5972)ea652692019-01-08 15:56:26 -05002<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">
Timoney, Dan (dt5972)b1ac7252018-12-14 13:00:43 -05003 <modelVersion>4.0.0</modelVersion>
4
5 <parent>
6 <groupId>org.onap.ccsdk.parent</groupId>
7 <artifactId>odlparent-lite</artifactId>
Timoney, Dan (dt5972)395fe0a2019-07-17 11:08:43 -04008 <version>1.3.1-SNAPSHOT</version>
Timoney, Dan (dt5972)ea652692019-01-08 15:56:26 -05009 <relativePath/>
Timoney, Dan (dt5972)b1ac7252018-12-14 13:00:43 -050010 </parent>
11
12 <groupId>org.onap.ccsdk.distribution</groupId>
13 <artifactId>distribution-odlsli-ubuntu</artifactId>
Timoney, Dan (dt5972)b11d58d2019-05-01 08:10:40 -040014 <version>0.5.0-SNAPSHOT</version>
Timoney, Dan (dt5972)b1ac7252018-12-14 13:00:43 -050015 <packaging>pom</packaging>
16
Timoney, Dan (dt5972)e7cfae52019-01-03 15:14:58 -050017 <name>ccsdk-distribution :: odlsli-ubuntu</name>
18 <description>Creates Ubuntu-based ODLSLI Docker container</description>
Timoney, Dan (dt5972)b1ac7252018-12-14 13:00:43 -050019 <organization>
20 <name>openECOMP</name>
21 </organization>
22
23 <properties>
Timoney, Dan (dt5972)e7cfae52019-01-03 15:14:58 -050024 <base.image.name>onap/ccsdk-odl-fluorine-ubuntu-image</base.image.name>
Timoney, Dan (dt5972)b1ac7252018-12-14 13:00:43 -050025 <image.name>onap/ccsdk-odlsli-image</image.name>
26 <ccsdk.project.version>${project.version}</ccsdk.project.version>
Timoney, Dan (dt5972)268c4ba2019-02-12 14:35:10 -050027 <ccsdk.build.timestamp>${maven.build.timestamp}</ccsdk.build.timestamp>
Sandeep Shahb7c724b2019-04-27 03:05:08 -050028 <ccsdk.features.version>0.5.0-SNAPSHOT</ccsdk.features.version>
Timoney, Dan (dt5972)b1ac7252018-12-14 13:00:43 -050029 <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>
janani bc7bc0f72019-03-22 14:37:52 +053035 <odl.features.extra>odl-restconf-all,odl-mdsal-all,odl-mdsal-apidocs, odl-daexim-all,odl-restconf-nb-rfc8040</odl.features.extra>
Timoney, Dan (dt5972)aa9d8252019-02-04 18:02:21 -050036 <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>
Timoney, Dan (dt5972)8433d522019-07-23 14:29:58 -040038
39 <ccsdk.sli.core.version>0.5.0-SNAPSHOT</ccsdk.sli.core.version>
40 <ccsdk.sli.adaptors.version>0.5.0-SNAPSHOT</ccsdk.sli.adaptors.version>
41 <ccsdk.sli.northbound.version>0.5.0-SNAPSHOT</ccsdk.sli.northbound.version>
42 <ccsdk.sli.plugins.version>0.5.0-SNAPSHOT</ccsdk.sli.plugins.version>
Timoney, Dan (dt5972)b1ac7252018-12-14 13:00:43 -050043 </properties>
44
45 <dependencies>
46 <dependency>
47 <groupId>${project.groupId}</groupId>
48 <artifactId>dependencies</artifactId>
49 <version>${project.version}</version>
50 <classifier>repo</classifier>
51 <type>zip</type>
52 </dependency>
53
54 <dependency>
55 <groupId>org.onap.ccsdk.sli.core</groupId>
56 <artifactId>dblib-installer</artifactId>
57 <version>${ccsdk.sli.core.version}</version>
58 <classifier>repo</classifier>
59 <type>zip</type>
60 </dependency>
61 <dependency>
62 <groupId>org.onap.ccsdk.sli.core</groupId>
63 <artifactId>filters-installer</artifactId>
64 <version>${ccsdk.sli.core.version}</version>
65 <classifier>repo</classifier>
66 <type>zip</type>
67 </dependency>
68 <dependency>
69 <groupId>org.onap.ccsdk.sli.core</groupId>
70 <artifactId>sli-installer</artifactId>
71 <version>${ccsdk.sli.core.version}</version>
72 <classifier>repo</classifier>
73 <type>zip</type>
74 </dependency>
75 <dependency>
76 <groupId>org.onap.ccsdk.sli.core</groupId>
77 <artifactId>sliapi-installer</artifactId>
78 <version>${ccsdk.sli.core.version}</version>
79 <classifier>repo</classifier>
80 <type>zip</type>
81 </dependency>
82 <dependency>
83 <groupId>org.onap.ccsdk.sli.core</groupId>
84 <artifactId>sliPluginUtils-installer</artifactId>
85 <version>${ccsdk.sli.core.version}</version>
86 <classifier>repo</classifier>
87 <type>zip</type>
88 </dependency>
89 <dependency>
90 <groupId>org.onap.ccsdk.sli.core</groupId>
91 <artifactId>utils-installer</artifactId>
92 <version>${ccsdk.sli.core.version}</version>
93 <classifier>repo</classifier>
94 <type>zip</type>
95 </dependency>
96 <dependency>
97 <groupId>org.onap.ccsdk.sli.core</groupId>
98 <artifactId>slicore-features-installer</artifactId>
99 <version>${ccsdk.sli.core.version}</version>
100 <classifier>repo</classifier>
101 <type>zip</type>
102 </dependency>
103 <dependency>
104 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
105 <artifactId>aai-service-installer</artifactId>
106 <version>${ccsdk.sli.adaptors.version}</version>
107 <classifier>repo</classifier>
108 <type>zip</type>
109 </dependency>
110 <dependency>
111 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
112 <artifactId>ansible-adapter-installer</artifactId>
113 <version>${ccsdk.sli.adaptors.version}</version>
114 <classifier>repo</classifier>
115 <type>zip</type>
116 </dependency>
117 <dependency>
118 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
119 <artifactId>mdsal-resource-installer</artifactId>
120 <version>${ccsdk.sli.adaptors.version}</version>
121 <classifier>repo</classifier>
122 <type>zip</type>
123 </dependency>
124 <dependency>
Timoney, Dan (dt5972)bdd90112019-03-28 10:30:45 -0400125 <groupId>org.onap.ccsdk.sli.adaptors.messagerouter</groupId>
126 <artifactId>publisher.installer</artifactId>
127 <version>${ccsdk.sli.adaptors.version}</version>
128 <classifier>repo</classifier>
129 <type>zip</type>
130 </dependency>
131 <dependency>
Timoney, Dan (dt5972)b1ac7252018-12-14 13:00:43 -0500132 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
Timoney, Dan (dt5972)c3c74752019-01-30 10:58:25 -0500133 <artifactId>netbox-client-installer</artifactId>
134 <version>${ccsdk.sli.adaptors.version}</version>
135 <classifier>repo</classifier>
136 <type>zip</type>
137 </dependency>
138 <dependency>
139 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
Timoney, Dan (dt5972)b1ac7252018-12-14 13:00:43 -0500140 <artifactId>resource-assignment-installer</artifactId>
141 <version>${ccsdk.sli.adaptors.version}</version>
142 <classifier>repo</classifier>
143 <type>zip</type>
144 </dependency>
145 <dependency>
146 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
Timoney, Dan (dt5972)c3c74752019-01-30 10:58:25 -0500147 <artifactId>saltstack-adapter-installer</artifactId>
Timoney, Dan (dt5972)b1ac7252018-12-14 13:00:43 -0500148 <version>${ccsdk.sli.adaptors.version}</version>
149 <classifier>repo</classifier>
150 <type>zip</type>
151 </dependency>
152 <dependency>
153 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
154 <artifactId>sql-resource-installer</artifactId>
155 <version>${ccsdk.sli.adaptors.version}</version>
156 <classifier>repo</classifier>
157 <type>zip</type>
158 </dependency>
159 <dependency>
160 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
161 <artifactId>sliadaptors-features-installer</artifactId>
162 <version>${ccsdk.sli.adaptors.version}</version>
163 <classifier>repo</classifier>
164 <type>zip</type>
165 </dependency>
166 <dependency>
167 <groupId>org.onap.ccsdk.sli.northbound</groupId>
168 <artifactId>asdcApi-installer</artifactId>
169 <version>${ccsdk.sli.northbound.version}</version>
170 <classifier>repo</classifier>
171 <type>zip</type>
172 </dependency>
173 <dependency>
174 <groupId>org.onap.ccsdk.sli.northbound</groupId>
175 <artifactId>dataChange-installer</artifactId>
176 <version>${ccsdk.sli.northbound.version}</version>
177 <classifier>repo</classifier>
178 <type>zip</type>
179 </dependency>
180 <dependency>
181 <groupId>org.onap.ccsdk.sli.northbound</groupId>
182 <artifactId>lcm-installer</artifactId>
183 <version>${ccsdk.sli.northbound.version}</version>
184 <classifier>repo</classifier>
185 <type>zip</type>
186 </dependency>
187 <dependency>
188 <groupId>org.onap.ccsdk.sli.northbound</groupId>
189 <artifactId>slinorthbound-features-installer</artifactId>
190 <version>${ccsdk.sli.northbound.version}</version>
191 <classifier>repo</classifier>
192 <type>zip</type>
193 </dependency>
194 <dependency>
195 <groupId>org.onap.ccsdk.sli.plugins</groupId>
196 <artifactId>properties-node-installer</artifactId>
197 <version>${ccsdk.sli.plugins.version}</version>
198 <classifier>repo</classifier>
199 <type>zip</type>
200 </dependency>
201 <dependency>
202 <groupId>org.onap.ccsdk.sli.plugins</groupId>
203 <artifactId>restapi-call-node-installer</artifactId>
204 <version>${ccsdk.sli.plugins.version}</version>
205 <classifier>repo</classifier>
206 <type>zip</type>
207 </dependency>
208 <dependency>
209 <groupId>org.onap.ccsdk.sli.plugins</groupId>
Munir Ahmaddf56c572019-01-09 08:45:42 -0500210 <artifactId>template-node-installer</artifactId>
211 <version>${ccsdk.sli.plugins.version}</version>
212 <classifier>repo</classifier>
213 <type>zip</type>
214 </dependency>
215 <dependency>
216 <groupId>org.onap.ccsdk.sli.plugins</groupId>
Timoney, Dan (dt5972)b1ac7252018-12-14 13:00:43 -0500217 <artifactId>restconf-client-installer</artifactId>
218 <version>${ccsdk.sli.plugins.version}</version>
219 <classifier>repo</classifier>
220 <type>zip</type>
221 </dependency>
222 <dependency>
223 <groupId>org.onap.ccsdk.sli.plugins</groupId>
224 <artifactId>sshapi-call-node-installer</artifactId>
225 <version>${ccsdk.sli.plugins.version}</version>
226 <classifier>repo</classifier>
227 <type>zip</type>
228 </dependency>
229 <dependency>
230 <groupId>org.onap.ccsdk.sli.plugins</groupId>
231 <artifactId>sliplugins-features-installer</artifactId>
232 <version>${ccsdk.sli.plugins.version}</version>
233 <classifier>repo</classifier>
234 <type>zip</type>
235 </dependency>
236 <dependency>
237 <groupId>org.onap.ccsdk.features</groupId>
238 <artifactId>features-installer</artifactId>
239 <version>${ccsdk.features.version}</version>
240 <classifier>repo</classifier>
241 <type>zip</type>
242 </dependency>
243 <dependency>
244 <groupId>org.onap.ccsdk.features</groupId>
245 <artifactId>blueprints-processor-installer</artifactId>
246 <version>${ccsdk.features.version}</version>
247 <classifier>repo</classifier>
248 <type>zip</type>
249 </dependency>
Herbert Eiselt14e32422019-03-13 20:29:18 +0100250 <dependency>
251 <groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
252 <artifactId>sdnr-wt-feature-aggregator-installer</artifactId>
253 <version>${ccsdk.features.version}</version>
254 <classifier>repo</classifier>
255 <type>zip</type>
256 </dependency>
Ubuntuc4acdc62019-02-20 20:05:48 +0000257 <dependency>
258 <groupId>org.onap.ccsdk.features</groupId>
259 <artifactId>aafshiro-installer</artifactId>
260 <version>${ccsdk.features.version}</version>
261 <classifier>repo</classifier>
262 <type>zip</type>
263 </dependency>
Sandeep Shahb7c724b2019-04-27 03:05:08 -0500264 <dependency>
265 <groupId>org.onap.ccsdk.features.sdnr.northbound</groupId>
266 <artifactId>sdnr-northbound-features-installer</artifactId>
267 <version>${ccsdk.features.version}</version>
268 <classifier>repo</classifier>
269 <type>zip</type>
270 </dependency>
271 <dependency>
272 <groupId>org.onap.ccsdk.features.sdnr.northbound</groupId>
273 <artifactId>oofpcipoc-installer</artifactId>
274 <version>${ccsdk.features.version}</version>
275 <classifier>repo</classifier>
276 <type>zip</type>
277 </dependency>
Timoney, Dan (dt5972)b1ac7252018-12-14 13:00:43 -0500278 </dependencies>
279
280 <build>
281 <extensions>
282 <extension>
283 <!-- this extension is required by wagon in order to pass the proxy -->
284 <groupId>org.apache.maven.wagon</groupId>
285 <artifactId>wagon-http-lightweight</artifactId>
286 <version>2.2</version>
287 </extension>
288 </extensions>
289 <plugins>
290
291
292 <plugin>
293 <groupId>org.codehaus.groovy.maven</groupId>
294 <artifactId>gmaven-plugin</artifactId>
295 <executions>
296 <execution>
297 <phase>validate</phase>
298 <goals>
299 <goal>execute</goal>
300 </goals>
301 <configuration>
Timoney, Dan (dt5972)268c4ba2019-02-12 14:35:10 -0500302 <source>${basedir}/../../src/main/scripts/TagVersion.groovy</source>
Timoney, Dan (dt5972)b1ac7252018-12-14 13:00:43 -0500303 </configuration>
304 </execution>
305 </executions>
306 </plugin>
307
308
309
310 <plugin>
311 <artifactId>maven-resources-plugin</artifactId>
312 <version>2.6</version>
313 <executions>
314 <execution>
315 <id>copy-dockerfile</id>
316 <goals>
317 <goal>copy-resources</goal>
318 </goals><!-- here the phase you need -->
319 <phase>validate</phase>
320 <configuration>
321 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
322 <resources>
323 <resource>
324 <directory>src/main/docker</directory>
325 <includes>
326 <include>Dockerfile</include>
327 </includes>
328 <filtering>true</filtering>
329 </resource>
330 </resources>
331 </configuration>
332 </execution>
333
334 <execution>
335 <id>copy-scripts</id>
336 <goals>
337 <goal>copy-resources</goal>
338 </goals><!-- here the phase you need -->
339 <phase>validate</phase>
340 <configuration>
341 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/bin</outputDirectory>
342 <resources>
343 <resource>
344 <directory>../src/main/scripts</directory>
345 <includes>
346 <include>*.sh</include>
347 </includes>
348 <filtering>false</filtering>
349 </resource>
350 </resources>
351 </configuration>
352 </execution>
353
354 <execution>
355 <id>copy-odl-resources</id>
356 <goals>
357 <goal>copy-resources</goal>
358 </goals><!-- here the phase you need -->
359 <phase>validate</phase>
360 <configuration>
361 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
362 <resources>
363 <resource>
364 <directory>../src/main/resources</directory>
365 <includes>
366 <include>idmlight.db.mv.db</include>
367 <include>org.ops4j.pax.logging.cfg</include>
368 <include>install_ccsdk.yml</include>
369 <include>ansible-sources.list</include>
370 </includes>
371 <filtering>false</filtering>
372 </resource>
373 </resources>
374 </configuration>
375 </execution>
376 <execution>
377 <id>copy-config</id>
378 <goals>
379 <goal>copy-resources</goal>
380 </goals><!-- here the phase you need -->
381 <phase>validate</phase>
382 <configuration>
383 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
384 <resources>
385 <resource>
386 <directory>../src/main/resources</directory>
387 <includes>
388 <include>org.ops4j.pax.logging.cfg</include>
389 </includes>
390 <filtering>false</filtering>
391 </resource>
392 </resources>
393 </configuration>
394 </execution>
395 <execution>
396 <id>copy-data</id>
397 <goals>
398 <goal>copy-resources</goal>
399 </goals><!-- here the phase you need -->
400 <phase>validate</phase>
401 <configuration>
402 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/data</outputDirectory>
403 <resources>
404 <resource>
405 <directory>../src/main/resources</directory>
406 <includes>
407 <include>*.dump</include>
408 </includes>
409 <filtering>false</filtering>
410 </resource>
411 </resources>
412 </configuration>
413 </execution>
414 <execution>
415 <id>copy-properties</id>
416 <goals>
417 <goal>copy-resources</goal>
418 </goals><!-- here the phase you need -->
419 <phase>validate</phase>
420 <configuration>
421 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/data/properties</outputDirectory>
422 <resources>
423 <resource>
424 <directory>../src/main/properties</directory>
425 <includes>
426 <include>*.properties</include>
Sandeep Shah27296642019-07-11 22:10:58 -0500427 <include>*.vt</include>
Timoney, Dan (dt5972)b1ac7252018-12-14 13:00:43 -0500428 </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>
Timoney, Dan (dt5972)268c4ba2019-02-12 14:35:10 -0500543 <tag>${project.docker.latestminortag.version}</tag>
544 <tag>${project.docker.latestfulltag.version}</tag>
545 <tag>${project.docker.latesttagtimestamp.version}</tag>
Timoney, Dan (dt5972)b1ac7252018-12-14 13:00:43 -0500546 </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>