6fe4a78465e721b83ff743044ce57bea69e61b97
[ccsdk/distribution.git] / odlsli / odlsli-alpine / 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.1</version>
9                 <relativePath/>
10         </parent>
11
12         <groupId>org.onap.ccsdk.distribution</groupId>
13         <artifactId>distribution-odlsli-alpine</artifactId>
14         <version>0.4.1-SNAPSHOT</version>
15         <packaging>pom</packaging>
16
17         <name>ccsdk-distribution :: odlsli-alpine</name>
18         <description>Creates Alpine-based ODLSLI Docker container</description>
19         <organization>
20                 <name>openECOMP</name>
21         </organization>
22
23         <properties>
24             <base.image.name>onap/ccsdk-odl-fluorine-alpine-image</base.image.name>
25                 <image.name>onap/ccsdk-odlsli-alpine-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>${project.version}</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.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</groupId>
128                         <artifactId>netbox-client-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>resource-assignment-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>saltstack-adapter-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>sql-resource-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>sliadaptors-features-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.northbound</groupId>
163                         <artifactId>asdcApi-installer</artifactId>
164                         <version>${ccsdk.sli.northbound.version}</version>
165                         <classifier>repo</classifier>
166                         <type>zip</type>
167                 </dependency>
168                 <dependency>
169                         <groupId>org.onap.ccsdk.sli.northbound</groupId>
170                         <artifactId>dataChange-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>lcm-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>slinorthbound-features-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.plugins</groupId>
191                         <artifactId>properties-node-installer</artifactId>
192                         <version>${ccsdk.sli.plugins.version}</version>
193                         <classifier>repo</classifier>
194                         <type>zip</type>
195                 </dependency>
196                 <dependency>
197                         <groupId>org.onap.ccsdk.sli.plugins</groupId>
198                         <artifactId>restapi-call-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>template-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>restconf-client-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>sshapi-call-node-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>sliplugins-features-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.features</groupId>
233                         <artifactId>features-installer</artifactId>
234                         <version>${ccsdk.features.version}</version>
235                         <classifier>repo</classifier>
236                         <type>zip</type>
237                 </dependency>
238                 <dependency>
239                         <groupId>org.onap.ccsdk.features</groupId>
240                         <artifactId>blueprints-processor-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.sdnr.wt</groupId>
247                         <artifactId>sdnr-wt-feature-aggregator-installer</artifactId>
248                         <version>${ccsdk.features.version}</version>
249                         <classifier>repo</classifier>
250                         <type>zip</type>
251                 </dependency>
252         </dependencies>
253
254         <build>
255         <extensions>
256                 <extension>
257                         <!-- this extension is required by wagon in order to pass the proxy -->
258                         <groupId>org.apache.maven.wagon</groupId>
259                         <artifactId>wagon-http-lightweight</artifactId>
260                         <version>2.2</version>
261                 </extension>
262         </extensions>
263                 <plugins>
264
265
266                         <plugin>
267                                 <groupId>org.codehaus.groovy.maven</groupId>
268                                 <artifactId>gmaven-plugin</artifactId>
269                                 <executions>
270                                         <execution>
271                                                 <phase>validate</phase>
272                                                 <goals>
273                                                         <goal>execute</goal>
274                                                 </goals>
275                                                 <configuration>
276                                                         <source>${basedir}/../../src/main/scripts/TagVersion.groovy</source>
277                                                 </configuration>
278                                         </execution>
279                                 </executions>
280                         </plugin>
281
282
283
284                         <plugin>
285                                 <artifactId>maven-resources-plugin</artifactId>
286                                 <version>2.6</version>
287                                 <executions>
288                                         <execution>
289                                                 <id>copy-dockerfile</id>
290                                                 <goals>
291                                                         <goal>copy-resources</goal>
292                                                 </goals><!-- here the phase you need -->
293                                                 <phase>validate</phase>
294                                                 <configuration>
295                                                         <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
296                                                         <resources>
297                                                                 <resource>
298                                                                         <directory>src/main/docker</directory>
299                                                                         <includes>
300                                                                                 <include>Dockerfile</include>
301                                                                         </includes>
302                                                                         <filtering>true</filtering>
303                                                                 </resource>
304                                                         </resources>
305                                                 </configuration>
306                                         </execution>
307
308                                         <execution>
309                                                 <id>copy-scripts</id>
310                                                 <goals>
311                                                         <goal>copy-resources</goal>
312                                                 </goals><!-- here the phase you need -->
313                                                 <phase>validate</phase>
314                                                 <configuration>
315                                                         <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/bin</outputDirectory>
316                                                         <resources>
317                                                                 <resource>
318                                                                         <directory>../src/main/scripts</directory>
319                                                                         <includes>
320                                                                                 <include>*.sh</include>
321                                                                         </includes>
322                                                                         <filtering>false</filtering>
323                                                                 </resource>
324                                                         </resources>
325                                                 </configuration>
326                                         </execution>
327
328                                         <execution>
329                                                 <id>copy-odl-resources</id>
330                                                 <goals>
331                                                         <goal>copy-resources</goal>
332                                                 </goals><!-- here the phase you need -->
333                                                 <phase>validate</phase>
334                                                 <configuration>
335                                                         <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
336                                                         <resources>
337                                                                 <resource>
338                                                                         <directory>../src/main/resources</directory>
339                                                                         <includes>
340                                                                                 <include>idmlight.db.mv.db</include>
341                                                                                 <include>org.ops4j.pax.logging.cfg</include>
342                                                                                 <include>install_ccsdk.yml</include>
343                                                                                 <include>ansible-sources.list</include>
344                                                                         </includes>
345                                                                         <filtering>false</filtering>
346                                                                 </resource>
347                                                         </resources>
348                                                 </configuration>
349                                         </execution>
350                                         <execution>
351                                                 <id>copy-config</id>
352                                                 <goals>
353                                                         <goal>copy-resources</goal>
354                                                 </goals><!-- here the phase you need -->
355                                                 <phase>validate</phase>
356                                                 <configuration>
357                                                         <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
358                                                         <resources>
359                                                                 <resource>
360                                                                         <directory>../src/main/resources</directory>
361                                                                         <includes>
362                                                                                 <include>org.ops4j.pax.logging.cfg</include>
363                                                                         </includes>
364                                                                         <filtering>false</filtering>
365                                                                 </resource>
366                                                         </resources>
367                                                 </configuration>
368                                         </execution>
369                                         <execution>
370                                                 <id>copy-data</id>
371                                                 <goals>
372                                                         <goal>copy-resources</goal>
373                                                 </goals><!-- here the phase you need -->
374                                                 <phase>validate</phase>
375                                                 <configuration>
376                                                         <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/data</outputDirectory>
377                                                         <resources>
378                                                                 <resource>
379                                                                         <directory>../src/main/resources</directory>
380                                                                         <includes>
381                                                                                 <include>*.dump</include>
382                                                                         </includes>
383                                                                         <filtering>false</filtering>
384                                                                 </resource>
385                                                         </resources>
386                                                 </configuration>
387                                         </execution>
388                                         <execution>
389                                                 <id>copy-properties</id>
390                                                 <goals>
391                                                         <goal>copy-resources</goal>
392                                                 </goals><!-- here the phase you need -->
393                                                 <phase>validate</phase>
394                                                 <configuration>
395                                                         <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/data/properties</outputDirectory>
396                                                         <resources>
397                                                                 <resource>
398                                                                         <directory>../src/main/properties</directory>
399                                                                         <includes>
400                                                                                 <include>*.properties</include>
401                                                                         </includes>
402                                                                         <filtering>false</filtering>
403                                                                 </resource>
404                                                         </resources>
405                                                 </configuration>
406                                         </execution>
407                                         <execution>
408                                                 <id>copy-keystores</id>
409                                                 <goals>
410                                                         <goal>copy-resources</goal>
411                                                 </goals><!-- here the phase you need -->
412                                                 <phase>validate</phase>
413                                                 <configuration>
414                                                         <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/data/stores</outputDirectory>
415                                                         <resources>
416                                                                 <resource>
417                                                                         <directory>../src/main/stores</directory>
418                                                                         <includes>
419                                                                                 <include>*.jks</include>
420                                                                         </includes>
421                                                                         <filtering>false</filtering>
422                                                                 </resource>
423                                                         </resources>
424                                                 </configuration>
425                                         </execution>
426                                 </executions>
427                         </plugin>
428                         <plugin>
429                                 <groupId>org.apache.maven.plugins</groupId>
430                                 <artifactId>maven-dependency-plugin</artifactId>
431                                 <version>3.0.2</version>
432                                 <executions>
433                                         <execution>
434                                                 <id>unpack features</id>
435                                                 <phase>generate-sources</phase>
436                                                 <goals>
437                                                         <goal>unpack-dependencies</goal>
438                                                 </goals>
439                                                 <configuration>
440                                                         <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
441                                                         <excludeTransitive>true</excludeTransitive>
442                                                 </configuration>
443                                         </execution>
444                                         <execution>
445                                                 <id>unpack dgs</id>
446                                                 <phase>generate-sources</phase>
447                                                 <goals>
448                                                         <goal>unpack</goal>
449                                                 </goals>
450                                                 <configuration>
451                                                         <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk</outputDirectory>
452                                                         <artifactItems>
453                                                                 <artifactItem>
454                                                                         <groupId>${project.groupId}</groupId>
455                                                                         <artifactId>platform-logic-installer</artifactId>
456                                                                         <version>${project.version}</version>
457                                                                         <type>zip</type>
458                                                                 </artifactItem>
459                                                         </artifactItems>
460                                                 </configuration>
461                                         </execution>
462                                 </executions>
463                         </plugin>
464                         <plugin>
465                                 <groupId>org.codehaus.mojo</groupId>
466                                 <artifactId>exec-maven-plugin</artifactId>
467                                 <version>1.5.0</version>
468                                 <executions>
469
470                                         <execution>
471                                                 <id>change shell permissions</id>
472                                                 <phase>process-sources</phase>
473                                                 <goals>
474                                                         <goal>exec</goal>
475                                                 </goals>
476                                                 <configuration>
477                                                         <executable>/usr/bin/find</executable>
478                                                         <arguments>
479                                                                 <argument>${basedir}/target/docker-stage/opt/onap/ccsdk</argument>
480                                                                 <argument>-name</argument>
481                                                                 <argument>*.sh</argument>
482                                                                 <argument>-exec</argument>
483                                                                 <argument>chmod</argument>
484                                                                 <argument>+x</argument>
485                                                                 <argument>{}</argument>
486                                                                 <argument>;</argument>
487                                                         </arguments>
488                                                 </configuration>
489                                         </execution>
490                                 </executions>
491                         </plugin>
492
493
494                 </plugins>
495         </build>
496
497         <profiles>
498                 <profile>
499                         <id>docker</id>
500                         <build>
501                                 <plugins>
502                                         <plugin>
503                                                 <groupId>io.fabric8</groupId>
504                                                 <artifactId>docker-maven-plugin</artifactId>
505                                                 <version>0.16.5</version>
506                                                 <inherited>false</inherited>
507                                                 <configuration>
508                                                         <images>
509                                                                 <image>
510                                                                         <name>${image.name}</name>
511                                                                         <build>
512                                                                                 <cleanup>try</cleanup>
513                                                                                 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
514                                                                                 <dockerFile>${basedir}/target/docker-stage/Dockerfile</dockerFile>
515                                                                                 <tags>
516                                                                                         <tag>${project.docker.latestminortag.version}</tag>
517                                                                                         <tag>${project.docker.latestfulltag.version}</tag>
518                                                                                         <tag>${project.docker.latesttagtimestamp.version}</tag>
519                                                                                 </tags>
520                                                                         </build>
521                                                                 </image>
522                                                         </images>
523                                                 </configuration>
524                                                 <executions>
525                                                         <execution>
526                                                                 <id>generate-images</id>
527                                                                 <phase>package</phase>
528                                                                 <goals>
529                                                                         <goal>build</goal>
530                                                                 </goals>
531                                                         </execution>
532
533                                                         <execution>
534                                                                 <id>push-images</id>
535                                                                 <phase>${docker.push.phase}</phase>
536                                                                 <goals>
537                                                                         <goal>build</goal>
538                                                                         <goal>push</goal>
539                                                                 </goals>
540                                                         </execution>
541                                                 </executions>
542                                         </plugin>
543                                 </plugins>
544                         </build>
545                 </profile>
546         </profiles>
547 </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