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