blob: d9790e4708674a573ccf50bc50eb5a45edd54ac3 [file] [log] [blame]
vasraze9171112021-11-26 15:57:50 +00001<project xmlns="http://maven.apache.org/POM/4.0.0"
2 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
vasrazb08ac292021-10-21 17:32:16 +01003 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
Michael Landoed64b5e2017-06-09 03:19:04 +03004
Yuli Shlosbergf59a2252018-03-21 11:14:08 +02005
vasraze9171112021-11-26 15:57:50 +00006 <modelVersion>4.0.0</modelVersion>
vasrazb08ac292021-10-21 17:32:16 +01007 <artifactId>webseal-simulator</artifactId>
vasraze9171112021-11-26 15:57:50 +00008 <packaging>war</packaging>
9
10 <parent>
11 <groupId>org.openecomp.sdc</groupId>
12 <artifactId>sdc-main</artifactId>
MichaelMorrise3f4b962023-02-27 16:57:32 +000013 <version>1.12.3-SNAPSHOT</version>
vasraze9171112021-11-26 15:57:50 +000014 <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>
vasrazfc768c62022-10-14 10:51:11 +010026 <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>
vasraz99ac5dc2023-03-06 15:56:57 +000040 <exclusion>
41 <groupId>javax.servlet</groupId>
42 <artifactId>javax.servlet-api</artifactId>
43 </exclusion>
vasrazfc768c62022-10-14 10:51:11 +010044 </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>
vasraz08997202022-10-04 18:16:26 +010059 <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>
vasraze9171112021-11-26 15:57:50 +000070
71 <dependency>
72 <groupId>org.apache.httpcomponents</groupId>
73 <artifactId>httpclient</artifactId>
74 <version>${httpclient.version}</version>
vasraz987fc742021-11-29 17:42:02 +000075 <exclusions>
76 <exclusion>
77 <groupId>org.apache.httpcomponents</groupId>
78 <artifactId>httpcore</artifactId>
79 </exclusion>
80 </exclusions>
vasraze9171112021-11-26 15:57:50 +000081 </dependency>
vasraz987fc742021-11-29 17:42:02 +000082 <dependency>
83 <groupId>org.apache.httpcomponents</groupId>
84 <artifactId>httpcore</artifactId>
85 <version>${httpcore.version}</version>
86 </dependency>
vasraze9171112021-11-26 15:57:50 +000087
88 <dependency>
andre.schmid422daed2022-09-16 15:45:32 +010089 <groupId>org.apache.commons</groupId>
90 <artifactId>commons-lang3</artifactId>
91 </dependency>
92
93 <dependency>
vasraze9171112021-11-26 15:57:50 +000094 <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
vasrazb08ac292021-10-21 17:32:16 +0100158 <build>
159 <finalName>WSSimulator-${project.version}</finalName>
vasraza36531c2020-04-29 18:39:35 +0100160 <plugins>
vasrazb08ac292021-10-21 17:32:16 +0100161 <plugin>
vasraze9171112021-11-26 15:57:50 +0000162 <groupId>com.github.sylvainlaurent.maven</groupId>
vasrazb08ac292021-10-21 17:32:16 +0100163 <artifactId>yaml-json-validator-maven-plugin</artifactId>
164 <executions>
165 <execution>
vasraze9171112021-11-26 15:57:50 +0000166 <id>validate</id>
167 <phase>validate</phase>
168 <goals>
169 <goal>validate</goal>
170 </goals>
vasrazb08ac292021-10-21 17:32:16 +0100171 <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>
vasraze9171112021-11-26 15:57:50 +0000186 <skip>${skipYamlJsonValidator}</skip>
vasrazb08ac292021-10-21 17:32:16 +0100187 </configuration>
188 </execution>
189 </executions>
190 </plugin>
vasraza36531c2020-04-29 18:39:35 +0100191 </plugins>
vasrazb08ac292021-10-21 17:32:16 +0100192 </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>
vasraze9171112021-11-26 15:57:50 +0000213
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>
vasraz8b1002a2021-12-08 22:12:52 +0000280 <registry>${docker.registry}</registry>
vasraze9171112021-11-26 15:57:50 +0000281 <authConfig>
282 <pull>
vasraz8b1002a2021-12-08 22:12:52 +0000283 <username>${docker.username}</username>
284 <password>${docker.password}</password>
vasraze9171112021-11-26 15:57:50 +0000285 </pull>
286 </authConfig>
287 <images>
288 <!-- Build simulator image -->
289 <image>
vasraz8b1002a2021-12-08 22:12:52 +0000290 <name>${docker.namespace}/sdc-simulator</name>
vasraze9171112021-11-26 15:57:50 +0000291 <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>
Michael Landoed64b5e2017-06-09 03:19:04 +0300337</project>