blob: a56f5f0c4cb99da3562b207df274ae486a951dfb [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>
Joanna Jeremicz1affa572020-11-30 11:35:07 +010013 <version>1.8.1-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>
63 </dependency>
Michael Landoed64b5e2017-06-09 03:19:04 +030064
vasraza36531c2020-04-29 18:39:35 +010065 <dependency>
66 <groupId>org.eclipse.jetty</groupId>
67 <artifactId>jetty-servlets</artifactId>
68 <version>${jetty.version}</version>
69 <scope>compile</scope>
70 </dependency>
Michael Landoed64b5e2017-06-09 03:19:04 +030071
vasraza36531c2020-04-29 18:39:35 +010072 <!-- Proxy servlet -->
73 <dependency>
74 <groupId>com.typesafe</groupId>
75 <artifactId>config</artifactId>
76 <version>1.0.2</version>
77 <scope>compile</scope>
78 </dependency>
vasraza36531c2020-04-29 18:39:35 +010079 <dependency>
vasraz7c259332021-01-20 21:20:28 +000080 <groupId>org.openecomp.sdc</groupId>
81 <artifactId>openecomp-sdc-logging-api</artifactId>
82 <version>${project.version}</version>
vasraza36531c2020-04-29 18:39:35 +010083 </dependency>
Yuli Shlosbergaf70a202018-09-25 17:16:48 +030084
vasraza36531c2020-04-29 18:39:35 +010085 </dependencies>
86 <build>
87 <finalName>WSSimulator-${project.version}</finalName>
88 <plugins>
89 <plugin>
90 <groupId>com.github.sylvainlaurent.maven</groupId>
91 <artifactId>yaml-json-validator-maven-plugin</artifactId>
92 <executions>
93 <execution>
94 <id>validate</id>
95 <phase>validate</phase>
96 <goals>
97 <goal>validate</goal>
98 </goals>
99 <configuration>
100 <validationSets>
101 <validationSet>
102 <includes>
103 <include>src/main/resources/**/*.y*ml</include>
104 <include>src/test/resources/**/*.y*ml</include>
105 </includes>
106 </validationSet>
107 <validationSet>
108 <includes>
109 <include>src/main/resources/**/*.json</include>
110 <include>src/test/resources/**/*.json</include>
111 </includes>
112 </validationSet>
113 </validationSets>
JulienBe6bd3d3a2020-06-24 15:35:23 +0200114 <skip>${skipYamlJsonValidator}</skip>
vasraza36531c2020-04-29 18:39:35 +0100115 </configuration>
116 </execution>
117 </executions>
118 </plugin>
119 </plugins>
120 </build>
121
122 <repositories>
123 <!-- LF repositories -->
124 <repository>
125 <id>ecomp-releases</id>
126 <name>Release Repository</name>
127 <url>${nexus.proxy}/content/repositories/releases/</url>
128 </repository>
129 <repository>
130 <id>ecomp-snapshots</id>
131 <name>Snapshots Repository</name>
132 <url>${nexus.proxy}/content/repositories/snapshots/</url>
133 </repository>
134 <repository>
135 <id>ecomp-public</id>
136 <name>Public Repository</name>
137 <url>${nexus.proxy}/content/repositories/public/</url>
138 </repository>
139 <!-- LF repositories END-->
140 </repositories>
141
142 <profiles>
143 <profile>
144 <id>docker</id>
145 <activation>
146 <activeByDefault>false</activeByDefault>
147 </activation>
148 <build>
149 <plugins>
150
151 <plugin>
152 <artifactId>maven-clean-plugin</artifactId>
153 <version>3.0.0</version>
154 <executions>
155 <execution>
156 <id>clean-static-files</id>
157 <phase>clean</phase>
158 <goals>
159 <goal>clean</goal>
160 </goals>
161 <configuration>
162 <filesets>
163 <fileset>
164 <directory>${project.basedir}/sdc-simulator</directory>
165 <includes>
166 <include>*.war</include>
167 </includes>
168 <followSymlinks>false</followSymlinks>
169 </fileset>
170 </filesets>
171 </configuration>
172 </execution>
173 </executions>
174 </plugin>
175
176 <plugin>
177 <artifactId>maven-resources-plugin</artifactId>
178 <executions>
179 <execution>
180 <id>copy-resources-simulator</id>
181 <phase>verify</phase>
182 <goals>
183 <goal>copy-resources</goal>
184 </goals>
185 <configuration>
186 <outputDirectory>${project.basedir}/sdc-simulator</outputDirectory>
187 <resources>
188 <resource>
189 <directory>${project.basedir}/target</directory>
190 <includes>
191 <include>WSSimulator*.war</include>
192 </includes>
193 </resource>
194 </resources>
195 </configuration>
196 </execution>
197 </executions>
198 </plugin>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300199
200
vasraza36531c2020-04-29 18:39:35 +0100201 <plugin>
202 <groupId>io.fabric8</groupId>
203 <artifactId>docker-maven-plugin</artifactId>
204 <configuration>
sebdet591810d2020-09-17 15:07:23 +0200205 <apiVersion>${docker.api.version}</apiVersion>
vasraza36531c2020-04-29 18:39:35 +0100206 <registry>nexus3.onap.org:10001</registry>
207 <authConfig>
208 <pull>
209 <username>docker</username>
210 <password>docker</password>
211 </pull>
212 </authConfig>
213 <images>
214 <!-- Build simulator image -->
215 <image>
216 <name>onap/sdc-simulator</name>
217 <alias>sdc-simulator</alias>
218 <build>
219 <cleanup>try</cleanup>
220 <dockerFileDir>${basedir}${file.separator}sdc-simulator</dockerFileDir>
221 <tags>
sebdetb988cb62020-09-25 15:48:10 +0200222 <tag>latest</tag>
vasraza36531c2020-04-29 18:39:35 +0100223 <tag>
224 ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest
225 </tag>
sebdetb988cb62020-09-25 15:48:10 +0200226 <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-${maven.build.timestamp}</tag>
vasraza36531c2020-04-29 18:39:35 +0100227 </tags>
228 </build>
229 </image>
230 </images>
231 </configuration>
232 <executions>
233 <execution>
234 <id>clean-images</id>
235 <phase>pre-clean</phase>
236 <goals>
237 <goal>remove</goal>
238 </goals>
239 </execution>
240 <execution>
241 <id>generate-images</id>
242 <phase>install</phase>
243 <goals>
244 <goal>build</goal>
245 </goals>
246 </execution>
247 <execution>
248 <id>push-images</id>
249 <phase>deploy</phase>
250 <goals>
251 <goal>push</goal>
252 </goals>
253 </execution>
254 </executions>
255 </plugin>
256 </plugins>
257 </build>
258 </profile>
259 </profiles>
Michael Landoed64b5e2017-06-09 03:19:04 +0300260</project>