SDNC-665: Python script for adding to ODL keystore
[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.1</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.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-image</image.name>
21         <sdnc.project.version>${project.version}</sdnc.project.version>
22         <sdnc.build.timestamp>${maven.build.timestamp}</sdnc.build.timestamp>
23         <sdnc.northbound.version>1.5.0</sdnc.northbound.version>
24                 <ccsdk.docker.version>0.4.1-STAGING-latest</ccsdk.docker.version>
25         <docker.buildArg.https_proxy>${https_proxy}</docker.buildArg.https_proxy>
26         <docker.push.phase>deploy</docker.push.phase>
27         <docker.verbose>true</docker.verbose>
28         <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
29     </properties>
30
31     <dependencies>
32         <dependency>
33             <groupId>org.onap.sdnc.northbound</groupId>
34             <artifactId>generic-resource-api-installer</artifactId>
35             <version>${sdnc.northbound.version}</version>
36             <classifier>repo</classifier>
37             <type>zip</type>
38         </dependency>
39         <dependency>
40             <groupId>org.onap.sdnc.northbound</groupId>
41             <artifactId>vnfapi-installer</artifactId>
42             <version>${sdnc.northbound.version}</version>
43             <classifier>repo</classifier>
44             <type>zip</type>
45         </dependency>
46         <dependency>
47             <groupId>org.onap.sdnc.northbound</groupId>
48             <artifactId>vnftools-installer</artifactId>
49             <version>${sdnc.northbound.version}</version>
50             <classifier>repo</classifier>
51             <type>zip</type>
52         </dependency>
53         <dependency>
54             <groupId>org.onap.sdnc.northbound</groupId>
55             <artifactId>sdnc-northbound-features-installer</artifactId>
56             <version>${sdnc.northbound.version}</version>
57             <classifier>repo</classifier>
58             <type>zip</type>
59         </dependency>
60     </dependencies>
61
62     <build>
63         <plugins>
64
65
66             <plugin>
67                 <groupId>org.codehaus.groovy.maven</groupId>
68                 <artifactId>gmaven-plugin</artifactId>
69                 <executions>
70                     <execution>
71                         <phase>validate</phase>
72                         <goals>
73                             <goal>execute</goal>
74                         </goals>
75                         <configuration>
76                             <source>${basedir}/../TagVersion.groovy</source>
77                         </configuration>
78                     </execution>
79                 </executions>
80             </plugin>
81
82             <plugin>
83                 <groupId>io.fabric8</groupId>
84                 <artifactId>docker-maven-plugin</artifactId>
85                 <version>0.28.0</version>
86                 <inherited>false</inherited>
87                 <configuration>
88                     <images>
89                         <image>
90                             <name>${image.name}</name>
91                             <build>
92                                 <cleanup>try</cleanup>
93                                 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
94                                 <dockerFile>Dockerfile</dockerFile>
95                                 <tags>
96                                     <tag>${project.docker.latestminortag.version}</tag>
97                                     <tag>${project.docker.latestfulltag.version}</tag>
98                                     <tag>${project.docker.latesttagtimestamp.version}</tag>
99                                 </tags>
100                             </build>
101                         </image>
102                     </images>
103                 </configuration>
104                 <executions>
105                     <execution>
106                         <id>generate-images</id>
107                         <phase>package</phase>
108                         <goals>
109                             <goal>build</goal>
110                         </goals>
111                     </execution>
112
113                     <execution>
114                         <id>push-images</id>
115                         <phase>${docker.push.phase}</phase>
116                         <goals>
117                             <goal>build</goal>
118                             <goal>push</goal>
119                         </goals>
120                     </execution>
121                 </executions>
122             </plugin>
123
124
125
126             <plugin>
127                 <artifactId>maven-resources-plugin</artifactId>
128                 <version>2.6</version>
129                 <executions>
130                     <execution>
131                         <id>copy-dockerfile</id>
132                         <goals>
133                             <goal>copy-resources</goal>
134                         </goals><!-- here the phase you need -->
135                         <phase>validate</phase>
136                         <configuration>
137                             <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
138                             <resources>
139                                 <resource>
140                                     <directory>src/main/docker</directory>
141                                     <includes>
142                                         <include>Dockerfile</include>
143                                     </includes>
144                                     <filtering>true</filtering>
145                                 </resource>
146                             </resources>
147                         </configuration>
148                     </execution>
149                     <execution>
150                         <id>copy-scripts</id>
151                         <goals>
152                             <goal>copy-resources</goal>
153                         </goals><!-- here the phase you need -->
154                         <phase>validate</phase>
155                         <configuration>
156                             <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/bin</outputDirectory>
157                             <resources>
158                                 <resource>
159                                     <directory>src/main/scripts</directory>
160                                     <includes>
161                                         <include>*.py</include>
162                                         <include>*.sh</include>
163                                     </includes>
164                                     <filtering>false</filtering>
165                                 </resource>
166                             </resources>
167                         </configuration>
168                     </execution>
169                     <execution>
170                         <id>copy-tarballs</id>
171                         <goals>
172                             <goal>copy-resources</goal>
173                         </goals><!-- here the phase you need -->
174                         <phase>validate</phase>
175                         <configuration>
176                             <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
177                             <resources>
178                                 <resource>
179                                     <directory>src/main/resources</directory>
180                                     <includes>
181                                         <include>idmlight.db.mv.db</include>
182                                         <include>AAF_RootCA.cer</include>
183                                         <include>truststoreONAPall.jks</include>
184                                     </includes>
185                                     <filtering>false</filtering>
186                                 </resource>
187                             </resources>
188                         </configuration>
189                     </execution>
190                     <execution>
191                         <id>copy-data</id>
192                         <goals>
193                             <goal>copy-resources</goal>
194                         </goals><!-- here the phase you need -->
195                         <phase>validate</phase>
196                         <configuration>
197                             <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data</outputDirectory>
198                             <resources>
199                                 <resource>
200                                     <directory>src/main/resources</directory>
201                                     <includes>
202                                         <include>*.dump</include>
203                                     </includes>
204                                     <filtering>false</filtering>
205                                 </resource>
206                             </resources>
207                         </configuration>
208                     </execution>
209                     <execution>
210                         <id>copy-properties</id>
211                         <goals>
212                             <goal>copy-resources</goal>
213                         </goals><!-- here the phase you need -->
214                         <phase>validate</phase>
215                         <configuration>
216                             <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/properties</outputDirectory>
217                             <resources>
218                                 <resource>
219                                     <directory>../src/main/properties</directory>
220                                     <includes>
221                                         <include>*.properties</include>
222                                     </includes>
223                                     <filtering>false</filtering>
224                                 </resource>
225                             </resources>
226                         </configuration>
227                     </execution>
228                     <execution>
229                         <id>copy-keystores</id>
230                         <goals>
231                             <goal>copy-resources</goal>
232                         </goals><!-- here the phase you need -->
233                         <phase>validate</phase>
234                         <configuration>
235                             <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/stores</outputDirectory>
236                             <resources>
237                                 <resource>
238                                     <directory>../src/main/stores</directory>
239                                     <includes>
240                                         <include>*.jks</include>
241                                     </includes>
242                                     <filtering>false</filtering>
243                                 </resource>
244                             </resources>
245                         </configuration>
246                     </execution>
247                 </executions>
248             </plugin>
249             <plugin>
250                 <groupId>org.apache.maven.plugins</groupId>
251                 <artifactId>maven-dependency-plugin</artifactId>
252                 <version>3.0.2</version>
253                 <executions>
254                     <execution>
255                         <id>unpack sdnc features</id>
256                         <phase>generate-sources</phase>
257                         <goals>
258                             <goal>unpack-dependencies</goal>
259                         </goals>
260                         <configuration>
261                             <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
262                             <excludeTransitive>true</excludeTransitive>
263                         </configuration>
264                     </execution>
265                     <execution>
266                         <id>unpack dgs</id>
267                         <phase>generate-sources</phase>
268                         <goals>
269                             <goal>unpack</goal>
270                         </goals>
271                         <configuration>
272                             <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc</outputDirectory>
273                             <artifactItems>
274                                 <artifactItem>
275                                     <groupId>${project.groupId}</groupId>
276                                     <artifactId>platform-logic-installer</artifactId>
277                                     <version>${project.version}</version>
278                                     <type>zip</type>
279                                 </artifactItem>
280                             </artifactItems>
281                         </configuration>
282                     </execution>
283                 </executions>
284             </plugin>
285             <plugin>
286                 <artifactId>exec-maven-plugin</artifactId>
287                 <groupId>org.codehaus.mojo</groupId>
288                 <version>1.5.0</version>
289                 <executions>
290
291                     <execution>
292                         <id>change shell permissions</id>
293                         <phase>process-sources</phase>
294                         <goals>
295                             <goal>exec</goal>
296                         </goals>
297                         <configuration>
298                             <executable>/usr/bin/find</executable>
299                             <arguments>
300                                 <argument>${basedir}/target/docker-stage/opt/onap/sdnc</argument>
301                                 <argument>-name</argument>
302                                 <argument>*.sh</argument>
303                                 <argument>-exec</argument>
304                                 <argument>chmod</argument>
305                                 <argument>+x</argument>
306                                 <argument>{}</argument>
307                                 <argument>;</argument>
308                             </arguments>
309                         </configuration>
310                     </execution>
311                 </executions>
312             </plugin>
313
314
315         </plugins>
316
317     </build>
318     <organization>
319         <name>ONAP</name>
320     </organization>
321 </project>