Fix dependencies to use released Guilin artifacts
[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/xsd/maven-4.0.0.xsd">
3     <modelVersion>4.0.0</modelVersion>
4
5     <parent>
6         <groupId>org.onap.sdnc.oam</groupId>
7         <artifactId>installation</artifactId>
8         <version>2.0.0-SNAPSHOT</version>
9     </parent>
10
11     <groupId>org.onap.sdnc.oam</groupId>
12     <artifactId>installation-sdnc</artifactId>
13     <version>2.0.0-SNAPSHOT</version>
14     <packaging>pom</packaging>
15
16     <name>sdnc-oam :: installation :: ${project.artifactId}</name>
17     <description>Creates SDN Controller Docker container</description>
18     <organization>
19         <name>ONAP</name>
20     </organization>
21
22     <properties>
23         <image.name>onap/sdnc-aaf-image</image.name>
24         <standalone.image.name>onap/sdnc-image</standalone.image.name>
25         <sdnc.project.version>${project.version}</sdnc.project.version>
26         <sdnc.build.timestamp>${maven.build.timestamp}</sdnc.build.timestamp>
27         <sdnc.northbound.version>2.0.0</sdnc.northbound.version>
28         <ccsdk.docker.version>1.0-STAGING-latest</ccsdk.docker.version>
29         <ccsdk.features.version>1.0.0</ccsdk.features.version>
30         <sdnc.keystore>org.onap.sdnc.p12</sdnc.keystore>
31         <sdnc.keypass><![CDATA[ff^G9D]yf&r}Ktum@BJ0YB?N]]></sdnc.keypass>
32         <sdnc.secureport>8443</sdnc.secureport>
33         <docker.buildArg.https_proxy>${https_proxy}</docker.buildArg.https_proxy>
34         <docker.push.phase>deploy</docker.push.phase>
35         <docker.verbose>true</docker.verbose>
36         <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
37     </properties>
38
39     <dependencies>
40         <dependency>
41             <groupId>org.onap.sdnc.northbound</groupId>
42             <artifactId>generic-resource-api-installer</artifactId>
43             <version>${sdnc.northbound.version}</version>
44             <type>zip</type>
45             <classifier>repo</classifier>
46         </dependency>
47        <dependency>
48             <groupId>org.onap.sdnc.northbound</groupId>
49             <artifactId>optical-service-installer</artifactId>
50             <version>${sdnc.northbound.version}</version>
51             <type>zip</type>
52             <classifier>repo</classifier>
53         </dependency>
54         <dependency>
55             <groupId>org.onap.sdnc.northbound</groupId>
56             <artifactId>vnftools-installer</artifactId>
57             <version>${sdnc.northbound.version}</version>
58             <type>zip</type>
59             <classifier>repo</classifier>
60         </dependency>
61         <dependency>
62             <groupId>org.onap.sdnc.northbound</groupId>
63             <artifactId>sdnc-northbound-features-installer</artifactId>
64             <version>${sdnc.northbound.version}</version>
65             <type>zip</type>
66             <classifier>repo</classifier>
67         </dependency>
68
69         <dependency>
70             <groupId>org.onap.ccsdk.features.sdnr.northbound</groupId>
71             <artifactId>oofpcipoc-installer</artifactId>
72             <version>${ccsdk.features.version}</version>
73             <type>zip</type>
74             <classifier>repo</classifier>
75         </dependency>
76
77         <dependency>
78             <groupId>org.onap.ccsdk.features.sdnr.northbound</groupId>
79             <artifactId>sdnr-northbound-features-installer</artifactId>
80             <version>${ccsdk.features.version}</version>
81             <type>zip</type>
82             <classifier>repo</classifier>
83         </dependency>
84         <dependency>
85             <groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
86             <artifactId>sdnr-wt-feature-aggregator-installer</artifactId>
87             <version>${ccsdk.features.version}</version>
88             <type>zip</type>
89             <classifier>repo</classifier>
90         </dependency>
91     </dependencies>
92
93     <build>
94         <plugins>
95
96
97             <plugin>
98                 <groupId>org.codehaus.groovy.maven</groupId>
99                 <artifactId>gmaven-plugin</artifactId>
100                 <executions>
101                     <execution>
102                         <phase>validate</phase>
103                         <goals>
104                             <goal>execute</goal>
105                         </goals>
106                         <configuration>
107                             <source>${basedir}/../TagVersion.groovy</source>
108                         </configuration>
109                     </execution>
110                 </executions>
111             </plugin>
112
113             <plugin>
114                 <groupId>io.fabric8</groupId>
115                 <artifactId>docker-maven-plugin</artifactId>
116                 <version>0.28.0</version>
117                 <inherited>false</inherited>
118                 <executions>
119                     <execution>
120                         <id>generate-images</id>
121                         <phase>package</phase>
122                         <goals>
123                             <goal>build</goal>
124                         </goals>
125                         <configuration>
126                            <images>
127                             <image>
128                              <name>${image.name}</name>
129                              <build>
130                               <cleanup>try</cleanup>
131                               <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
132                               <dockerFile>Dockerfile</dockerFile>
133                               <tags>
134                                  <tag>${project.docker.latestminortag.version}</tag>
135                                  <tag>${project.docker.latestfulltag.version}</tag>
136                                  <tag>${project.docker.latesttagtimestamp.version}</tag>
137                               </tags>
138                              </build>
139                             </image>
140                            </images>
141                           </configuration>
142                     </execution>
143                     <execution>
144                       <id>push-images</id>
145                       <phase>${docker.push.phase}</phase>
146                       <goals>
147                        <goal>build</goal>
148                        <goal>push</goal>
149                       </goals>
150                        <configuration>
151                         <images>
152                          <image>
153                           <name>${image.name}</name>
154                           <build>
155                            <cleanup>try</cleanup>
156                            <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
157                            <dockerFile>Dockerfile</dockerFile>
158                            <tags>
159                               <tag>${project.docker.latestminortag.version}</tag>
160                               <tag>${project.docker.latestfulltag.version}</tag>
161                               <tag>${project.docker.latesttagtimestamp.version}</tag>
162                            </tags>
163                           </build>
164                          </image>
165                         </images>
166                        </configuration>
167                    </execution>
168                    <execution>
169                      <id>generate-standalone-images</id>
170                      <phase>package</phase>
171                      <goals>
172                       <goal>build</goal>
173                      </goals>
174                      <configuration>
175                       <images>
176                        <image>
177                         <name>${standalone.image.name}</name>
178                         <build>
179                          <cleanup>try</cleanup>
180                          <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
181                          <dockerFile>standalone.Dockerfile</dockerFile>
182                          <tags>
183                              <tag>${project.docker.latestminortag.version}</tag>
184                              <tag>${project.docker.latestfulltag.version}</tag>
185                              <tag>${project.docker.latesttagtimestamp.version}</tag>
186                          </tags>
187                         </build>
188                        </image>
189                       </images>
190                      </configuration>
191                    </execution>
192                    <execution>
193                      <id>push-standalone-images</id>
194                      <phase>${docker.push.phase}</phase>
195                      <goals>
196                       <goal>build</goal>
197                       <goal>push</goal>
198                      </goals>
199                      <configuration>
200                        <images>
201                         <image>
202                          <name>${standalone.image.name}</name>
203                          <build>
204                           <cleanup>try</cleanup>
205                           <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
206                           <dockerFile>standalone.Dockerfile</dockerFile>
207                           <tags>
208                              <tag>${project.docker.latestminortag.version}</tag>
209                              <tag>${project.docker.latestfulltag.version}</tag>
210                              <tag>${project.docker.latesttagtimestamp.version}</tag>
211                           </tags>
212                          </build>
213                         </image>
214                        </images>
215                      </configuration>
216                   </execution>
217                 </executions>
218             </plugin>
219             <plugin>
220                 <artifactId>maven-resources-plugin</artifactId>
221                 <version>2.6</version>
222                 <executions>
223                     <execution>
224                         <id>copy-dockerfile</id>
225                         <goals>
226                             <goal>copy-resources</goal>
227                         </goals><!-- here the phase you need -->
228                         <phase>validate</phase>
229                         <configuration>
230                             <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
231                             <resources>
232                                 <resource>
233                                     <directory>src/main/docker</directory>
234                                     <includes>
235                                         <include>Dockerfile</include>
236                                         <include>standalone.Dockerfile</include>
237                                     </includes>
238                                     <filtering>true</filtering>
239                                 </resource>
240                             </resources>
241                         </configuration>
242                     </execution>
243                     <execution>
244                         <id>copy-scripts</id>
245                         <goals>
246                             <goal>copy-resources</goal>
247                         </goals><!-- here the phase you need -->
248                         <phase>validate</phase>
249                         <configuration>
250                             <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/bin</outputDirectory>
251                             <resources>
252                                 <resource>
253                                     <directory>src/main/scripts</directory>
254                                     <includes>
255                                         <include>*.py</include>
256                                         <include>*.sh</include>
257                                     </includes>
258                                     <filtering>false</filtering>
259                                 </resource>
260                             </resources>
261                         </configuration>
262                     </execution>
263                     <execution>
264                         <id>copy-tarballs</id>
265                         <goals>
266                             <goal>copy-resources</goal>
267                         </goals><!-- here the phase you need -->
268                         <phase>validate</phase>
269                         <configuration>
270                             <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
271                             <resources>
272                                 <resource>
273                                     <directory>src/main/resources</directory>
274                                     <includes>
275                                         <include>idmlight.db.mv.db</include>
276                                         <include>truststoreONAPall.jks</include>
277                                         <include>aaa-app-config.xml</include>
278                                     </includes>
279                                     <filtering>false</filtering>
280                                 </resource>
281                             </resources>
282                         </configuration>
283                     </execution>
284                     <execution>
285                         <id>copy-data</id>
286                         <goals>
287                             <goal>copy-resources</goal>
288                         </goals><!-- here the phase you need -->
289                         <phase>validate</phase>
290                         <configuration>
291                             <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data</outputDirectory>
292                             <resources>
293                                 <resource>
294                                     <directory>src/main/resources</directory>
295                                     <includes>
296                                         <include>*.dump</include>
297                                     </includes>
298                                     <filtering>false</filtering>
299                                 </resource>
300                             </resources>
301                         </configuration>
302                     </execution>
303                     <execution>
304                         <id>copy-properties</id>
305                         <goals>
306                             <goal>copy-resources</goal>
307                         </goals><!-- here the phase you need -->
308                         <phase>validate</phase>
309                         <configuration>
310                             <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/properties</outputDirectory>
311                             <resources>
312                                 <resource>
313                                     <directory>../src/main/properties</directory>
314                                     <includes>
315                                         <include>*.properties</include>
316                                         <include>*.props</include>
317                                         <include>*.csv</include>
318                                     </includes>
319                                     <filtering>false</filtering>
320                                 </resource>
321                             </resources>
322                         </configuration>
323                     </execution>
324                     <execution>
325                         <id>copy-keystores</id>
326                         <goals>
327                             <goal>copy-resources</goal>
328                         </goals><!-- here the phase you need -->
329                         <phase>validate</phase>
330                         <configuration>
331                             <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/stores</outputDirectory>
332                             <resources>
333                                 <resource>
334                                     <directory>../src/main/stores</directory>
335                                     <includes>
336                                         <include>*.jks</include>
337                                         <include>*.keyfile</include>
338                                         <include>*.p12</include>
339                                     </includes>
340                                     <filtering>false</filtering>
341                                 </resource>
342                             </resources>
343                         </configuration>
344                     </execution>
345                 </executions>
346             </plugin>
347             <plugin>
348                 <groupId>org.apache.maven.plugins</groupId>
349                 <artifactId>maven-dependency-plugin</artifactId>
350                 <version>3.0.2</version>
351                 <executions>
352                     <execution>
353                         <id>unpack sdnc features</id>
354                         <phase>generate-sources</phase>
355                         <goals>
356                             <goal>unpack-dependencies</goal>
357                         </goals>
358                         <configuration>
359                             <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
360                             <excludeTransitive>true</excludeTransitive>
361                         </configuration>
362                     </execution>
363                     <execution>
364                         <id>unpack dgs</id>
365                         <phase>generate-sources</phase>
366                         <goals>
367                             <goal>unpack</goal>
368                         </goals>
369                         <configuration>
370                             <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc</outputDirectory>
371                             <artifactItems>
372                                 <artifactItem>
373                                     <groupId>${project.groupId}</groupId>
374                                     <artifactId>platform-logic-installer</artifactId>
375                                     <version>${project.version}</version>
376                                     <type>zip</type>
377                                 </artifactItem>
378                             </artifactItems>
379                         </configuration>
380                     </execution>
381                     <execution>
382                         <id>unpack migration utility</id>
383                         <phase>generate-sources</phase>
384                         <goals>
385                             <goal>unpack</goal>
386                         </goals>
387                         <configuration>
388                             <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data-migrator</outputDirectory>
389                             <artifactItems>
390                                 <artifactItem>
391                                     <groupId>org.onap.sdnc.oam</groupId>
392                                     <artifactId>data-migrator</artifactId>
393                                     <version>${project.version}</version>
394                                     <type>zip</type>
395                                 </artifactItem>
396                             </artifactItems>
397                         </configuration>
398                     </execution>
399                 </executions>
400             </plugin>
401             <plugin>
402                 <groupId>org.codehaus.mojo</groupId>
403                 <artifactId>exec-maven-plugin</artifactId>
404                 <version>1.5.0</version>
405                 <executions>
406                     <execution>
407                         <id>change shell permissions</id>
408                         <phase>process-sources</phase>
409                         <goals>
410                             <goal>exec</goal>
411                         </goals>
412                         <configuration>
413                             <executable>/usr/bin/find</executable>
414                             <arguments>
415                                 <argument>${basedir}/target/docker-stage/opt/onap/sdnc</argument>
416                                 <argument>-name</argument>
417                                 <argument>*.sh</argument>
418                                 <argument>-exec</argument>
419                                 <argument>chmod</argument>
420                                 <argument>+x</argument>
421                                 <argument>{}</argument>
422                                 <argument>;</argument>
423                             </arguments>
424                         </configuration>
425                     </execution>
426                 </executions>
427             </plugin>
428         </plugins>
429     </build>
430 </project>