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