SDNR OOF PCI Feature in SDNC Docker
[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>1.3.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>1.6.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>1.6.0-SNAPSHOT</sdnc.northbound.version>
25         <ccsdk.docker.version>0.5.0-STAGING-latest</ccsdk.docker.version>
26         <ccsdk.features.version>0.5.0-SNAPSHOT</ccsdk.features.version>
27         <sdnc.keystore>org.onap.sdnc.p12</sdnc.keystore>
28         <sdnc.keypass><![CDATA[?w5&!M;8v1XF;:Xd;g*%S\$IY]]></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>vnftools-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>sdnc-northbound-features-installer</artifactId>
61             <version>${sdnc.northbound.version}</version>
62             <classifier>repo</classifier>
63             <type>zip</type>
64         </dependency>
65     </dependencies>
66
67     <build>
68         <plugins>
69
70
71             <plugin>
72                 <groupId>org.codehaus.groovy.maven</groupId>
73                 <artifactId>gmaven-plugin</artifactId>
74                 <executions>
75                     <execution>
76                         <phase>validate</phase>
77                         <goals>
78                             <goal>execute</goal>
79                         </goals>
80                         <configuration>
81                             <source>${basedir}/../TagVersion.groovy</source>
82                         </configuration>
83                     </execution>
84                 </executions>
85             </plugin>
86
87             <plugin>
88                 <groupId>io.fabric8</groupId>
89                 <artifactId>docker-maven-plugin</artifactId>
90                 <version>0.28.0</version>
91                 <inherited>false</inherited>
92                 <executions>
93                     <execution>
94                         <id>generate-images</id>
95                         <phase>package</phase>
96                         <goals>
97                             <goal>build</goal>
98                         </goals>
99                         <configuration>
100                            <images>
101                             <image>
102                              <name>${image.name}</name>
103                              <build>
104                               <cleanup>try</cleanup>
105                               <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
106                               <dockerFile>Dockerfile</dockerFile>
107                               <tags>
108                                  <tag>${project.docker.latestminortag.version}</tag>
109                                  <tag>${project.docker.latestfulltag.version}</tag>
110                                  <tag>${project.docker.latesttagtimestamp.version}</tag>
111                               </tags>
112                              </build>
113                             </image>
114                            </images>
115                           </configuration>
116                     </execution>
117                     <execution>
118                       <id>push-images</id>
119                       <phase>${docker.push.phase}</phase>
120                       <goals>
121                        <goal>build</goal>
122                        <goal>push</goal>
123                       </goals>
124                        <configuration>
125                         <images>
126                          <image>
127                           <name>${image.name}</name>
128                           <build>
129                            <cleanup>try</cleanup>
130                            <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
131                            <dockerFile>Dockerfile</dockerFile>
132                            <tags>
133                               <tag>${project.docker.latestminortag.version}</tag>
134                               <tag>${project.docker.latestfulltag.version}</tag>
135                               <tag>${project.docker.latesttagtimestamp.version}</tag>
136                            </tags>
137                           </build>
138                          </image>
139                         </images>
140                        </configuration>
141                    </execution>
142                    <execution>
143                      <id>generate-standalone-images</id>
144                      <phase>package</phase>
145                      <goals>
146                       <goal>build</goal>
147                      </goals>
148                      <configuration>
149                       <images>
150                        <image>
151                         <name>${standalone.image.name}</name>
152                         <build>
153                          <cleanup>try</cleanup>
154                          <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
155                          <dockerFile>standalone.Dockerfile</dockerFile>
156                          <tags>
157                              <tag>${project.docker.latestminortag.version}</tag>
158                              <tag>${project.docker.latestfulltag.version}</tag>
159                              <tag>${project.docker.latesttagtimestamp.version}</tag>
160                          </tags>
161                         </build>
162                        </image>
163                       </images>
164                      </configuration>
165                    </execution>
166                    <execution>
167                      <id>push-standalone-images</id>
168                      <phase>${docker.push.phase}</phase>
169                      <goals>
170                       <goal>build</goal>
171                       <goal>push</goal>
172                      </goals>
173                      <configuration>
174                        <images>
175                         <image>
176                          <name>${standalone.image.name}</name>
177                          <build>
178                           <cleanup>try</cleanup>
179                           <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
180                           <dockerFile>standalone.Dockerfile</dockerFile>
181                           <tags>
182                              <tag>${project.docker.latestminortag.version}</tag>
183                              <tag>${project.docker.latestfulltag.version}</tag>
184                              <tag>${project.docker.latesttagtimestamp.version}</tag>
185                           </tags>
186                          </build>
187                         </image>
188                        </images>
189                      </configuration>
190                   </execution>
191                 </executions>
192             </plugin>
193             <plugin>
194                 <artifactId>maven-resources-plugin</artifactId>
195                 <version>2.6</version>
196                 <executions>
197                     <execution>
198                         <id>copy-dockerfile</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</outputDirectory>
205                             <resources>
206                                 <resource>
207                                     <directory>src/main/docker</directory>
208                                     <includes>
209                                         <include>Dockerfile</include>
210                                         <include>standalone.Dockerfile</include>
211                                     </includes>
212                                     <filtering>true</filtering>
213                                 </resource>
214                             </resources>
215                         </configuration>
216                     </execution>
217                     <execution>
218                         <id>copy-scripts</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/opt/onap/sdnc/bin</outputDirectory>
225                             <resources>
226                                 <resource>
227                                     <directory>src/main/scripts</directory>
228                                     <includes>
229                                         <include>*.py</include>
230                                         <include>*.sh</include>
231                                     </includes>
232                                     <filtering>false</filtering>
233                                 </resource>
234                             </resources>
235                         </configuration>
236                     </execution>
237                     <execution>
238                         <id>copy-tarballs</id>
239                         <goals>
240                             <goal>copy-resources</goal>
241                         </goals><!-- here the phase you need -->
242                         <phase>validate</phase>
243                         <configuration>
244                             <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
245                             <resources>
246                                 <resource>
247                                     <directory>src/main/resources</directory>
248                                     <includes>
249                                         <include>idmlight.db.mv.db</include>
250                                         <include>truststoreONAPall.jks</include>
251                                         <include>aaa-app-config.xml</include>
252                                     </includes>
253                                     <filtering>false</filtering>
254                                 </resource>
255                             </resources>
256                         </configuration>
257                     </execution>
258                     <execution>
259                         <id>copy-data</id>
260                         <goals>
261                             <goal>copy-resources</goal>
262                         </goals><!-- here the phase you need -->
263                         <phase>validate</phase>
264                         <configuration>
265                             <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data</outputDirectory>
266                             <resources>
267                                 <resource>
268                                     <directory>src/main/resources</directory>
269                                     <includes>
270                                         <include>*.dump</include>
271                                     </includes>
272                                     <filtering>false</filtering>
273                                 </resource>
274                             </resources>
275                         </configuration>
276                     </execution>
277                     <execution>
278                         <id>copy-properties</id>
279                         <goals>
280                             <goal>copy-resources</goal>
281                         </goals><!-- here the phase you need -->
282                         <phase>validate</phase>
283                         <configuration>
284                             <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/properties</outputDirectory>
285                             <resources>
286                                 <resource>
287                                     <directory>../src/main/properties</directory>
288                                     <includes>
289                                         <include>*.properties</include>
290                                         <include>*.props</include>
291                                         <include>*.csv</include>
292                                     </includes>
293                                     <filtering>false</filtering>
294                                 </resource>
295                             </resources>
296                         </configuration>
297                     </execution>
298                     <execution>
299                         <id>copy-keystores</id>
300                         <goals>
301                             <goal>copy-resources</goal>
302                         </goals><!-- here the phase you need -->
303                         <phase>validate</phase>
304                         <configuration>
305                             <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/stores</outputDirectory>
306                             <resources>
307                                 <resource>
308                                     <directory>../src/main/stores</directory>
309                                     <includes>
310                                         <include>*.jks</include>
311                                         <include>*.keyfile</include>
312                                         <include>*.p12</include>
313                                     </includes>
314                                     <filtering>false</filtering>
315                                 </resource>
316                             </resources>
317                         </configuration>
318                     </execution>
319                 </executions>
320             </plugin>
321             <plugin>
322                 <groupId>org.apache.maven.plugins</groupId>
323                 <artifactId>maven-dependency-plugin</artifactId>
324                 <version>3.0.2</version>
325                 <executions>
326                     <execution>
327                         <id>unpack sdnc features</id>
328                         <phase>generate-sources</phase>
329                         <goals>
330                             <goal>unpack-dependencies</goal>
331                         </goals>
332                         <configuration>
333                             <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
334                             <excludeTransitive>true</excludeTransitive>
335                         </configuration>
336                     </execution>
337                     <execution>
338                         <id>unpack dgs</id>
339                         <phase>generate-sources</phase>
340                         <goals>
341                             <goal>unpack</goal>
342                         </goals>
343                         <configuration>
344                             <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc</outputDirectory>
345                             <artifactItems>
346                                 <artifactItem>
347                                     <groupId>${project.groupId}</groupId>
348                                     <artifactId>platform-logic-installer</artifactId>
349                                     <version>${project.version}</version>
350                                     <type>zip</type>
351                                 </artifactItem>
352                             </artifactItems>
353                         </configuration>
354                     </execution>
355                     <execution>
356                         <id>unpack migration utility</id>
357                         <phase>generate-sources</phase>
358                         <goals>
359                             <goal>unpack</goal>
360                         </goals>
361                         <configuration>
362                             <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data-migrator</outputDirectory>
363                             <artifactItems>
364                                 <artifactItem>
365                                     <groupId>org.onap.sdnc.oam</groupId>
366                                     <artifactId>data-migrator</artifactId>
367                                     <version>1.5.1-SNAPSHOT</version>
368                                     <type>zip</type>
369                                 </artifactItem>
370                             </artifactItems>
371                         </configuration>
372                     </execution>
373                 </executions>
374             </plugin>
375             <plugin>
376                 <artifactId>exec-maven-plugin</artifactId>
377                 <groupId>org.codehaus.mojo</groupId>
378                 <version>1.5.0</version>
379                 <executions>
380                     <execution>
381                         <id>change shell permissions</id>
382                         <phase>process-sources</phase>
383                         <goals>
384                             <goal>exec</goal>
385                         </goals>
386                         <configuration>
387                             <executable>/usr/bin/find</executable>
388                             <arguments>
389                                 <argument>${basedir}/target/docker-stage/opt/onap/sdnc</argument>
390                                 <argument>-name</argument>
391                                 <argument>*.sh</argument>
392                                 <argument>-exec</argument>
393                                 <argument>chmod</argument>
394                                 <argument>+x</argument>
395                                 <argument>{}</argument>
396                                 <argument>;</argument>
397                             </arguments>
398                         </configuration>
399                     </execution>
400                 </executions>
401             </plugin>
402         </plugins>
403     </build>
404     <organization>
405         <name>ONAP</name>
406     </organization>
407 </project>