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