ce106f21170775bad79ea09da1a8b66d1661eeba
[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.3.3-SNAPSHOT</version>
9                 <relativePath/>
10         </parent>
11
12         <groupId>org.onap.ccsdk.distribution</groupId>
13         <artifactId>distribution-odlsli-ubuntu</artifactId>
14         <version>0.5.2-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.5.1</ccsdk.features.version>
29                 <docker.buildArg.https_proxy>${https_proxy}</docker.buildArg.https_proxy>
30                 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
31                 <opendaylight.root>opt/opendaylight</opendaylight.root>
32                 <docker.push.phase>deploy</docker.push.phase>
33                 <docker.verbose>true</docker.verbose>
34                 <ansible.gpg.key>93C4A3FD7BB9C367</ansible.gpg.key>
35                 <odl.features.extra>odl-restconf-all,odl-mdsal-all,odl-mdsal-apidocs, odl-daexim-all,odl-restconf-nb-rfc8040</odl.features.extra>
36                 <ccsdk.odl.features>ccsdk-sli-core-all,ccsdk-sli-adaptors-all,ccsdk-sli-northbound-all,ccsdk-sli-plugins-all,ccsdk-features-all</ccsdk.odl.features>
37                 <odl.boot.features.extra>${odl.features.extra},${ccsdk.odl.features}</odl.boot.features.extra>
38
39                 <ccsdk.sli.core.version>0.5.1</ccsdk.sli.core.version>
40                 <ccsdk.sli.adaptors.version>0.5.1</ccsdk.sli.adaptors.version>
41                 <ccsdk.sli.northbound.version>0.5.1</ccsdk.sli.northbound.version>
42                 <ccsdk.sli.plugins.version>0.5.1</ccsdk.sli.plugins.version>
43         </properties>
44
45         <dependencies>
46                 <dependency>
47                         <groupId>${project.groupId}</groupId>
48                         <artifactId>dependencies</artifactId>
49                         <version>${project.version}</version>
50                         <classifier>repo</classifier>
51                         <type>zip</type>
52                 </dependency>
53
54                 <dependency>
55                         <groupId>org.onap.ccsdk.sli.core</groupId>
56                         <artifactId>dblib-installer</artifactId>
57                         <version>${ccsdk.sli.core.version}</version>
58                         <classifier>repo</classifier>
59                         <type>zip</type>
60                 </dependency>
61                 <dependency>
62                         <groupId>org.onap.ccsdk.sli.core</groupId>
63                         <artifactId>filters-installer</artifactId>
64                         <version>${ccsdk.sli.core.version}</version>
65                         <classifier>repo</classifier>
66                         <type>zip</type>
67                 </dependency>
68                 <dependency>
69                         <groupId>org.onap.ccsdk.sli.core</groupId>
70                         <artifactId>sli-installer</artifactId>
71                         <version>${ccsdk.sli.core.version}</version>
72                         <classifier>repo</classifier>
73                         <type>zip</type>
74                 </dependency>
75                 <dependency>
76                         <groupId>org.onap.ccsdk.sli.core</groupId>
77                         <artifactId>sliapi-installer</artifactId>
78                         <version>${ccsdk.sli.core.version}</version>
79                         <classifier>repo</classifier>
80                         <type>zip</type>
81                 </dependency>
82                 <dependency>
83                         <groupId>org.onap.ccsdk.sli.core</groupId>
84                         <artifactId>sliPluginUtils-installer</artifactId>
85                         <version>${ccsdk.sli.core.version}</version>
86                         <classifier>repo</classifier>
87                         <type>zip</type>
88                 </dependency>
89                 <dependency>
90                         <groupId>org.onap.ccsdk.sli.core</groupId>
91                         <artifactId>utils-installer</artifactId>
92                         <version>${ccsdk.sli.core.version}</version>
93                         <classifier>repo</classifier>
94                         <type>zip</type>
95                 </dependency>
96                 <dependency>
97                         <groupId>org.onap.ccsdk.sli.core</groupId>
98                         <artifactId>slicore-features-installer</artifactId>
99                         <version>${ccsdk.sli.core.version}</version>
100                         <classifier>repo</classifier>
101                         <type>zip</type>
102                 </dependency>
103                 <dependency>
104                         <groupId>org.onap.ccsdk.sli.adaptors</groupId>
105                         <artifactId>aai-service-installer</artifactId>
106                         <version>${ccsdk.sli.adaptors.version}</version>
107                         <classifier>repo</classifier>
108                         <type>zip</type>
109                 </dependency>
110         <dependency>
111                         <groupId>org.onap.ccsdk.sli.adaptors</groupId>
112                         <artifactId>ansible-adapter-installer</artifactId>
113                         <version>${ccsdk.sli.adaptors.version}</version>
114                         <classifier>repo</classifier>
115                         <type>zip</type>
116                 </dependency>
117                 <dependency>
118                         <groupId>org.onap.ccsdk.sli.adaptors</groupId>
119                         <artifactId>mdsal-resource-installer</artifactId>
120                         <version>${ccsdk.sli.adaptors.version}</version>
121                         <classifier>repo</classifier>
122                         <type>zip</type>
123                 </dependency>
124                 <dependency>
125                         <groupId>org.onap.ccsdk.sli.adaptors.messagerouter</groupId>
126                         <artifactId>publisher.installer</artifactId>
127                         <version>${ccsdk.sli.adaptors.version}</version>
128                         <classifier>repo</classifier>
129                         <type>zip</type>
130                 </dependency>
131                 <dependency>
132                         <groupId>org.onap.ccsdk.sli.adaptors</groupId>
133                         <artifactId>netbox-client-installer</artifactId>
134                         <version>${ccsdk.sli.adaptors.version}</version>
135                         <classifier>repo</classifier>
136                         <type>zip</type>
137                 </dependency>
138                 <dependency>
139                         <groupId>org.onap.ccsdk.sli.adaptors</groupId>
140                         <artifactId>resource-assignment-installer</artifactId>
141                         <version>${ccsdk.sli.adaptors.version}</version>
142                         <classifier>repo</classifier>
143                         <type>zip</type>
144                 </dependency>
145                 <dependency>
146                         <groupId>org.onap.ccsdk.sli.adaptors</groupId>
147                         <artifactId>saltstack-adapter-installer</artifactId>
148                         <version>${ccsdk.sli.adaptors.version}</version>
149                         <classifier>repo</classifier>
150                         <type>zip</type>
151                 </dependency>
152                 <dependency>
153                         <groupId>org.onap.ccsdk.sli.adaptors</groupId>
154                         <artifactId>sql-resource-installer</artifactId>
155                         <version>${ccsdk.sli.adaptors.version}</version>
156                         <classifier>repo</classifier>
157                         <type>zip</type>
158                 </dependency>
159                 <dependency>
160                         <groupId>org.onap.ccsdk.sli.adaptors</groupId>
161                         <artifactId>sliadaptors-features-installer</artifactId>
162                         <version>${ccsdk.sli.adaptors.version}</version>
163                         <classifier>repo</classifier>
164                         <type>zip</type>
165                 </dependency>
166                 <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>
210                         <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>
217                         <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>
250                 <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>
257                 <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>
264                 <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>
278         </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>
302                                                         <source>${basedir}/../../src/main/scripts/TagVersion.groovy</source>
303                                                 </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>
427                                                                                 <include>*.vt</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>

© 2017 ONAP. Copyright © The Linux Foundation ®. All Rights Reserved.
The Linux Foundation has registered trademarks and uses trademarks.
For a list of trademarks of The Linux Foundation, please see our Trademark Usage page.
Linux is a registered trademark of Linus Torvalds.
Privacy Policy and Terms of Use