Update vulnerable dependency - javax.servlet:javax.servlet-api
[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.3-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.hibernate.validator</groupId>
27             <artifactId>hibernate-validator</artifactId>
28             <version>${hibernate.validator.version}</version>
29         </dependency>
30         <dependency>
31             <groupId>org.eclipse.jetty</groupId>
32             <artifactId>jetty-server</artifactId>
33             <version>${jetty.version}</version>
34             <scope>compile</scope>
35             <exclusions>
36                 <exclusion>
37                     <groupId>org.eclipse.jetty</groupId>
38                     <artifactId>jetty-http</artifactId>
39                 </exclusion>
40                 <exclusion>
41                     <groupId>javax.servlet</groupId>
42                     <artifactId>javax.servlet-api</artifactId>
43                 </exclusion>
44             </exclusions>
45         </dependency>
46         <dependency>
47             <groupId>org.eclipse.jetty</groupId>
48             <artifactId>jetty-servlet</artifactId>
49             <version>${jetty.version}</version>
50             <scope>compile</scope>
51             <exclusions>
52                 <exclusion>
53                     <groupId>org.eclipse.jetty</groupId>
54                     <artifactId>jetty-security</artifactId>
55                 </exclusion>
56             </exclusions>
57         </dependency>
58         <dependency>
59             <groupId>org.openecomp.sdc</groupId>
60             <artifactId>common-app-api</artifactId>
61             <version>${project.version}</version>
62             <scope>compile</scope>
63             <exclusions>
64                 <exclusion>
65                     <groupId>org.apache.httpcomponents</groupId>
66                     <artifactId>httpcore</artifactId>
67                 </exclusion>
68             </exclusions>
69         </dependency>
70
71         <dependency>
72             <groupId>org.apache.httpcomponents</groupId>
73             <artifactId>httpclient</artifactId>
74             <version>${httpclient.version}</version>
75             <exclusions>
76                 <exclusion>
77                     <groupId>org.apache.httpcomponents</groupId>
78                     <artifactId>httpcore</artifactId>
79                 </exclusion>
80             </exclusions>
81         </dependency>
82         <dependency>
83             <groupId>org.apache.httpcomponents</groupId>
84             <artifactId>httpcore</artifactId>
85             <version>${httpcore.version}</version>
86         </dependency>
87
88         <dependency>
89             <groupId>org.apache.commons</groupId>
90             <artifactId>commons-lang3</artifactId>
91         </dependency>
92
93         <dependency>
94             <groupId>commons-logging</groupId>
95             <artifactId>commons-logging-api</artifactId>
96             <version>1.0.4</version>
97         </dependency>
98
99         <dependency>
100             <groupId>commons-io</groupId>
101             <artifactId>commons-io</artifactId>
102             <version>${commons.io.version}</version>
103         </dependency>
104
105         <dependency>
106             <groupId>commons-codec</groupId>
107             <artifactId>commons-codec</artifactId>
108             <version>${commons-codec}</version>
109             <scope>compile</scope>
110         </dependency>
111
112         <dependency>
113             <groupId>org.eclipse.jetty</groupId>
114             <artifactId>jetty-proxy</artifactId>
115             <version>${jetty.version}</version>
116             <scope>compile</scope>
117             <exclusions>
118                 <exclusion>
119                     <groupId>org.eclipse.jetty</groupId>
120                     <artifactId>jetty-http</artifactId>
121                 </exclusion>
122             </exclusions>
123         </dependency>
124
125         <dependency>
126             <groupId>org.eclipse.jetty</groupId>
127             <artifactId>jetty-servlets</artifactId>
128             <version>${jetty.version}</version>
129             <scope>compile</scope>
130             <exclusions>
131                 <exclusion>
132                     <groupId>org.eclipse.jetty</groupId>
133                     <artifactId>jetty-http</artifactId>
134                 </exclusion>
135             </exclusions>
136         </dependency>
137
138         <!-- Proxy servlet -->
139         <dependency>
140             <groupId>com.typesafe</groupId>
141             <artifactId>config</artifactId>
142             <version>1.0.2</version>
143             <scope>compile</scope>
144         </dependency>
145         <dependency>
146             <groupId>org.openecomp.sdc</groupId>
147             <artifactId>openecomp-sdc-logging-api</artifactId>
148             <version>${project.version}</version>
149             <exclusions>
150                 <exclusion>
151                     <groupId>org.powermock</groupId>
152                     <artifactId>powermock-module-junit4</artifactId>
153                 </exclusion>
154             </exclusions>
155         </dependency>
156     </dependencies>
157
158     <build>
159         <finalName>WSSimulator-${project.version}</finalName>
160         <plugins>
161             <plugin>
162                 <groupId>com.github.sylvainlaurent.maven</groupId>
163                 <artifactId>yaml-json-validator-maven-plugin</artifactId>
164                 <executions>
165                     <execution>
166                         <id>validate</id>
167                         <phase>validate</phase>
168                         <goals>
169                             <goal>validate</goal>
170                         </goals>
171                         <configuration>
172                             <validationSets>
173                                 <validationSet>
174                                     <includes>
175                                         <include>src/main/resources/**/*.y*ml</include>
176                                         <include>src/test/resources/**/*.y*ml</include>
177                                     </includes>
178                                 </validationSet>
179                                 <validationSet>
180                                     <includes>
181                                         <include>src/main/resources/**/*.json</include>
182                                         <include>src/test/resources/**/*.json</include>
183                                     </includes>
184                                 </validationSet>
185                             </validationSets>
186                             <skip>${skipYamlJsonValidator}</skip>
187                         </configuration>
188                     </execution>
189                 </executions>
190             </plugin>
191         </plugins>
192     </build>
193
194     <repositories>
195         <!-- LF repositories -->
196         <repository>
197             <id>ecomp-releases</id>
198             <name>Release Repository</name>
199             <url>${nexus.proxy}/content/repositories/releases/</url>
200         </repository>
201         <repository>
202             <id>ecomp-snapshots</id>
203             <name>Snapshots Repository</name>
204             <url>${nexus.proxy}/content/repositories/snapshots/</url>
205         </repository>
206         <repository>
207             <id>ecomp-public</id>
208             <name>Public Repository</name>
209             <url>${nexus.proxy}/content/repositories/public/</url>
210         </repository>
211         <!-- LF repositories END-->
212     </repositories>
213
214     <profiles>
215         <profile>
216             <id>docker</id>
217             <activation>
218                 <activeByDefault>false</activeByDefault>
219             </activation>
220             <build>
221                 <plugins>
222
223                     <plugin>
224                         <artifactId>maven-clean-plugin</artifactId>
225                         <version>3.0.0</version>
226                         <executions>
227                             <execution>
228                                 <id>clean-static-files</id>
229                                 <phase>clean</phase>
230                                 <goals>
231                                     <goal>clean</goal>
232                                 </goals>
233                                 <configuration>
234                                     <filesets>
235                                         <fileset>
236                                             <directory>${project.basedir}/sdc-simulator</directory>
237                                             <includes>
238                                                 <include>*.war</include>
239                                             </includes>
240                                             <followSymlinks>false</followSymlinks>
241                                         </fileset>
242                                     </filesets>
243                                 </configuration>
244                             </execution>
245                         </executions>
246                     </plugin>
247
248                     <plugin>
249                         <artifactId>maven-resources-plugin</artifactId>
250                         <executions>
251                             <execution>
252                                 <id>copy-resources-simulator</id>
253                                 <phase>verify</phase>
254                                 <goals>
255                                     <goal>copy-resources</goal>
256                                 </goals>
257                                 <configuration>
258                                     <outputDirectory>${project.basedir}/sdc-simulator
259                                     </outputDirectory>
260                                     <resources>
261                                         <resource>
262                                             <directory>${project.basedir}/target</directory>
263                                             <includes>
264                                                 <include>WSSimulator*.war</include>
265                                             </includes>
266                                         </resource>
267                                     </resources>
268                                 </configuration>
269                             </execution>
270                         </executions>
271                     </plugin>
272
273
274                     <plugin>
275                         <groupId>io.fabric8</groupId>
276                         <artifactId>docker-maven-plugin</artifactId>
277                         <configuration>
278                             <verbose>${verbose}</verbose>
279                             <apiVersion>${docker.api.version}</apiVersion>
280                             <registry>${docker.registry}</registry>
281                             <authConfig>
282                                 <pull>
283                                     <username>${docker.username}</username>
284                                     <password>${docker.password}</password>
285                                 </pull>
286                             </authConfig>
287                             <images>
288                                 <!-- Build simulator image -->
289                                 <image>
290                                     <name>${docker.namespace}/sdc-simulator</name>
291                                     <alias>sdc-simulator</alias>
292                                     <build>
293                                         <cleanup>try</cleanup>
294                                         <dockerFileDir>${basedir}${file.separator}sdc-simulator
295                                         </dockerFileDir>
296                                         <tags>
297                                             <tag>latest</tag>
298                                             <tag>
299                                                 ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest
300                                             </tag>
301                                             <tag>
302                                                 ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-${maven.build.timestamp}
303                                             </tag>
304                                         </tags>
305                                     </build>
306                                 </image>
307                             </images>
308                         </configuration>
309                         <executions>
310                             <execution>
311                                 <id>clean-images</id>
312                                 <phase>pre-clean</phase>
313                                 <goals>
314                                     <goal>remove</goal>
315                                 </goals>
316                             </execution>
317                             <execution>
318                                 <id>generate-images</id>
319                                 <phase>install</phase>
320                                 <goals>
321                                     <goal>build</goal>
322                                 </goals>
323                             </execution>
324                             <execution>
325                                 <id>push-images</id>
326                                 <phase>deploy</phase>
327                                 <goals>
328                                     <goal>push</goal>
329                                 </goals>
330                             </execution>
331                         </executions>
332                     </plugin>
333                 </plugins>
334             </build>
335         </profile>
336     </profiles>
337 </project>