46230a90f275e5463fec0d69595c143f851cac3b
[nonrtric.git] / sdnc-a1-controller / oam / 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.4.3</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.7.3-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.7.3-SNAPSHOT</sdnc.northbound.version>
25         <ccsdk.docker.version>0.6.3</ccsdk.docker.version>
26         <ccsdk.features.version>0.6.3</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>nonrt-ric-api-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>vnfapi-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-standalone-images</id>
125                      <phase>package</phase>
126                      <goals>
127                       <goal>build</goal>
128                      </goals>
129                      <configuration>
130                       <images>
131                        <image>
132                         <name>${standalone.image.name}</name>
133                         <build>
134                          <cleanup>try</cleanup>
135                          <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
136                          <dockerFile>standalone.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-standalone-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>${standalone.image.name}</name>
158                          <build>
159                           <cleanup>try</cleanup>
160                           <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
161                           <dockerFile>standalone.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                 </executions>
173             </plugin>
174             <plugin>
175                 <artifactId>maven-resources-plugin</artifactId>
176                 <version>2.6</version>
177                 <executions>
178                     <execution>
179                         <id>copy-dockerfile</id>
180                         <goals>
181                             <goal>copy-resources</goal>
182                         </goals><!-- here the phase you need -->
183                         <phase>validate</phase>
184                         <configuration>
185                             <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
186                             <resources>
187                                 <resource>
188                                     <directory>src/main/docker</directory>
189                                     <includes>
190                                         <include>standalone.Dockerfile</include>
191                                     </includes>
192                                     <filtering>true</filtering>
193                                 </resource>
194                             </resources>
195                         </configuration>
196                     </execution>
197                     <execution>
198                         <id>copy-scripts</id>
199                         <goals>
200                             <goal>copy-resources</goal>
201                         </goals><!-- here the phase you need -->
202                         <phase>validate</phase>
203                         <configuration>
204                             <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/bin</outputDirectory>
205                             <resources>
206                                 <resource>
207                                     <directory>src/main/scripts</directory>
208                                     <includes>
209                                         <include>*.py</include>
210                                         <include>*.sh</include>
211                                     </includes>
212                                     <filtering>false</filtering>
213                                 </resource>
214                             </resources>
215                         </configuration>
216                     </execution>
217                     <execution>
218                         <id>copy-tarballs</id>
219                         <goals>
220                             <goal>copy-resources</goal>
221                         </goals><!-- here the phase you need -->
222                         <phase>validate</phase>
223                         <configuration>
224                             <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
225                             <resources>
226                                 <resource>
227                                     <directory>src/main/resources</directory>
228                                     <includes>
229                                         <include>idmlight.db.mv.db</include>
230                                         <include>truststoreONAPall.jks</include>
231                                         <include>aaa-app-config.xml</include>
232                                     </includes>
233                                     <filtering>false</filtering>
234                                 </resource>
235                             </resources>
236                         </configuration>
237                     </execution>
238                     <execution>
239                         <id>copy-data</id>
240                         <goals>
241                             <goal>copy-resources</goal>
242                         </goals><!-- here the phase you need -->
243                         <phase>validate</phase>
244                         <configuration>
245                             <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data</outputDirectory>
246                             <resources>
247                                 <resource>
248                                     <directory>src/main/resources</directory>
249                                     <includes>
250                                         <include>*.dump</include>
251                                     </includes>
252                                     <filtering>false</filtering>
253                                 </resource>
254                             </resources>
255                         </configuration>
256                     </execution>
257                     <execution>
258                         <id>copy-properties</id>
259                         <goals>
260                             <goal>copy-resources</goal>
261                         </goals><!-- here the phase you need -->
262                         <phase>validate</phase>
263                         <configuration>
264                             <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/properties</outputDirectory>
265                             <resources>
266                                 <resource>
267                                     <directory>../src/main/properties</directory>
268                                     <includes>
269                                         <include>*.properties</include>
270                                         <include>*.props</include>
271                                         <include>*.csv</include>
272                                     </includes>
273                                     <filtering>false</filtering>
274                                 </resource>
275                             </resources>
276                         </configuration>
277                     </execution>
278                     <execution>
279                         <id>copy-keystores</id>
280                         <goals>
281                             <goal>copy-resources</goal>
282                         </goals><!-- here the phase you need -->
283                         <phase>validate</phase>
284                         <configuration>
285                             <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/stores</outputDirectory>
286                             <resources>
287                                 <resource>
288                                     <directory>../src/main/stores</directory>
289                                     <includes>
290                                         <include>*.jks</include>
291                                         <include>*.keyfile</include>
292                                         <include>*.p12</include>
293                                     </includes>
294                                     <filtering>false</filtering>
295                                 </resource>
296                             </resources>
297                         </configuration>
298                     </execution>
299                 </executions>
300             </plugin>
301             <plugin>
302                 <groupId>org.apache.maven.plugins</groupId>
303                 <artifactId>maven-dependency-plugin</artifactId>
304                 <version>3.0.2</version>
305                 <executions>
306                     <execution>
307                         <id>unpack sdnc features</id>
308                         <phase>generate-sources</phase>
309                         <goals>
310                             <goal>unpack-dependencies</goal>
311                         </goals>
312                         <configuration>
313                             <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
314                             <excludeTransitive>true</excludeTransitive>
315                         </configuration>
316                     </execution>
317                     <execution>
318                         <id>unpack dgs</id>
319                         <phase>generate-sources</phase>
320                         <goals>
321                             <goal>unpack</goal>
322                         </goals>
323                         <configuration>
324                             <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc</outputDirectory>
325                             <artifactItems>
326                                 <artifactItem>
327                                     <groupId>${project.groupId}</groupId>
328                                     <artifactId>platform-logic-installer</artifactId>
329                                     <version>${project.version}</version>
330                                     <type>zip</type>
331                                 </artifactItem>
332                             </artifactItems>
333                         </configuration>
334                     </execution>
335                     <execution>
336                         <id>unpack migration utility</id>
337                         <phase>generate-sources</phase>
338                         <goals>
339                             <goal>unpack</goal>
340                         </goals>
341                         <configuration>
342                             <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data-migrator</outputDirectory>
343                             <artifactItems>
344                                 <artifactItem>
345                                     <groupId>org.onap.sdnc.oam</groupId>
346                                     <artifactId>data-migrator</artifactId>
347                                     <version>${project.version}</version>
348                                     <type>zip</type>
349                                 </artifactItem>
350                             </artifactItems>
351                         </configuration>
352                     </execution>
353                 </executions>
354             </plugin>
355             <plugin>
356                 <artifactId>exec-maven-plugin</artifactId>
357                 <groupId>org.codehaus.mojo</groupId>
358                 <version>1.5.0</version>
359                 <executions>
360                     <execution>
361                         <id>change shell permissions</id>
362                         <phase>process-sources</phase>
363                         <goals>
364                             <goal>exec</goal>
365                         </goals>
366                         <configuration>
367                             <executable>/usr/bin/find</executable>
368                             <arguments>
369                                 <argument>${basedir}/target/docker-stage/opt/onap/sdnc</argument>
370                                 <argument>-name</argument>
371                                 <argument>*.sh</argument>
372                                 <argument>-exec</argument>
373                                 <argument>chmod</argument>
374                                 <argument>+x</argument>
375                                 <argument>{}</argument>
376                                 <argument>;</argument>
377                             </arguments>
378                         </configuration>
379                     </execution>
380                 </executions>
381             </plugin>
382         </plugins>
383     </build>
384     <organization>
385         <name>ONAP</name>
386     </organization>
387 </project>