Update to use RC1 version of CCSDK
[sdnc/oam.git] / installation / sdnc / 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/maven-v4_0_0.xsd">
3
4     <parent>
5         <groupId>org.onap.ccsdk.parent</groupId>
6         <artifactId>odlparent-lite</artifactId>
7         <version>1.5.4</version>
8     </parent>
9
10     <modelVersion>4.0.0</modelVersion>
11     <packaging>pom</packaging>
12     <groupId>org.onap.sdnc.oam</groupId>
13     <artifactId>installation-sdnc</artifactId>
14     <version>1.8.1-SNAPSHOT</version>
15
16     <name>sdnc-oam :: installation :: ${project.artifactId}</name>
17     <description>Creates SDN Controller Docker container</description>
18
19     <properties>
20         <image.name>onap/sdnc-aaf-image</image.name>
21         <standalone.image.name>onap/sdnc-image</standalone.image.name>
22         <sdnc.project.version>${project.version}</sdnc.project.version>
23         <sdnc.build.timestamp>${maven.build.timestamp}</sdnc.build.timestamp>
24         <sdnc.northbound.version>1.8.0</sdnc.northbound.version>
25         <ccsdk.docker.version>0.7.2</ccsdk.docker.version>
26         <ccsdk.features.version>0.7.3</ccsdk.features.version>
27         <ccsdk.features.sdnr.wt.version>0.7.3</ccsdk.features.sdnr.wt.version>
28         <sdnc.keystore>org.onap.sdnc.p12</sdnc.keystore>
29         <sdnc.keypass><![CDATA[ff^G9D]yf&r}Ktum@BJ0YB?N]]></sdnc.keypass>
30         <sdnc.secureport>8443</sdnc.secureport>
31         <docker.buildArg.https_proxy>${https_proxy}</docker.buildArg.https_proxy>
32         <docker.push.phase>deploy</docker.push.phase>
33         <docker.verbose>true</docker.verbose>
34         <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
35     </properties>
36
37     <dependencies>
38         <dependency>
39             <groupId>org.onap.sdnc.northbound</groupId>
40             <artifactId>generic-resource-api-installer</artifactId>
41             <version>${sdnc.northbound.version}</version>
42             <classifier>repo</classifier>
43             <type>zip</type>
44         </dependency>
45         <dependency>
46             <groupId>org.onap.sdnc.northbound</groupId>
47             <artifactId>vnfapi-installer</artifactId>
48             <version>${sdnc.northbound.version}</version>
49             <classifier>repo</classifier>
50             <type>zip</type>
51        </dependency>
52        <dependency>
53             <groupId>org.onap.sdnc.northbound</groupId>
54             <artifactId>optical-service-installer</artifactId>
55             <version>${sdnc.northbound.version}</version>
56             <classifier>repo</classifier>
57             <type>zip</type>
58         </dependency>
59         <dependency>
60             <groupId>org.onap.sdnc.northbound</groupId>
61             <artifactId>vnftools-installer</artifactId>
62             <version>${sdnc.northbound.version}</version>
63             <classifier>repo</classifier>
64             <type>zip</type>
65         </dependency>
66         <dependency>
67             <groupId>org.onap.sdnc.northbound</groupId>
68             <artifactId>sdnc-northbound-features-installer</artifactId>
69             <version>${sdnc.northbound.version}</version>
70             <classifier>repo</classifier>
71             <type>zip</type>
72         </dependency>
73
74         <dependency>
75             <groupId>org.onap.ccsdk.features.sdnr.northbound</groupId>
76             <artifactId>oofpcipoc-installer</artifactId>
77             <version>${ccsdk.features.version}</version>
78             <classifier>repo</classifier>
79             <type>zip</type>
80         </dependency>
81
82         <dependency>
83             <groupId>org.onap.ccsdk.features.sdnr.northbound</groupId>
84             <artifactId>sdnr-northbound-features-installer</artifactId>
85             <version>${ccsdk.features.version}</version>
86             <classifier>repo</classifier>
87             <type>zip</type>
88         </dependency>
89         <dependency>
90             <groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
91             <artifactId>sdnr-wt-feature-aggregator-installer</artifactId>
92             <version>${ccsdk.features.sdnr.wt.version}</version>
93             <classifier>repo</classifier>
94             <type>zip</type>
95         </dependency>
96     </dependencies>
97
98     <build>
99         <plugins>
100
101
102             <plugin>
103                 <groupId>org.codehaus.groovy.maven</groupId>
104                 <artifactId>gmaven-plugin</artifactId>
105                 <executions>
106                     <execution>
107                         <phase>validate</phase>
108                         <goals>
109                             <goal>execute</goal>
110                         </goals>
111                         <configuration>
112                             <source>${basedir}/../TagVersion.groovy</source>
113                         </configuration>
114                     </execution>
115                 </executions>
116             </plugin>
117
118             <plugin>
119                 <groupId>io.fabric8</groupId>
120                 <artifactId>docker-maven-plugin</artifactId>
121                 <version>0.28.0</version>
122                 <inherited>false</inherited>
123                 <executions>
124                     <execution>
125                         <id>generate-images</id>
126                         <phase>package</phase>
127                         <goals>
128                             <goal>build</goal>
129                         </goals>
130                         <configuration>
131                            <images>
132                             <image>
133                              <name>${image.name}</name>
134                              <build>
135                               <cleanup>try</cleanup>
136                               <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
137                               <dockerFile>Dockerfile</dockerFile>
138                               <tags>
139                                  <tag>${project.docker.latestminortag.version}</tag>
140                                  <tag>${project.docker.latestfulltag.version}</tag>
141                                  <tag>${project.docker.latesttagtimestamp.version}</tag>
142                               </tags>
143                              </build>
144                             </image>
145                            </images>
146                           </configuration>
147                     </execution>
148                     <execution>
149                       <id>push-images</id>
150                       <phase>${docker.push.phase}</phase>
151                       <goals>
152                        <goal>build</goal>
153                        <goal>push</goal>
154                       </goals>
155                        <configuration>
156                         <images>
157                          <image>
158                           <name>${image.name}</name>
159                           <build>
160                            <cleanup>try</cleanup>
161                            <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
162                            <dockerFile>Dockerfile</dockerFile>
163                            <tags>
164                               <tag>${project.docker.latestminortag.version}</tag>
165                               <tag>${project.docker.latestfulltag.version}</tag>
166                               <tag>${project.docker.latesttagtimestamp.version}</tag>
167                            </tags>
168                           </build>
169                          </image>
170                         </images>
171                        </configuration>
172                    </execution>
173                    <execution>
174                      <id>generate-standalone-images</id>
175                      <phase>package</phase>
176                      <goals>
177                       <goal>build</goal>
178                      </goals>
179                      <configuration>
180                       <images>
181                        <image>
182                         <name>${standalone.image.name}</name>
183                         <build>
184                          <cleanup>try</cleanup>
185                          <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
186                          <dockerFile>standalone.Dockerfile</dockerFile>
187                          <tags>
188                              <tag>${project.docker.latestminortag.version}</tag>
189                              <tag>${project.docker.latestfulltag.version}</tag>
190                              <tag>${project.docker.latesttagtimestamp.version}</tag>
191                          </tags>
192                         </build>
193                        </image>
194                       </images>
195                      </configuration>
196                    </execution>
197                    <execution>
198                      <id>push-standalone-images</id>
199                      <phase>${docker.push.phase}</phase>
200                      <goals>
201                       <goal>build</goal>
202                       <goal>push</goal>
203                      </goals>
204                      <configuration>
205                        <images>
206                         <image>
207                          <name>${standalone.image.name}</name>
208                          <build>
209                           <cleanup>try</cleanup>
210                           <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
211                           <dockerFile>standalone.Dockerfile</dockerFile>
212                           <tags>
213                              <tag>${project.docker.latestminortag.version}</tag>
214                              <tag>${project.docker.latestfulltag.version}</tag>
215                              <tag>${project.docker.latesttagtimestamp.version}</tag>
216                           </tags>
217                          </build>
218                         </image>
219                        </images>
220                      </configuration>
221                   </execution>
222                 </executions>
223             </plugin>
224             <plugin>
225                 <artifactId>maven-resources-plugin</artifactId>
226                 <version>2.6</version>
227                 <executions>
228                     <execution>
229                         <id>copy-dockerfile</id>
230                         <goals>
231                             <goal>copy-resources</goal>
232                         </goals><!-- here the phase you need -->
233                         <phase>validate</phase>
234                         <configuration>
235                             <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
236                             <resources>
237                                 <resource>
238                                     <directory>src/main/docker</directory>
239                                     <includes>
240                                         <include>Dockerfile</include>
241                                         <include>standalone.Dockerfile</include>
242                                     </includes>
243                                     <filtering>true</filtering>
244                                 </resource>
245                             </resources>
246                         </configuration>
247                     </execution>
248                     <execution>
249                         <id>copy-scripts</id>
250                         <goals>
251                             <goal>copy-resources</goal>
252                         </goals><!-- here the phase you need -->
253                         <phase>validate</phase>
254                         <configuration>
255                             <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/bin</outputDirectory>
256                             <resources>
257                                 <resource>
258                                     <directory>src/main/scripts</directory>
259                                     <includes>
260                                         <include>*.py</include>
261                                         <include>*.sh</include>
262                                     </includes>
263                                     <filtering>false</filtering>
264                                 </resource>
265                             </resources>
266                         </configuration>
267                     </execution>
268                     <execution>
269                         <id>copy-tarballs</id>
270                         <goals>
271                             <goal>copy-resources</goal>
272                         </goals><!-- here the phase you need -->
273                         <phase>validate</phase>
274                         <configuration>
275                             <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
276                             <resources>
277                                 <resource>
278                                     <directory>src/main/resources</directory>
279                                     <includes>
280                                         <include>idmlight.db.mv.db</include>
281                                         <include>truststoreONAPall.jks</include>
282                                         <include>aaa-app-config.xml</include>
283                                     </includes>
284                                     <filtering>false</filtering>
285                                 </resource>
286                             </resources>
287                         </configuration>
288                     </execution>
289                     <execution>
290                         <id>copy-data</id>
291                         <goals>
292                             <goal>copy-resources</goal>
293                         </goals><!-- here the phase you need -->
294                         <phase>validate</phase>
295                         <configuration>
296                             <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data</outputDirectory>
297                             <resources>
298                                 <resource>
299                                     <directory>src/main/resources</directory>
300                                     <includes>
301                                         <include>*.dump</include>
302                                     </includes>
303                                     <filtering>false</filtering>
304                                 </resource>
305                             </resources>
306                         </configuration>
307                     </execution>
308                     <execution>
309                         <id>copy-properties</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/sdnc/data/properties</outputDirectory>
316                             <resources>
317                                 <resource>
318                                     <directory>../src/main/properties</directory>
319                                     <includes>
320                                         <include>*.properties</include>
321                                         <include>*.props</include>
322                                         <include>*.csv</include>
323                                     </includes>
324                                     <filtering>false</filtering>
325                                 </resource>
326                             </resources>
327                         </configuration>
328                     </execution>
329                     <execution>
330                         <id>copy-keystores</id>
331                         <goals>
332                             <goal>copy-resources</goal>
333                         </goals><!-- here the phase you need -->
334                         <phase>validate</phase>
335                         <configuration>
336                             <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/stores</outputDirectory>
337                             <resources>
338                                 <resource>
339                                     <directory>../src/main/stores</directory>
340                                     <includes>
341                                         <include>*.jks</include>
342                                         <include>*.keyfile</include>
343                                         <include>*.p12</include>
344                                     </includes>
345                                     <filtering>false</filtering>
346                                 </resource>
347                             </resources>
348                         </configuration>
349                     </execution>
350                 </executions>
351             </plugin>
352             <plugin>
353                 <groupId>org.apache.maven.plugins</groupId>
354                 <artifactId>maven-dependency-plugin</artifactId>
355                 <version>3.0.2</version>
356                 <executions>
357                     <execution>
358                         <id>unpack sdnc features</id>
359                         <phase>generate-sources</phase>
360                         <goals>
361                             <goal>unpack-dependencies</goal>
362                         </goals>
363                         <configuration>
364                             <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
365                             <excludeTransitive>true</excludeTransitive>
366                         </configuration>
367                     </execution>
368                     <execution>
369                         <id>unpack dgs</id>
370                         <phase>generate-sources</phase>
371                         <goals>
372                             <goal>unpack</goal>
373                         </goals>
374                         <configuration>
375                             <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc</outputDirectory>
376                             <artifactItems>
377                                 <artifactItem>
378                                     <groupId>${project.groupId}</groupId>
379                                     <artifactId>platform-logic-installer</artifactId>
380                                     <version>${project.version}</version>
381                                     <type>zip</type>
382                                 </artifactItem>
383                             </artifactItems>
384                         </configuration>
385                     </execution>
386                     <execution>
387                         <id>unpack migration utility</id>
388                         <phase>generate-sources</phase>
389                         <goals>
390                             <goal>unpack</goal>
391                         </goals>
392                         <configuration>
393                             <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data-migrator</outputDirectory>
394                             <artifactItems>
395                                 <artifactItem>
396                                     <groupId>org.onap.sdnc.oam</groupId>
397                                     <artifactId>data-migrator</artifactId>
398                                     <version>${project.version}</version>
399                                     <type>zip</type>
400                                 </artifactItem>
401                             </artifactItems>
402                         </configuration>
403                     </execution>
404                 </executions>
405             </plugin>
406             <plugin>
407                 <artifactId>exec-maven-plugin</artifactId>
408                 <groupId>org.codehaus.mojo</groupId>
409                 <version>1.5.0</version>
410                 <executions>
411                     <execution>
412                         <id>change shell permissions</id>
413                         <phase>process-sources</phase>
414                         <goals>
415                             <goal>exec</goal>
416                         </goals>
417                         <configuration>
418                             <executable>/usr/bin/find</executable>
419                             <arguments>
420                                 <argument>${basedir}/target/docker-stage/opt/onap/sdnc</argument>
421                                 <argument>-name</argument>
422                                 <argument>*.sh</argument>
423                                 <argument>-exec</argument>
424                                 <argument>chmod</argument>
425                                 <argument>+x</argument>
426                                 <argument>{}</argument>
427                                 <argument>;</argument>
428                             </arguments>
429                         </configuration>
430                     </execution>
431                 </executions>
432             </plugin>
433         </plugins>
434     </build>
435     <organization>
436         <name>ONAP</name>
437     </organization>
438 </project>