blob: 8b2fa980a8f6070b473ea9c1256c4209b4b06c9c [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>
MichaelMorrisef496e12022-09-29 11:13:09 +010013 <version>1.12.0-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>
vasraz08997202022-10-04 18:16:26 +010026 <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>
vasraze9171112021-11-26 15:57:50 +000038 <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>
vasraz987fc742021-11-29 17:42:02 +000047 <exclusions>
48 <exclusion>
49 <groupId>org.apache.httpcomponents</groupId>
50 <artifactId>httpcore</artifactId>
51 </exclusion>
52 </exclusions>
vasraze9171112021-11-26 15:57:50 +000053 </dependency>
vasraz987fc742021-11-29 17:42:02 +000054 <dependency>
55 <groupId>org.apache.httpcomponents</groupId>
56 <artifactId>httpcore</artifactId>
57 <version>${httpcore.version}</version>
58 </dependency>
vasraze9171112021-11-26 15:57:50 +000059
60 <dependency>
andre.schmid422daed2022-09-16 15:45:32 +010061 <groupId>org.apache.commons</groupId>
62 <artifactId>commons-lang3</artifactId>
63 </dependency>
64
65 <dependency>
vasraze9171112021-11-26 15:57:50 +000066 <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
vasrazb08ac292021-10-21 17:32:16 +0100130 <build>
131 <finalName>WSSimulator-${project.version}</finalName>
vasraza36531c2020-04-29 18:39:35 +0100132 <plugins>
vasrazb08ac292021-10-21 17:32:16 +0100133 <plugin>
vasraze9171112021-11-26 15:57:50 +0000134 <groupId>com.github.sylvainlaurent.maven</groupId>
vasrazb08ac292021-10-21 17:32:16 +0100135 <artifactId>yaml-json-validator-maven-plugin</artifactId>
136 <executions>
137 <execution>
vasraze9171112021-11-26 15:57:50 +0000138 <id>validate</id>
139 <phase>validate</phase>
140 <goals>
141 <goal>validate</goal>
142 </goals>
vasrazb08ac292021-10-21 17:32:16 +0100143 <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>
vasraze9171112021-11-26 15:57:50 +0000158 <skip>${skipYamlJsonValidator}</skip>
vasrazb08ac292021-10-21 17:32:16 +0100159 </configuration>
160 </execution>
161 </executions>
162 </plugin>
vasraza36531c2020-04-29 18:39:35 +0100163 </plugins>
vasrazb08ac292021-10-21 17:32:16 +0100164 </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>
vasraze9171112021-11-26 15:57:50 +0000185
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>
vasraz8b1002a2021-12-08 22:12:52 +0000252 <registry>${docker.registry}</registry>
vasraze9171112021-11-26 15:57:50 +0000253 <authConfig>
254 <pull>
vasraz8b1002a2021-12-08 22:12:52 +0000255 <username>${docker.username}</username>
256 <password>${docker.password}</password>
vasraze9171112021-11-26 15:57:50 +0000257 </pull>
258 </authConfig>
259 <images>
260 <!-- Build simulator image -->
261 <image>
vasraz8b1002a2021-12-08 22:12:52 +0000262 <name>${docker.namespace}/sdc-simulator</name>
vasraze9171112021-11-26 15:57:50 +0000263 <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>
Michael Landoed64b5e2017-06-09 03:19:04 +0300309</project>