Add logic to delete resource also from AAI
[sdnc/oam.git] / installation / dmaap-listener / 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     <modelVersion>4.0.0</modelVersion>
10     <packaging>pom</packaging>
11     <groupId>org.onap.sdnc.oam</groupId>
12     <artifactId>installation-dmaap-listener</artifactId>
13     <version>1.5.4-SNAPSHOT</version>
14
15     <name>sdnc-oam :: installation :: ${project.artifactId}</name>
16     <description>Creates dmaap-listener Docker container</description>
17
18     <properties>
19         <image.name>onap/sdnc-dmaap-listener-image</image.name>
20         <sdnc.project.version>${project.version}</sdnc.project.version>
21         <sdnc.build.timestamp>${maven.build.timestamp}</sdnc.build.timestamp>
22         <ccsdk.docker.version>0.4-STAGING-latest</ccsdk.docker.version>
23         <docker.buildArg.https_proxy>${https_proxy}</docker.buildArg.https_proxy>
24         <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
25     </properties>
26
27
28     <build>
29         <plugins>
30
31
32             <plugin>
33                 <groupId>org.codehaus.groovy.maven</groupId>
34                 <artifactId>gmaven-plugin</artifactId>
35                 <executions>
36                     <execution>
37                         <phase>validate</phase>
38                         <goals>
39                             <goal>execute</goal>
40                         </goals>
41                         <configuration>
42                             <source>${basedir}/../TagVersion.groovy</source>
43                         </configuration>
44                     </execution>
45                 </executions>
46             </plugin>
47
48
49
50             <plugin>
51                 <artifactId>maven-resources-plugin</artifactId>
52                 <version>2.6</version>
53                 <executions>
54                     <execution>
55                         <id>copy-dockerfile</id>
56                         <goals>
57                             <goal>copy-resources</goal>
58                         </goals><!-- here the phase you need -->
59                         <phase>validate</phase>
60                         <configuration>
61                             <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
62                             <resources>
63                                 <resource>
64                                     <directory>src/main/docker</directory>
65                                     <includes>
66                                         <include>Dockerfile</include>
67                                     </includes>
68                                     <filtering>true</filtering>
69                                 </resource>
70                             </resources>
71                         </configuration>
72                     </execution>
73
74                     <execution>
75                         <id>copy-scripts</id>
76                         <goals>
77                             <goal>copy-resources</goal>
78                         </goals><!-- here the phase you need -->
79                         <phase>validate</phase>
80                         <configuration>
81                             <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/dmaap-listener/bin</outputDirectory>
82                             <resources>
83                                 <resource>
84                                     <directory>src/main/scripts</directory>
85                                     <includes>
86                                         <include>*.sh</include>
87                                     </includes>
88                                     <filtering>false</filtering>
89                                 </resource>
90                             </resources>
91                         </configuration>
92                     </execution>
93
94                     <execution>
95                         <id>copy-properties</id>
96                         <goals>
97                             <goal>copy-resources</goal>
98                         </goals><!-- here the phase you need -->
99                         <phase>validate</phase>
100                         <configuration>
101                             <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/properties</outputDirectory>
102                             <resources>
103                                 <resource>
104                                     <directory>src/main/properties</directory>
105                                     <includes>
106                                         <include>*</include>
107                                     </includes>
108                                     <filtering>false</filtering>
109                                 </resource>
110                             </resources>
111                         </configuration>
112                     </execution>
113
114                 </executions>
115             </plugin>
116             <plugin>
117                 <groupId>org.apache.maven.plugins</groupId>
118                 <artifactId>maven-dependency-plugin</artifactId>
119                 <executions>
120                     <execution>
121                         <id>unpack</id>
122                         <goals>
123                             <goal>unpack</goal>
124                         </goals>
125                         <phase>initialize</phase>
126                         <configuration>
127                             <artifactItems>
128                                 <artifactItem>
129                                     <groupId>org.onap.ccsdk.sli.northbound</groupId>
130                                     <artifactId>dmaap-listener</artifactId>
131                                     <type>zip</type>
132                                     <version>${ccsdk.sli.northbound.version}</version>
133                                 </artifactItem>
134                             </artifactItems>
135                             <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/dmaap-listener</outputDirectory>
136                             <excludes>bin/**,**/*-javadoc.jar,**/*-sources.jar</excludes>
137                             <overWriteReleases>true</overWriteReleases>
138                             <overWriteSnapshots>true</overWriteSnapshots>
139                         </configuration>
140                     </execution>
141                 </executions>
142             </plugin>
143
144             <plugin>
145                 <artifactId>exec-maven-plugin</artifactId>
146                 <groupId>org.codehaus.mojo</groupId>
147                 <version>1.5.0</version>
148                 <executions>
149
150
151
152                     <execution>
153                         <id>change shell permissions</id>
154                         <phase>process-sources</phase>
155                         <goals>
156                             <goal>exec</goal>
157                         </goals>
158                         <configuration>
159                             <executable>/usr/bin/find</executable>
160                             <arguments>
161                                 <argument>${basedir}/target/docker-stage/opt/onap/sdnc</argument>
162                                 <argument>-name</argument>
163                                 <argument>*.sh</argument>
164                                 <argument>-exec</argument>
165                                 <argument>chmod</argument>
166                                 <argument>+x</argument>
167                                 <argument>{}</argument>
168                                 <argument>;</argument>
169                             </arguments>
170                         </configuration>
171                     </execution>
172                 </executions>
173             </plugin>
174         </plugins>
175
176     </build>
177
178     <profiles>
179         <profile>
180             <id>docker</id>
181             <build>
182                 <plugins>
183                     <plugin>
184                         <groupId>io.fabric8</groupId>
185                         <artifactId>docker-maven-plugin</artifactId>
186                         <version>0.28.0</version>
187                         <inherited>false</inherited>
188                         <configuration>
189                             <images>
190                                 <image>
191                                     <name>${image.name}</name>
192                                     <build>
193                                         <cleanup>try</cleanup>
194                                         <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
195                                         <dockerFile>Dockerfile</dockerFile>
196                                         <tags>
197                                             <tag>${project.docker.latestminortag.version}</tag>
198                                             <tag>${project.docker.latestfulltag.version}</tag>
199                                             <tag>${project.docker.latesttagtimestamp.version}</tag>
200                                         </tags>
201                                     </build>
202                                 </image>
203                             </images>
204                         </configuration>
205                         <executions>
206                             <execution>
207                                 <id>generate-images</id>
208                                 <phase>package</phase>
209                                 <goals>
210                                     <goal>build</goal>
211                                 </goals>
212                             </execution>
213
214                             <execution>
215                                 <id>push-images</id>
216                                 <phase>deploy</phase>
217                                 <goals>
218                                     <goal>build</goal>
219                                     <goal>push</goal>
220                                 </goals>
221                             </execution>
222                         </executions>
223                     </plugin>
224                 </plugins>
225             </build>
226         </profile>
227     </profiles>
228     <organization>
229         <name>ONAP</name>
230     </organization>
231 </project>