352fe172e4dbbc894c1312bbd5087e387a385808
[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>nonrtric-a1-controller</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.30.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                        <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>
164                        <images>
165                         <image>
166                          <name>${standalone.image.name}</name>
167                          <build>
168                           <cleanup>try</cleanup>
169                           <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
170                           <dockerFile>standalone.Dockerfile</dockerFile>
171                           <tags>
172                              <tag>${project.docker.latestminortag.version}</tag>
173                              <tag>${project.docker.latestfulltag.version}</tag>
174                              <tag>${project.docker.latesttagtimestamp.version}</tag>
175                           </tags>
176                          </build>
177                         </image>
178                        </images>
179                      </configuration>
180                   </execution>
181                 </executions>
182             </plugin>
183             <plugin>
184                 <artifactId>maven-resources-plugin</artifactId>
185                 <version>2.6</version>
186                 <executions>
187                     <execution>
188                         <id>copy-dockerfile</id>
189                         <goals>
190                             <goal>copy-resources</goal>
191                         </goals><!-- here the phase you need -->
192                         <phase>validate</phase>
193                         <configuration>
194                             <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
195                             <resources>
196                                 <resource>
197                                     <directory>src/main/docker</directory>
198                                     <includes>
199                                         <include>standalone.Dockerfile</include>
200                                     </includes>
201                                     <filtering>true</filtering>
202                                 </resource>
203                             </resources>
204                         </configuration>
205                     </execution>
206                     <execution>
207                         <id>copy-scripts</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/opt/onap/sdnc/bin</outputDirectory>
214                             <resources>
215                                 <resource>
216                                     <directory>src/main/scripts</directory>
217                                     <includes>
218                                         <include>*.py</include>
219                                         <include>*.sh</include>
220                                     </includes>
221                                     <filtering>false</filtering>
222                                 </resource>
223                             </resources>
224                         </configuration>
225                     </execution>
226                     <execution>
227                         <id>copy-tarballs</id>
228                         <goals>
229                             <goal>copy-resources</goal>
230                         </goals><!-- here the phase you need -->
231                         <phase>validate</phase>
232                         <configuration>
233                             <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
234                             <resources>
235                                 <resource>
236                                     <directory>src/main/resources</directory>
237                                     <includes>
238                                         <include>idmlight.db.mv.db</include>
239                                         <include>truststoreONAPall.jks</include>
240                                         <include>aaa-app-config.xml</include>
241                                     </includes>
242                                     <filtering>false</filtering>
243                                 </resource>
244                             </resources>
245                         </configuration>
246                     </execution>
247                     <execution>
248                         <id>copy-data</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/data</outputDirectory>
255                             <resources>
256                                 <resource>
257                                     <directory>src/main/resources</directory>
258                                     <includes>
259                                         <include>*.dump</include>
260                                     </includes>
261                                     <filtering>false</filtering>
262                                 </resource>
263                             </resources>
264                         </configuration>
265                     </execution>
266                     <execution>
267                         <id>copy-properties</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/properties</outputDirectory>
274                             <resources>
275                                 <resource>
276                                     <directory>../src/main/properties</directory>
277                                     <includes>
278                                         <include>*.properties</include>
279                                         <include>*.props</include>
280                                         <include>*.csv</include>
281                                     </includes>
282                                     <filtering>false</filtering>
283                                 </resource>
284                             </resources>
285                         </configuration>
286                     </execution>
287                     <execution>
288                         <id>copy-keystores</id>
289                         <goals>
290                             <goal>copy-resources</goal>
291                         </goals><!-- here the phase you need -->
292                         <phase>validate</phase>
293                         <configuration>
294                             <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/stores</outputDirectory>
295                             <resources>
296                                 <resource>
297                                     <directory>../src/main/stores</directory>
298                                     <includes>
299                                         <include>*.jks</include>
300                                         <include>*.keyfile</include>
301                                         <include>*.p12</include>
302                                     </includes>
303                                     <filtering>false</filtering>
304                                 </resource>
305                             </resources>
306                         </configuration>
307                     </execution>
308                 </executions>
309             </plugin>
310             <plugin>
311                 <groupId>org.apache.maven.plugins</groupId>
312                 <artifactId>maven-dependency-plugin</artifactId>
313                 <version>3.0.2</version>
314                 <executions>
315                     <execution>
316                         <id>unpack sdnc features</id>
317                         <phase>generate-sources</phase>
318                         <goals>
319                             <goal>unpack-dependencies</goal>
320                         </goals>
321                         <configuration>
322                             <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
323                             <excludeTransitive>true</excludeTransitive>
324                         </configuration>
325                     </execution>
326                     <execution>
327                         <id>unpack dgs</id>
328                         <phase>generate-sources</phase>
329                         <goals>
330                             <goal>unpack</goal>
331                         </goals>
332                         <configuration>
333                             <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc</outputDirectory>
334                             <artifactItems>
335                                 <artifactItem>
336                                     <groupId>${project.groupId}</groupId>
337                                     <artifactId>platform-logic-installer</artifactId>
338                                     <version>${project.version}</version>
339                                     <type>zip</type>
340                                 </artifactItem>
341                             </artifactItems>
342                         </configuration>
343                     </execution>
344                 </executions>
345             </plugin>
346             <plugin>
347                 <artifactId>exec-maven-plugin</artifactId>
348                 <groupId>org.codehaus.mojo</groupId>
349                 <version>1.5.0</version>
350                 <executions>
351                     <execution>
352                         <id>change shell permissions</id>
353                         <phase>process-sources</phase>
354                         <goals>
355                             <goal>exec</goal>
356                         </goals>
357                         <configuration>
358                             <executable>/usr/bin/find</executable>
359                             <arguments>
360                                 <argument>${basedir}/target/docker-stage/opt/onap/sdnc</argument>
361                                 <argument>-name</argument>
362                                 <argument>*.sh</argument>
363                                 <argument>-exec</argument>
364                                 <argument>chmod</argument>
365                                 <argument>+x</argument>
366                                 <argument>{}</argument>
367                                 <argument>;</argument>
368                             </arguments>
369                         </configuration>
370                     </execution>
371                 </executions>
372             </plugin>
373         </plugins>
374     </build>
375     <organization>
376         <name>ONAP</name>
377     </organization>
378 </project>