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