Add missing maven repos
[ccsdk/distribution.git] / odlsli / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <project xmlns="http://maven.apache.org/POM/4.0.0"
3         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5         <modelVersion>4.0.0</modelVersion>
6
7         <parent>
8                 <groupId>org.onap.ccsdk.parent</groupId>
9                 <artifactId>odlparent-lite</artifactId>
10                 <version>1.1.0-SNAPSHOT</version>
11                 <relativePath />
12         </parent>
13
14         <groupId>org.onap.ccsdk.distribution</groupId>
15         <artifactId>distribution-odlsli</artifactId>
16         <version>0.3.0-SNAPSHOT</version>
17         <packaging>pom</packaging>
18
19         <name>ccsdk-distribution :: odlsli</name>
20         <description>Creates SDN Controller Docker container</description>
21         <organization>
22                 <name>openECOMP</name>
23         </organization>
24
25         <properties>
26                 <image.name>onap/ccsdk-odlsli-image</image.name>
27                 <ccsdk.project.version>${project.version}</ccsdk.project.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
38                 <dependency>
39                         <groupId>org.onap.ccsdk.sli.core</groupId>
40                         <artifactId>dblib-installer</artifactId>
41                         <version>${ccsdk.sli.core.version}</version>
42                         <classifier>repo</classifier>
43                         <type>zip</type>
44                 </dependency>
45                 <dependency>
46                         <groupId>org.onap.ccsdk.sli.core</groupId>
47                         <artifactId>filters-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>sli-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>sliapi-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>sliPluginUtils-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>utils-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>slicore-features-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.adaptors</groupId>
89                         <artifactId>aai-service-installer</artifactId>
90                         <version>${ccsdk.sli.adaptors.version}</version>
91                         <classifier>repo</classifier>
92                         <type>zip</type>
93                 </dependency>
94         <dependency>
95                         <groupId>org.onap.ccsdk.sli.adaptors</groupId>
96                         <artifactId>ansible-adapter-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>mdsal-resource-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>resource-assignment-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>sql-resource-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>sliadaptors-features-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.northbound</groupId>
131                         <artifactId>asdcApi-installer</artifactId>
132                         <version>${ccsdk.sli.northbound.version}</version>
133                         <classifier>repo</classifier>
134                         <type>zip</type>
135                 </dependency>
136                 <dependency>
137                         <groupId>org.onap.ccsdk.sli.northbound</groupId>
138                         <artifactId>dataChange-installer</artifactId>
139                         <version>${ccsdk.sli.northbound.version}</version>
140                         <classifier>repo</classifier>
141                         <type>zip</type>
142                 </dependency>
143                 <dependency>
144                         <groupId>org.onap.ccsdk.sli.northbound</groupId>
145                         <artifactId>lcm-installer</artifactId>
146                         <version>${ccsdk.sli.northbound.version}</version>
147                         <classifier>repo</classifier>
148                         <type>zip</type>
149                 </dependency>
150                 <dependency>
151                         <groupId>org.onap.ccsdk.sli.northbound</groupId>
152                         <artifactId>slinorthbound-features-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.plugins</groupId>
159                         <artifactId>properties-node-installer</artifactId>
160                         <version>${ccsdk.sli.plugins.version}</version>
161                         <classifier>repo</classifier>
162                         <type>zip</type>
163                 </dependency>
164                 <dependency>
165                         <groupId>org.onap.ccsdk.sli.plugins</groupId>
166                         <artifactId>restapi-call-node-installer</artifactId>
167                         <version>${ccsdk.sli.plugins.version}</version>
168                         <classifier>repo</classifier>
169                         <type>zip</type>
170                 </dependency>
171                 <dependency>
172                         <groupId>org.onap.ccsdk.sli.plugins</groupId>
173                         <artifactId>restconf-client-installer</artifactId>
174                         <version>${ccsdk.sli.plugins.version}</version>
175                         <classifier>repo</classifier>
176                         <type>zip</type>
177                 </dependency>
178                 <dependency>
179                         <groupId>org.onap.ccsdk.sli.plugins</groupId>
180                         <artifactId>sshapi-call-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>sliplugins-features-installer</artifactId>
188                         <version>${ccsdk.sli.plugins.version}</version>
189                         <classifier>repo</classifier>
190                         <type>zip</type>
191                 </dependency>
192         </dependencies>
193
194         <build>
195         <extensions>
196                 <extension>
197                         <!-- this extension is required by wagon in order to pass the proxy -->
198                         <groupId>org.apache.maven.wagon</groupId>
199                         <artifactId>wagon-http-lightweight</artifactId>
200                         <version>2.2</version>
201                 </extension>
202         </extensions>
203                 <plugins>
204
205
206                         <plugin>
207                                 <groupId>org.codehaus.groovy.maven</groupId>
208                                 <artifactId>gmaven-plugin</artifactId>
209                                 <executions>
210                                         <execution>
211                                                 <phase>validate</phase>
212                                                 <goals>
213                                                         <goal>execute</goal>
214                                                 </goals>
215                                                 <configuration>
216                                                         <source>
217                                                                 println project.properties['ccsdk.project.version'];
218                                                                 def versionArray;
219                                                                 if (project.properties['ccsdk.project.version'] != null ) {
220                                                                     versionArray = project.properties['ccsdk.project.version'].split('\\.');
221                                                                 }
222
223                                                                 if (project.properties['ccsdk.project.version'].endsWith("-SNAPSHOT"))
224                                                                 {
225                                                                     project.properties['project.docker.latesttag.version']=versionArray[0] + '.' + versionArray[1] + "-STAGING-latest";
226                                                                 } else {
227                                                                     project.properties['project.docker.latesttag.version']=versionArray[0] + '.' + versionArray[1] + "-STAGING-latest";
228                                                                 }
229
230                                                                 println 'New Tag for docker:' + project.properties['project.docker.latesttag.version'];
231                                                         </source>
232                                                 </configuration>
233                                         </execution>
234                                 </executions>
235                         </plugin>
236
237
238
239                         <plugin>
240                                 <artifactId>maven-resources-plugin</artifactId>
241                                 <version>2.6</version>
242                                 <executions>
243                                         <execution>
244                                                 <id>copy-dockerfile</id>
245                                                 <goals>
246                                                         <goal>copy-resources</goal>
247                                                 </goals><!-- here the phase you need -->
248                                                 <phase>validate</phase>
249                                                 <configuration>
250                                                         <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
251                                                         <resources>
252                                                                 <resource>
253                                                                         <directory>src/main/docker</directory>
254                                                                         <includes>
255                                                                                 <include>Dockerfile</include>
256                                                                         </includes>
257                                                                         <filtering>true</filtering>
258                                                                 </resource>
259                                                         </resources>
260                                                 </configuration>
261                                         </execution>
262
263                                         <execution>
264                                                 <id>copy-scripts</id>
265                                                 <goals>
266                                                         <goal>copy-resources</goal>
267                                                 </goals><!-- here the phase you need -->
268                                                 <phase>validate</phase>
269                                                 <configuration>
270                                                         <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/bin</outputDirectory>
271                                                         <resources>
272                                                                 <resource>
273                                                                         <directory>src/main/scripts</directory>
274                                                                         <includes>
275                                                                                 <include>*.sh</include>
276                                                                         </includes>
277                                                                         <filtering>false</filtering>
278                                                                 </resource>
279                                                         </resources>
280                                                 </configuration>
281                                         </execution>
282
283                                         <execution>
284                                                 <id>copy-odl-resources</id>
285                                                 <goals>
286                                                         <goal>copy-resources</goal>
287                                                 </goals><!-- here the phase you need -->
288                                                 <phase>validate</phase>
289                                                 <configuration>
290                                                         <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
291                                                         <resources>
292                                                                 <resource>
293                                                                         <directory>src/main/resources</directory>
294                                                                         <includes>
295                                                                                 <include>idmlight.db.mv.db</include>
296                                                                                 <include>org.ops4j.pax.logging.cfg</include>
297                                                                                 <include>install_ccsdk.yml</include>
298                                                                                 <include>ansible-sources.list</include>
299                                                                         </includes>
300                                                                         <filtering>false</filtering>
301                                                                 </resource>
302                                                         </resources>
303                                                 </configuration>
304                                         </execution>
305                                         <execution>
306                                                 <id>copy-config</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</outputDirectory>
313                                                         <resources>
314                                                                 <resource>
315                                                                         <directory>src/main/resources</directory>
316                                                                         <includes>
317                                                                                 <include>org.ops4j.pax.logging.cfg</include>
318                                                                         </includes>
319                                                                         <filtering>false</filtering>
320                                                                 </resource>
321                                                         </resources>
322                                                 </configuration>
323                                         </execution>
324                                         <execution>
325                                                 <id>copy-data</id>
326                                                 <goals>
327                                                         <goal>copy-resources</goal>
328                                                 </goals><!-- here the phase you need -->
329                                                 <phase>validate</phase>
330                                                 <configuration>
331                                                         <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/data</outputDirectory>
332                                                         <resources>
333                                                                 <resource>
334                                                                         <directory>src/main/resources</directory>
335                                                                         <includes>
336                                                                                 <include>*.dump</include>
337                                                                         </includes>
338                                                                         <filtering>false</filtering>
339                                                                 </resource>
340                                                         </resources>
341                                                 </configuration>
342                                         </execution>
343                                         <execution>
344                                                 <id>copy-properties</id>
345                                                 <goals>
346                                                         <goal>copy-resources</goal>
347                                                 </goals><!-- here the phase you need -->
348                                                 <phase>validate</phase>
349                                                 <configuration>
350                                                         <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/data/properties</outputDirectory>
351                                                         <resources>
352                                                                 <resource>
353                                                                         <directory>src/main/properties</directory>
354                                                                         <includes>
355                                                                                 <include>*.properties</include>
356                                                                         </includes>
357                                                                         <filtering>false</filtering>
358                                                                 </resource>
359                                                         </resources>
360                                                 </configuration>
361                                         </execution>
362                                         <execution>
363                                                 <id>copy-keystores</id>
364                                                 <goals>
365                                                         <goal>copy-resources</goal>
366                                                 </goals><!-- here the phase you need -->
367                                                 <phase>validate</phase>
368                                                 <configuration>
369                                                         <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/data/stores</outputDirectory>
370                                                         <resources>
371                                                                 <resource>
372                                                                         <directory>src/main/stores</directory>
373                                                                         <includes>
374                                                                                 <include>*.jks</include>
375                                                                         </includes>
376                                                                         <filtering>false</filtering>
377                                                                 </resource>
378                                                         </resources>
379                                                 </configuration>
380                                         </execution>
381                                 </executions>
382                         </plugin>
383                         <plugin>
384                                 <groupId>org.apache.maven.plugins</groupId>
385                                 <artifactId>maven-dependency-plugin</artifactId>
386                                 <version>3.0.2</version>
387                                 <executions>
388                                         <execution>
389                                                 <id>unpack features</id>
390                                                 <phase>generate-sources</phase>
391                                                 <goals>
392                                                         <goal>unpack-dependencies</goal>
393                                                 </goals>
394                                                 <configuration>
395                                                         <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
396                                                         <excludeTransitive>true</excludeTransitive>
397                                                 </configuration>
398                                         </execution>
399                                         <execution>
400                                                 <id>unpack dgs</id>
401                                                 <phase>generate-sources</phase>
402                                                 <goals>
403                                                         <goal>unpack</goal>
404                                                 </goals>
405                                                 <configuration>
406                                                         <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk</outputDirectory>
407                                                         <artifactItems>
408                                                                 <artifactItem>
409                                                                         <groupId>${project.groupId}</groupId>
410                                                                         <artifactId>platform-logic-installer</artifactId>
411                                                                         <version>${project.version}</version>
412                                                                         <type>zip</type>
413                                                                 </artifactItem>
414                                                         </artifactItems>
415                                                 </configuration>
416                                         </execution>
417                                 </executions>
418                         </plugin>
419                         <plugin>
420                                 <groupId>org.codehaus.mojo</groupId>
421                                 <artifactId>exec-maven-plugin</artifactId>
422                                 <version>1.5.0</version>
423                                 <executions>
424
425                                         <execution>
426                                                 <id>change shell permissions</id>
427                                                 <phase>process-sources</phase>
428                                                 <goals>
429                                                         <goal>exec</goal>
430                                                 </goals>
431                                                 <configuration>
432                                                         <executable>/usr/bin/find</executable>
433                                                         <arguments>
434                                                                 <argument>${basedir}/target/docker-stage/opt/onap/ccsdk</argument>
435                                                                 <argument>-name</argument>
436                                                                 <argument>*.sh</argument>
437                                                                 <argument>-exec</argument>
438                                                                 <argument>chmod</argument>
439                                                                 <argument>+x</argument>
440                                                                 <argument>{}</argument>
441                                                                 <argument>;</argument>
442                                                         </arguments>
443                                                 </configuration>
444                                         </execution>
445                                 </executions>
446                         </plugin>
447
448
449                 </plugins>
450         </build>
451
452         <profiles>
453                 <profile>
454                         <id>docker</id>
455                         <build>
456                                 <plugins>
457                                         <plugin>
458                                                 <groupId>io.fabric8</groupId>
459                                                 <artifactId>docker-maven-plugin</artifactId>
460                                                 <version>0.16.5</version>
461                                                 <inherited>false</inherited>
462                                                 <configuration>
463                                                         <images>
464                                                                 <image>
465                                                                         <name>${image.name}</name>
466                                                                         <build>
467                                                                                 <cleanup>try</cleanup>
468                                                                                 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
469                                                                                 <dockerFile>${basedir}/target/docker-stage/Dockerfile</dockerFile>
470                                                                                 <tags>
471                                                                                         <tag>${project.version}</tag>
472                                                                                         <tag>${project.version}-STAGING-${maven.build.timestamp}</tag>
473                                                                                         <tag>${project.docker.latesttag.version}</tag>
474                                                                                 </tags>
475                                                                         </build>
476                                                                 </image>
477                                                         </images>
478                                                 </configuration>
479                                                 <executions>
480                                                         <execution>
481                                                                 <id>generate-images</id>
482                                                                 <phase>package</phase>
483                                                                 <goals>
484                                                                         <goal>build</goal>
485                                                                 </goals>
486                                                         </execution>
487
488                                                         <execution>
489                                                                 <id>push-images</id>
490                                                                 <phase>${docker.push.phase}</phase>
491                                                                 <goals>
492                                                                         <goal>build</goal>
493                                                                         <goal>push</goal>
494                                                                 </goals>
495                                                         </execution>
496                                                 </executions>
497                                         </plugin>
498                                 </plugins>
499                         </build>
500                 </profile>
501         </profiles>
502 </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