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