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