blob: ca95ef8cdcdfcd7029df87057b5c80e3e38d5ac8 [file] [log] [blame]
vasraza36531c2020-04-29 18:39:35 +01001<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">
Michael Landoed64b5e2017-06-09 03:19:04 +03004
Yuli Shlosbergf59a2252018-03-21 11:14:08 +02005
vasraza36531c2020-04-29 18:39:35 +01006 <modelVersion>4.0.0</modelVersion>
7 <artifactId>webseal-simulator</artifactId>
8 <packaging>war</packaging>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +02009
vasraza36531c2020-04-29 18:39:35 +010010 <parent>
11 <groupId>org.openecomp.sdc</groupId>
12 <artifactId>sdc-main</artifactId>
ChrisC00acf3d2021-03-22 13:54:06 +010013 <version>1.9.0-SNAPSHOT</version>
vasraza36531c2020-04-29 18:39:35 +010014 <relativePath>../../</relativePath>
15 </parent>
Michael Landoed64b5e2017-06-09 03:19:04 +030016
vasraza36531c2020-04-29 18:39:35 +010017 <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>
vasraza36531c2020-04-29 18:39:35 +010021 <sonar.skip>true</sonar.skip>
22 </properties>
Michael Landoed64b5e2017-06-09 03:19:04 +030023
vasraza36531c2020-04-29 18:39:35 +010024 <dependencies>
vasraza36531c2020-04-29 18:39:35 +010025 <dependency>
26 <groupId>javax.servlet</groupId>
27 <artifactId>servlet-api</artifactId>
28 <version>2.5</version>
29 <scope>compile</scope>
30 </dependency>
Michael Landoed64b5e2017-06-09 03:19:04 +030031
vasraza36531c2020-04-29 18:39:35 +010032 <dependency>
33 <groupId>org.apache.httpcomponents</groupId>
34 <artifactId>httpclient</artifactId>
35 <version>4.5.3</version>
36 </dependency>
Michael Landoed64b5e2017-06-09 03:19:04 +030037
Yuli Shlosbergaf70a202018-09-25 17:16:48 +030038
vasraza36531c2020-04-29 18:39:35 +010039 <dependency>
40 <groupId>commons-logging</groupId>
41 <artifactId>commons-logging-api</artifactId>
42 <version>1.0.4</version>
43 </dependency>
Michael Landoed64b5e2017-06-09 03:19:04 +030044
vasraza36531c2020-04-29 18:39:35 +010045 <dependency>
46 <groupId>commons-io</groupId>
47 <artifactId>commons-io</artifactId>
48 <version>2.4</version>
49 </dependency>
Michael Landoed64b5e2017-06-09 03:19:04 +030050
vasraza36531c2020-04-29 18:39:35 +010051 <dependency>
52 <groupId>commons-codec</groupId>
53 <artifactId>commons-codec</artifactId>
54 <version>1.9</version>
55 <scope>compile</scope>
56 </dependency>
Michael Landoed64b5e2017-06-09 03:19:04 +030057
vasraza36531c2020-04-29 18:39:35 +010058 <dependency>
59 <groupId>org.eclipse.jetty</groupId>
60 <artifactId>jetty-proxy</artifactId>
61 <version>${jetty.version}</version>
62 <scope>compile</scope>
vasraz086406a2021-02-22 09:50:07 +000063 <exclusions>
64 <exclusion>
65 <groupId>org.eclipse.jetty</groupId>
66 <artifactId>jetty-http</artifactId>
67 </exclusion>
68 </exclusions>
vasraza36531c2020-04-29 18:39:35 +010069 </dependency>
Michael Landoed64b5e2017-06-09 03:19:04 +030070
vasraza36531c2020-04-29 18:39:35 +010071 <dependency>
72 <groupId>org.eclipse.jetty</groupId>
73 <artifactId>jetty-servlets</artifactId>
74 <version>${jetty.version}</version>
75 <scope>compile</scope>
vasraz086406a2021-02-22 09:50:07 +000076 <exclusions>
77 <exclusion>
78 <groupId>org.eclipse.jetty</groupId>
79 <artifactId>jetty-http</artifactId>
80 </exclusion>
81 </exclusions>
vasraza36531c2020-04-29 18:39:35 +010082 </dependency>
Michael Landoed64b5e2017-06-09 03:19:04 +030083
vasraza36531c2020-04-29 18:39:35 +010084 <!-- Proxy servlet -->
85 <dependency>
86 <groupId>com.typesafe</groupId>
87 <artifactId>config</artifactId>
88 <version>1.0.2</version>
89 <scope>compile</scope>
90 </dependency>
vasraza36531c2020-04-29 18:39:35 +010091 <dependency>
vasraz7c259332021-01-20 21:20:28 +000092 <groupId>org.openecomp.sdc</groupId>
93 <artifactId>openecomp-sdc-logging-api</artifactId>
94 <version>${project.version}</version>
vasraza36531c2020-04-29 18:39:35 +010095 </dependency>
Yuli Shlosbergaf70a202018-09-25 17:16:48 +030096
vasraza36531c2020-04-29 18:39:35 +010097 </dependencies>
98 <build>
99 <finalName>WSSimulator-${project.version}</finalName>
100 <plugins>
101 <plugin>
102 <groupId>com.github.sylvainlaurent.maven</groupId>
103 <artifactId>yaml-json-validator-maven-plugin</artifactId>
104 <executions>
105 <execution>
106 <id>validate</id>
107 <phase>validate</phase>
108 <goals>
109 <goal>validate</goal>
110 </goals>
111 <configuration>
112 <validationSets>
113 <validationSet>
114 <includes>
115 <include>src/main/resources/**/*.y*ml</include>
116 <include>src/test/resources/**/*.y*ml</include>
117 </includes>
118 </validationSet>
119 <validationSet>
120 <includes>
121 <include>src/main/resources/**/*.json</include>
122 <include>src/test/resources/**/*.json</include>
123 </includes>
124 </validationSet>
125 </validationSets>
JulienBe6bd3d3a2020-06-24 15:35:23 +0200126 <skip>${skipYamlJsonValidator}</skip>
vasraza36531c2020-04-29 18:39:35 +0100127 </configuration>
128 </execution>
129 </executions>
130 </plugin>
131 </plugins>
132 </build>
133
134 <repositories>
135 <!-- LF repositories -->
136 <repository>
137 <id>ecomp-releases</id>
138 <name>Release Repository</name>
139 <url>${nexus.proxy}/content/repositories/releases/</url>
140 </repository>
141 <repository>
142 <id>ecomp-snapshots</id>
143 <name>Snapshots Repository</name>
144 <url>${nexus.proxy}/content/repositories/snapshots/</url>
145 </repository>
146 <repository>
147 <id>ecomp-public</id>
148 <name>Public Repository</name>
149 <url>${nexus.proxy}/content/repositories/public/</url>
150 </repository>
151 <!-- LF repositories END-->
152 </repositories>
153
154 <profiles>
155 <profile>
156 <id>docker</id>
157 <activation>
158 <activeByDefault>false</activeByDefault>
159 </activation>
160 <build>
161 <plugins>
162
163 <plugin>
164 <artifactId>maven-clean-plugin</artifactId>
165 <version>3.0.0</version>
166 <executions>
167 <execution>
168 <id>clean-static-files</id>
169 <phase>clean</phase>
170 <goals>
171 <goal>clean</goal>
172 </goals>
173 <configuration>
174 <filesets>
175 <fileset>
176 <directory>${project.basedir}/sdc-simulator</directory>
177 <includes>
178 <include>*.war</include>
179 </includes>
180 <followSymlinks>false</followSymlinks>
181 </fileset>
182 </filesets>
183 </configuration>
184 </execution>
185 </executions>
186 </plugin>
187
188 <plugin>
189 <artifactId>maven-resources-plugin</artifactId>
190 <executions>
191 <execution>
192 <id>copy-resources-simulator</id>
193 <phase>verify</phase>
194 <goals>
195 <goal>copy-resources</goal>
196 </goals>
197 <configuration>
198 <outputDirectory>${project.basedir}/sdc-simulator</outputDirectory>
199 <resources>
200 <resource>
201 <directory>${project.basedir}/target</directory>
202 <includes>
203 <include>WSSimulator*.war</include>
204 </includes>
205 </resource>
206 </resources>
207 </configuration>
208 </execution>
209 </executions>
210 </plugin>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300211
212
vasraza36531c2020-04-29 18:39:35 +0100213 <plugin>
214 <groupId>io.fabric8</groupId>
215 <artifactId>docker-maven-plugin</artifactId>
216 <configuration>
sebdetdf353be2020-09-21 22:13:05 +0200217 <verbose>${verbose}</verbose>
sebdet591810d2020-09-17 15:07:23 +0200218 <apiVersion>${docker.api.version}</apiVersion>
vasraza36531c2020-04-29 18:39:35 +0100219 <registry>nexus3.onap.org:10001</registry>
220 <authConfig>
221 <pull>
222 <username>docker</username>
223 <password>docker</password>
224 </pull>
225 </authConfig>
226 <images>
227 <!-- Build simulator image -->
228 <image>
229 <name>onap/sdc-simulator</name>
230 <alias>sdc-simulator</alias>
231 <build>
232 <cleanup>try</cleanup>
233 <dockerFileDir>${basedir}${file.separator}sdc-simulator</dockerFileDir>
234 <tags>
sebdetb988cb62020-09-25 15:48:10 +0200235 <tag>latest</tag>
vasraza36531c2020-04-29 18:39:35 +0100236 <tag>
237 ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest
238 </tag>
sebdetb988cb62020-09-25 15:48:10 +0200239 <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-${maven.build.timestamp}</tag>
vasraza36531c2020-04-29 18:39:35 +0100240 </tags>
241 </build>
242 </image>
243 </images>
244 </configuration>
245 <executions>
246 <execution>
247 <id>clean-images</id>
248 <phase>pre-clean</phase>
249 <goals>
250 <goal>remove</goal>
251 </goals>
252 </execution>
253 <execution>
254 <id>generate-images</id>
255 <phase>install</phase>
256 <goals>
257 <goal>build</goal>
258 </goals>
259 </execution>
260 <execution>
261 <id>push-images</id>
262 <phase>deploy</phase>
263 <goals>
264 <goal>push</goal>
265 </goals>
266 </execution>
267 </executions>
268 </plugin>
269 </plugins>
270 </build>
271 </profile>
272 </profiles>
Michael Landoed64b5e2017-06-09 03:19:04 +0300273</project>