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