blob: e9801c9402eb6342a7844f6118d9b2b57bae9403 [file] [log] [blame]
vasraza36531c2020-04-29 18:39:35 +01001<project xmlns="http://maven.apache.org/POM/4.0.0"
vasrazb08ac292021-10-21 17:32:16 +01002 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
vasrazb08ac292021-10-21 17:32:16 +01006 <modelVersion>4.0.0</modelVersion>
7 <artifactId>webseal-simulator</artifactId>
8 <packaging>war</packaging>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +02009
vasrazb08ac292021-10-21 17:32:16 +010010 <parent>
11 <groupId>org.openecomp.sdc</groupId>
12 <artifactId>sdc-main</artifactId>
13 <version>1.10.0-SNAPSHOT</version>
14 <relativePath>../../</relativePath>
15 </parent>
Michael Landoed64b5e2017-06-09 03:19:04 +030016
vasrazb08ac292021-10-21 17:32:16 +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>
21 <sonar.skip>true</sonar.skip>
22 </properties>
Michael Landoed64b5e2017-06-09 03:19:04 +030023
vasrazb08ac292021-10-21 17:32:16 +010024 <dependencies>
25 <dependency>
26 <groupId>javax.servlet</groupId>
27 <artifactId>javax.servlet-api</artifactId>
28 <version>${javax.servlet.version}</version>
29 </dependency>
Michael Landoed64b5e2017-06-09 03:19:04 +030030
vasrazb08ac292021-10-21 17:32:16 +010031 <dependency>
32 <groupId>org.apache.httpcomponents</groupId>
33 <artifactId>httpclient</artifactId>
34 <version>${httpclient.version}</version>
35 </dependency>
Michael Landoed64b5e2017-06-09 03:19:04 +030036
Yuli Shlosbergaf70a202018-09-25 17:16:48 +030037
vasrazb08ac292021-10-21 17:32:16 +010038 <dependency>
39 <groupId>commons-logging</groupId>
40 <artifactId>commons-logging-api</artifactId>
41 <version>1.0.4</version>
42 </dependency>
Michael Landoed64b5e2017-06-09 03:19:04 +030043
vasrazb08ac292021-10-21 17:32:16 +010044 <dependency>
45 <groupId>commons-io</groupId>
46 <artifactId>commons-io</artifactId>
47 <version>${commons.io.version}</version>
48 </dependency>
Michael Landoed64b5e2017-06-09 03:19:04 +030049
vasrazb08ac292021-10-21 17:32:16 +010050 <dependency>
51 <groupId>commons-codec</groupId>
52 <artifactId>commons-codec</artifactId>
53 <version>${commons-codec}</version>
54 <scope>compile</scope>
55 </dependency>
Michael Landoed64b5e2017-06-09 03:19:04 +030056
vasrazb08ac292021-10-21 17:32:16 +010057 <dependency>
58 <groupId>org.eclipse.jetty</groupId>
59 <artifactId>jetty-proxy</artifactId>
60 <version>${jetty.version}</version>
61 <scope>compile</scope>
62 <exclusions>
63 <exclusion>
64 <groupId>org.eclipse.jetty</groupId>
65 <artifactId>jetty-http</artifactId>
66 </exclusion>
67 </exclusions>
68 </dependency>
Michael Landoed64b5e2017-06-09 03:19:04 +030069
vasrazb08ac292021-10-21 17:32:16 +010070 <dependency>
71 <groupId>org.eclipse.jetty</groupId>
72 <artifactId>jetty-servlets</artifactId>
73 <version>${jetty.version}</version>
74 <scope>compile</scope>
75 <exclusions>
76 <exclusion>
77 <groupId>org.eclipse.jetty</groupId>
78 <artifactId>jetty-http</artifactId>
79 </exclusion>
80 </exclusions>
81 </dependency>
Michael Landoed64b5e2017-06-09 03:19:04 +030082
vasrazb08ac292021-10-21 17:32:16 +010083 <!-- Proxy servlet -->
84 <dependency>
85 <groupId>com.typesafe</groupId>
86 <artifactId>config</artifactId>
87 <version>1.0.2</version>
88 <scope>compile</scope>
89 </dependency>
90 <dependency>
91 <groupId>org.openecomp.sdc</groupId>
92 <artifactId>openecomp-sdc-logging-api</artifactId>
93 <version>${project.version}</version>
94 <exclusions>
95 <exclusion>
96 <groupId>org.powermock</groupId>
97 <artifactId>powermock-module-junit4</artifactId>
98 </exclusion>
99 </exclusions>
100 </dependency>
101 </dependencies>
Yuli Shlosbergaf70a202018-09-25 17:16:48 +0300102
vasrazb08ac292021-10-21 17:32:16 +0100103 <build>
104 <finalName>WSSimulator-${project.version}</finalName>
vasraza36531c2020-04-29 18:39:35 +0100105 <plugins>
vasrazb08ac292021-10-21 17:32:16 +0100106 <plugin>
107 <groupId>com.github.sylvainlaurent.maven</groupId>
108 <artifactId>yaml-json-validator-maven-plugin</artifactId>
109 <executions>
110 <execution>
111 <id>validate</id>
112 <phase>validate</phase>
113 <goals>
114 <goal>validate</goal>
115 </goals>
116 <configuration>
117 <validationSets>
118 <validationSet>
119 <includes>
120 <include>src/main/resources/**/*.y*ml</include>
121 <include>src/test/resources/**/*.y*ml</include>
122 </includes>
123 </validationSet>
124 <validationSet>
125 <includes>
126 <include>src/main/resources/**/*.json</include>
127 <include>src/test/resources/**/*.json</include>
128 </includes>
129 </validationSet>
130 </validationSets>
131 <skip>${skipYamlJsonValidator}</skip>
132 </configuration>
133 </execution>
134 </executions>
135 </plugin>
vasraza36531c2020-04-29 18:39:35 +0100136 </plugins>
vasrazb08ac292021-10-21 17:32:16 +0100137 </build>
138
139 <repositories>
140 <!-- LF repositories -->
141 <repository>
142 <id>ecomp-releases</id>
143 <name>Release Repository</name>
144 <url>${nexus.proxy}/content/repositories/releases/</url>
145 </repository>
146 <repository>
147 <id>ecomp-snapshots</id>
148 <name>Snapshots Repository</name>
149 <url>${nexus.proxy}/content/repositories/snapshots/</url>
150 </repository>
151 <repository>
152 <id>ecomp-public</id>
153 <name>Public Repository</name>
154 <url>${nexus.proxy}/content/repositories/public/</url>
155 </repository>
156 <!-- LF repositories END-->
157 </repositories>
158
159 <profiles>
160 <profile>
161 <id>docker</id>
162 <activation>
163 <activeByDefault>false</activeByDefault>
164 </activation>
165 <build>
166 <plugins>
167
168 <plugin>
169 <artifactId>maven-clean-plugin</artifactId>
170 <version>3.0.0</version>
171 <executions>
172 <execution>
173 <id>clean-static-files</id>
174 <phase>clean</phase>
175 <goals>
176 <goal>clean</goal>
177 </goals>
178 <configuration>
179 <filesets>
180 <fileset>
181 <directory>${project.basedir}/sdc-simulator</directory>
182 <includes>
183 <include>*.war</include>
184 </includes>
185 <followSymlinks>false</followSymlinks>
186 </fileset>
187 </filesets>
188 </configuration>
189 </execution>
190 </executions>
191 </plugin>
192
193 <plugin>
194 <artifactId>maven-resources-plugin</artifactId>
195 <executions>
196 <execution>
197 <id>copy-resources-simulator</id>
198 <phase>verify</phase>
199 <goals>
200 <goal>copy-resources</goal>
201 </goals>
202 <configuration>
203 <outputDirectory>${project.basedir}/sdc-simulator
204 </outputDirectory>
205 <resources>
206 <resource>
207 <directory>${project.basedir}/target</directory>
208 <includes>
209 <include>WSSimulator*.war</include>
210 </includes>
211 </resource>
212 </resources>
213 </configuration>
214 </execution>
215 </executions>
216 </plugin>
217
218
219 <plugin>
220 <groupId>io.fabric8</groupId>
221 <artifactId>docker-maven-plugin</artifactId>
222 <configuration>
223 <verbose>${verbose}</verbose>
224 <apiVersion>${docker.api.version}</apiVersion>
225 <registry>nexus3.onap.org:10001</registry>
226 <authConfig>
227 <pull>
228 <username>docker</username>
229 <password>docker</password>
230 </pull>
231 </authConfig>
232 <images>
233 <!-- Build simulator image -->
234 <image>
235 <name>onap/sdc-simulator</name>
236 <alias>sdc-simulator</alias>
237 <build>
238 <cleanup>try</cleanup>
239 <dockerFileDir>${basedir}${file.separator}sdc-simulator
240 </dockerFileDir>
241 <tags>
242 <tag>latest</tag>
243 <tag>
244 ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest
245 </tag>
246 <tag>
247 ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-${maven.build.timestamp}
248 </tag>
249 </tags>
250 </build>
251 </image>
252 </images>
253 </configuration>
254 <executions>
255 <execution>
256 <id>clean-images</id>
257 <phase>pre-clean</phase>
258 <goals>
259 <goal>remove</goal>
260 </goals>
261 </execution>
262 <execution>
263 <id>generate-images</id>
264 <phase>install</phase>
265 <goals>
266 <goal>build</goal>
267 </goals>
268 </execution>
269 <execution>
270 <id>push-images</id>
271 <phase>deploy</phase>
272 <goals>
273 <goal>push</goal>
274 </goals>
275 </execution>
276 </executions>
277 </plugin>
278 </plugins>
279 </build>
280 </profile>
281 </profiles>
Michael Landoed64b5e2017-06-09 03:19:04 +0300282</project>