Use released 1.2.1 CCSDK parent
[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-SNAPSHOT</sdnc.northbound.version>
24         <ccsdk.docker.version>0.4-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
150                                         <execution>
151                                                 <id>copy-scripts</id>
152                                                 <goals>
153                                                         <goal>copy-resources</goal>
154                                                 </goals><!-- here the phase you need -->
155                                                 <phase>validate</phase>
156                                                 <configuration>
157                                                         <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/bin</outputDirectory>
158                                                         <resources>
159                                                                 <resource>
160                                                                         <directory>src/main/scripts</directory>
161                                                                         <includes>
162                                                                                 <include>*.sh</include>
163                                                                         </includes>
164                                                                         <filtering>false</filtering>
165                                                                 </resource>
166                                                         </resources>
167                                                 </configuration>
168                                         </execution>
169
170                                         <execution>
171                                                 <id>copy-tarballs</id>
172                                                 <goals>
173                                                         <goal>copy-resources</goal>
174                                                 </goals><!-- here the phase you need -->
175                                                 <phase>validate</phase>
176                                                 <configuration>
177                                                         <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
178                                                         <resources>
179                                                                 <resource>
180                                                                         <directory>src/main/resources</directory>
181                                                                         <includes>
182                                                                                 <include>idmlight.db.mv.db</include>
183                                                                                 <include>AAF_RootCA.cer</include>
184                                                                                 <include>truststoreONAPall.jks</include>
185                                                                         </includes>
186                                                                         <filtering>false</filtering>
187                                                                 </resource>
188                                                         </resources>
189                                                 </configuration>
190                                         </execution>
191                                         <execution>
192                                                 <id>copy-data</id>
193                                                 <goals>
194                                                         <goal>copy-resources</goal>
195                                                 </goals><!-- here the phase you need -->
196                                                 <phase>validate</phase>
197                                                 <configuration>
198                                                         <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data</outputDirectory>
199                                                         <resources>
200                                                                 <resource>
201                                                                         <directory>src/main/resources</directory>
202                                                                         <includes>
203                                                                                 <include>*.dump</include>
204                                                                         </includes>
205                                                                         <filtering>false</filtering>
206                                                                 </resource>
207                                                         </resources>
208                                                 </configuration>
209                                         </execution>
210                                         <execution>
211                                                 <id>copy-properties</id>
212                                                 <goals>
213                                                         <goal>copy-resources</goal>
214                                                 </goals><!-- here the phase you need -->
215                                                 <phase>validate</phase>
216                                                 <configuration>
217                                                         <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/properties</outputDirectory>
218                                                         <resources>
219                                                                 <resource>
220                                                                         <directory>../src/main/properties</directory>
221                                                                         <includes>
222                                                                                 <include>*.properties</include>
223                                                                         </includes>
224                                                                         <filtering>false</filtering>
225                                                                 </resource>
226                                                         </resources>
227                                                 </configuration>
228                                         </execution>
229                                         <execution>
230                                                 <id>copy-keystores</id>
231                                                 <goals>
232                                                         <goal>copy-resources</goal>
233                                                 </goals><!-- here the phase you need -->
234                                                 <phase>validate</phase>
235                                                 <configuration>
236                                                         <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/stores</outputDirectory>
237                                                         <resources>
238                                                                 <resource>
239                                                                         <directory>../src/main/stores</directory>
240                                                                         <includes>
241                                                                                 <include>*.jks</include>
242                                                                         </includes>
243                                                                         <filtering>false</filtering>
244                                                                 </resource>
245                                                         </resources>
246                                                 </configuration>
247                                         </execution>
248                                 </executions>
249                         </plugin>
250                         <plugin>
251                                 <groupId>org.apache.maven.plugins</groupId>
252                                 <artifactId>maven-dependency-plugin</artifactId>
253                                 <version>3.0.2</version>
254                                 <executions>
255                                         <execution>
256                                                 <id>unpack sdnc features</id>
257                                                 <phase>generate-sources</phase>
258                                                 <goals>
259                                                         <goal>unpack-dependencies</goal>
260                                                 </goals>
261                                                 <configuration>
262                                                         <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
263                                                         <excludeTransitive>true</excludeTransitive>
264                                                 </configuration>
265                                         </execution>
266                                         <execution>
267                                                 <id>unpack dgs</id>
268                                                 <phase>generate-sources</phase>
269                                                 <goals>
270                                                         <goal>unpack</goal>
271                                                 </goals>
272                                                 <configuration>
273                                                         <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc</outputDirectory>
274                                                         <artifactItems>
275                                                                 <artifactItem>
276                                                                         <groupId>${project.groupId}</groupId>
277                                                                         <artifactId>platform-logic-installer</artifactId>
278                                                                         <version>${project.version}</version>
279                                                                         <type>zip</type>
280                                                                 </artifactItem>
281                                                         </artifactItems>
282                                                 </configuration>
283                                         </execution>
284                                 </executions>
285                         </plugin>
286                         <plugin>
287                                 <artifactId>exec-maven-plugin</artifactId>
288                                 <groupId>org.codehaus.mojo</groupId>
289                                 <version>1.5.0</version>
290                                 <executions>
291
292                                         <execution>
293                                                 <id>change shell permissions</id>
294                                                 <phase>process-sources</phase>
295                                                 <goals>
296                                                         <goal>exec</goal>
297                                                 </goals>
298                                                 <configuration>
299                                                         <executable>/usr/bin/find</executable>
300                                                         <arguments>
301                                                                 <argument>${basedir}/target/docker-stage/opt/onap/sdnc</argument>
302                                                                 <argument>-name</argument>
303                                                                 <argument>*.sh</argument>
304                                                                 <argument>-exec</argument>
305                                                                 <argument>chmod</argument>
306                                                                 <argument>+x</argument>
307                                                                 <argument>{}</argument>
308                                                                 <argument>;</argument>
309                                                         </arguments>
310                                                 </configuration>
311                                         </execution>
312                                 </executions>
313                         </plugin>
314
315
316                 </plugins>
317
318         </build>
319         <organization>
320                 <name>ONAP</name>
321         </organization>
322 </project>