Fix bug 'X-Frame-Options not configured: Lack of clickjacking protection'
[sdc.git] / utils / webseal-simulator / pom.xml
1 <project xmlns="http://maven.apache.org/POM/4.0.0"
2     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
4
5
6     <modelVersion>4.0.0</modelVersion>
7     <artifactId>webseal-simulator</artifactId>
8     <packaging>war</packaging>
9
10     <parent>
11         <groupId>org.openecomp.sdc</groupId>
12         <artifactId>sdc-main</artifactId>
13         <version>1.12.0-SNAPSHOT</version>
14         <relativePath>../../</relativePath>
15     </parent>
16
17     <properties>
18         <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
19         <nexus.proxy>https://nexus.onap.org</nexus.proxy>
20         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
21         <sonar.skip>true</sonar.skip>
22     </properties>
23
24     <dependencies>
25         <dependency>
26             <groupId>org.openecomp.sdc</groupId>
27             <artifactId>common-app-api</artifactId>
28             <version>${project.version}</version>
29             <scope>compile</scope>
30             <exclusions>
31                 <exclusion>
32                     <groupId>org.apache.httpcomponents</groupId>
33                     <artifactId>httpcore</artifactId>
34                 </exclusion>
35             </exclusions>
36         </dependency>
37         <dependency>
38             <groupId>javax.servlet</groupId>
39             <artifactId>javax.servlet-api</artifactId>
40             <version>${javax.servlet.version}</version>
41         </dependency>
42
43         <dependency>
44             <groupId>org.apache.httpcomponents</groupId>
45             <artifactId>httpclient</artifactId>
46             <version>${httpclient.version}</version>
47             <exclusions>
48                 <exclusion>
49                     <groupId>org.apache.httpcomponents</groupId>
50                     <artifactId>httpcore</artifactId>
51                 </exclusion>
52             </exclusions>
53         </dependency>
54         <dependency>
55             <groupId>org.apache.httpcomponents</groupId>
56             <artifactId>httpcore</artifactId>
57             <version>${httpcore.version}</version>
58         </dependency>
59
60         <dependency>
61             <groupId>org.apache.commons</groupId>
62             <artifactId>commons-lang3</artifactId>
63         </dependency>
64
65         <dependency>
66             <groupId>commons-logging</groupId>
67             <artifactId>commons-logging-api</artifactId>
68             <version>1.0.4</version>
69         </dependency>
70
71         <dependency>
72             <groupId>commons-io</groupId>
73             <artifactId>commons-io</artifactId>
74             <version>${commons.io.version}</version>
75         </dependency>
76
77         <dependency>
78             <groupId>commons-codec</groupId>
79             <artifactId>commons-codec</artifactId>
80             <version>${commons-codec}</version>
81             <scope>compile</scope>
82         </dependency>
83
84         <dependency>
85             <groupId>org.eclipse.jetty</groupId>
86             <artifactId>jetty-proxy</artifactId>
87             <version>${jetty.version}</version>
88             <scope>compile</scope>
89             <exclusions>
90                 <exclusion>
91                     <groupId>org.eclipse.jetty</groupId>
92                     <artifactId>jetty-http</artifactId>
93                 </exclusion>
94             </exclusions>
95         </dependency>
96
97         <dependency>
98             <groupId>org.eclipse.jetty</groupId>
99             <artifactId>jetty-servlets</artifactId>
100             <version>${jetty.version}</version>
101             <scope>compile</scope>
102             <exclusions>
103                 <exclusion>
104                     <groupId>org.eclipse.jetty</groupId>
105                     <artifactId>jetty-http</artifactId>
106                 </exclusion>
107             </exclusions>
108         </dependency>
109
110         <!-- Proxy servlet -->
111         <dependency>
112             <groupId>com.typesafe</groupId>
113             <artifactId>config</artifactId>
114             <version>1.0.2</version>
115             <scope>compile</scope>
116         </dependency>
117         <dependency>
118             <groupId>org.openecomp.sdc</groupId>
119             <artifactId>openecomp-sdc-logging-api</artifactId>
120             <version>${project.version}</version>
121             <exclusions>
122                 <exclusion>
123                     <groupId>org.powermock</groupId>
124                     <artifactId>powermock-module-junit4</artifactId>
125                 </exclusion>
126             </exclusions>
127         </dependency>
128     </dependencies>
129
130     <build>
131         <finalName>WSSimulator-${project.version}</finalName>
132         <plugins>
133             <plugin>
134                 <groupId>com.github.sylvainlaurent.maven</groupId>
135                 <artifactId>yaml-json-validator-maven-plugin</artifactId>
136                 <executions>
137                     <execution>
138                         <id>validate</id>
139                         <phase>validate</phase>
140                         <goals>
141                             <goal>validate</goal>
142                         </goals>
143                         <configuration>
144                             <validationSets>
145                                 <validationSet>
146                                     <includes>
147                                         <include>src/main/resources/**/*.y*ml</include>
148                                         <include>src/test/resources/**/*.y*ml</include>
149                                     </includes>
150                                 </validationSet>
151                                 <validationSet>
152                                     <includes>
153                                         <include>src/main/resources/**/*.json</include>
154                                         <include>src/test/resources/**/*.json</include>
155                                     </includes>
156                                 </validationSet>
157                             </validationSets>
158                             <skip>${skipYamlJsonValidator}</skip>
159                         </configuration>
160                     </execution>
161                 </executions>
162             </plugin>
163         </plugins>
164     </build>
165
166     <repositories>
167         <!-- LF repositories -->
168         <repository>
169             <id>ecomp-releases</id>
170             <name>Release Repository</name>
171             <url>${nexus.proxy}/content/repositories/releases/</url>
172         </repository>
173         <repository>
174             <id>ecomp-snapshots</id>
175             <name>Snapshots Repository</name>
176             <url>${nexus.proxy}/content/repositories/snapshots/</url>
177         </repository>
178         <repository>
179             <id>ecomp-public</id>
180             <name>Public Repository</name>
181             <url>${nexus.proxy}/content/repositories/public/</url>
182         </repository>
183         <!-- LF repositories END-->
184     </repositories>
185
186     <profiles>
187         <profile>
188             <id>docker</id>
189             <activation>
190                 <activeByDefault>false</activeByDefault>
191             </activation>
192             <build>
193                 <plugins>
194
195                     <plugin>
196                         <artifactId>maven-clean-plugin</artifactId>
197                         <version>3.0.0</version>
198                         <executions>
199                             <execution>
200                                 <id>clean-static-files</id>
201                                 <phase>clean</phase>
202                                 <goals>
203                                     <goal>clean</goal>
204                                 </goals>
205                                 <configuration>
206                                     <filesets>
207                                         <fileset>
208                                             <directory>${project.basedir}/sdc-simulator</directory>
209                                             <includes>
210                                                 <include>*.war</include>
211                                             </includes>
212                                             <followSymlinks>false</followSymlinks>
213                                         </fileset>
214                                     </filesets>
215                                 </configuration>
216                             </execution>
217                         </executions>
218                     </plugin>
219
220                     <plugin>
221                         <artifactId>maven-resources-plugin</artifactId>
222                         <executions>
223                             <execution>
224                                 <id>copy-resources-simulator</id>
225                                 <phase>verify</phase>
226                                 <goals>
227                                     <goal>copy-resources</goal>
228                                 </goals>
229                                 <configuration>
230                                     <outputDirectory>${project.basedir}/sdc-simulator
231                                     </outputDirectory>
232                                     <resources>
233                                         <resource>
234                                             <directory>${project.basedir}/target</directory>
235                                             <includes>
236                                                 <include>WSSimulator*.war</include>
237                                             </includes>
238                                         </resource>
239                                     </resources>
240                                 </configuration>
241                             </execution>
242                         </executions>
243                     </plugin>
244
245
246                     <plugin>
247                         <groupId>io.fabric8</groupId>
248                         <artifactId>docker-maven-plugin</artifactId>
249                         <configuration>
250                             <verbose>${verbose}</verbose>
251                             <apiVersion>${docker.api.version}</apiVersion>
252                             <registry>${docker.registry}</registry>
253                             <authConfig>
254                                 <pull>
255                                     <username>${docker.username}</username>
256                                     <password>${docker.password}</password>
257                                 </pull>
258                             </authConfig>
259                             <images>
260                                 <!-- Build simulator image -->
261                                 <image>
262                                     <name>${docker.namespace}/sdc-simulator</name>
263                                     <alias>sdc-simulator</alias>
264                                     <build>
265                                         <cleanup>try</cleanup>
266                                         <dockerFileDir>${basedir}${file.separator}sdc-simulator
267                                         </dockerFileDir>
268                                         <tags>
269                                             <tag>latest</tag>
270                                             <tag>
271                                                 ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest
272                                             </tag>
273                                             <tag>
274                                                 ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-${maven.build.timestamp}
275                                             </tag>
276                                         </tags>
277                                     </build>
278                                 </image>
279                             </images>
280                         </configuration>
281                         <executions>
282                             <execution>
283                                 <id>clean-images</id>
284                                 <phase>pre-clean</phase>
285                                 <goals>
286                                     <goal>remove</goal>
287                                 </goals>
288                             </execution>
289                             <execution>
290                                 <id>generate-images</id>
291                                 <phase>install</phase>
292                                 <goals>
293                                     <goal>build</goal>
294                                 </goals>
295                             </execution>
296                             <execution>
297                                 <id>push-images</id>
298                                 <phase>deploy</phase>
299                                 <goals>
300                                     <goal>push</goal>
301                                 </goals>
302                             </execution>
303                         </executions>
304                     </plugin>
305                 </plugins>
306             </build>
307         </profile>
308     </profiles>
309 </project>