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