blob: 64091cf635b95a929681983ef5bcbfdcc4cc75b5 [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>
sebdet33440962020-09-03 15:09:21 +020013 <version>1.7.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>
21 <docker.tag>${project.version}-${maven.build.timestamp}</docker.tag>
22 <docker.latest.tag>${project.version}-latest</docker.latest.tag>
23 <sonar.skip>true</sonar.skip>
24 </properties>
Michael Landoed64b5e2017-06-09 03:19:04 +030025
vasraza36531c2020-04-29 18:39:35 +010026 <dependencies>
vasraza36531c2020-04-29 18:39:35 +010027 <dependency>
28 <groupId>javax.servlet</groupId>
29 <artifactId>servlet-api</artifactId>
30 <version>2.5</version>
31 <scope>compile</scope>
32 </dependency>
Michael Landoed64b5e2017-06-09 03:19:04 +030033
vasraza36531c2020-04-29 18:39:35 +010034 <dependency>
35 <groupId>org.apache.httpcomponents</groupId>
36 <artifactId>httpclient</artifactId>
37 <version>4.5.3</version>
38 </dependency>
Michael Landoed64b5e2017-06-09 03:19:04 +030039
Yuli Shlosbergaf70a202018-09-25 17:16:48 +030040
vasraza36531c2020-04-29 18:39:35 +010041 <dependency>
42 <groupId>commons-logging</groupId>
43 <artifactId>commons-logging-api</artifactId>
44 <version>1.0.4</version>
45 </dependency>
Michael Landoed64b5e2017-06-09 03:19:04 +030046
vasraza36531c2020-04-29 18:39:35 +010047 <dependency>
48 <groupId>commons-io</groupId>
49 <artifactId>commons-io</artifactId>
50 <version>2.4</version>
51 </dependency>
Michael Landoed64b5e2017-06-09 03:19:04 +030052
vasraza36531c2020-04-29 18:39:35 +010053 <dependency>
54 <groupId>commons-codec</groupId>
55 <artifactId>commons-codec</artifactId>
56 <version>1.9</version>
57 <scope>compile</scope>
58 </dependency>
Michael Landoed64b5e2017-06-09 03:19:04 +030059
vasraza36531c2020-04-29 18:39:35 +010060 <dependency>
61 <groupId>org.eclipse.jetty</groupId>
62 <artifactId>jetty-proxy</artifactId>
63 <version>${jetty.version}</version>
64 <scope>compile</scope>
65 </dependency>
Michael Landoed64b5e2017-06-09 03:19:04 +030066
vasraza36531c2020-04-29 18:39:35 +010067 <dependency>
68 <groupId>org.eclipse.jetty</groupId>
69 <artifactId>jetty-servlets</artifactId>
70 <version>${jetty.version}</version>
71 <scope>compile</scope>
72 </dependency>
Michael Landoed64b5e2017-06-09 03:19:04 +030073
vasraza36531c2020-04-29 18:39:35 +010074 <!-- Proxy servlet -->
75 <dependency>
76 <groupId>com.typesafe</groupId>
77 <artifactId>config</artifactId>
78 <version>1.0.2</version>
79 <scope>compile</scope>
80 </dependency>
Michael Landoed64b5e2017-06-09 03:19:04 +030081
vasraza36531c2020-04-29 18:39:35 +010082 <dependency>
amohamad9ee60942020-06-26 12:40:11 -040083 <groupId>org.apache.logging.log4j</groupId>
84 <artifactId>log4j-core</artifactId>
85 <version>${log4j.version}</version>
vasraza36531c2020-04-29 18:39:35 +010086 <scope>compile</scope>
87 </dependency>
Yuli Shlosbergaf70a202018-09-25 17:16:48 +030088
89
vasraza36531c2020-04-29 18:39:35 +010090 </dependencies>
91 <build>
92 <finalName>WSSimulator-${project.version}</finalName>
93 <plugins>
94 <plugin>
95 <groupId>com.github.sylvainlaurent.maven</groupId>
96 <artifactId>yaml-json-validator-maven-plugin</artifactId>
97 <executions>
98 <execution>
99 <id>validate</id>
100 <phase>validate</phase>
101 <goals>
102 <goal>validate</goal>
103 </goals>
104 <configuration>
105 <validationSets>
106 <validationSet>
107 <includes>
108 <include>src/main/resources/**/*.y*ml</include>
109 <include>src/test/resources/**/*.y*ml</include>
110 </includes>
111 </validationSet>
112 <validationSet>
113 <includes>
114 <include>src/main/resources/**/*.json</include>
115 <include>src/test/resources/**/*.json</include>
116 </includes>
117 </validationSet>
118 </validationSets>
JulienBe6bd3d3a2020-06-24 15:35:23 +0200119 <skip>${skipYamlJsonValidator}</skip>
vasraza36531c2020-04-29 18:39:35 +0100120 </configuration>
121 </execution>
122 </executions>
123 </plugin>
124 </plugins>
125 </build>
126
127 <repositories>
128 <!-- LF repositories -->
129 <repository>
130 <id>ecomp-releases</id>
131 <name>Release Repository</name>
132 <url>${nexus.proxy}/content/repositories/releases/</url>
133 </repository>
134 <repository>
135 <id>ecomp-snapshots</id>
136 <name>Snapshots Repository</name>
137 <url>${nexus.proxy}/content/repositories/snapshots/</url>
138 </repository>
139 <repository>
140 <id>ecomp-public</id>
141 <name>Public Repository</name>
142 <url>${nexus.proxy}/content/repositories/public/</url>
143 </repository>
144 <!-- LF repositories END-->
145 </repositories>
146
147 <profiles>
148 <profile>
149 <id>docker</id>
150 <activation>
151 <activeByDefault>false</activeByDefault>
152 </activation>
153 <build>
154 <plugins>
155
156 <plugin>
157 <artifactId>maven-clean-plugin</artifactId>
158 <version>3.0.0</version>
159 <executions>
160 <execution>
161 <id>clean-static-files</id>
162 <phase>clean</phase>
163 <goals>
164 <goal>clean</goal>
165 </goals>
166 <configuration>
167 <filesets>
168 <fileset>
169 <directory>${project.basedir}/sdc-simulator</directory>
170 <includes>
171 <include>*.war</include>
172 </includes>
173 <followSymlinks>false</followSymlinks>
174 </fileset>
175 </filesets>
176 </configuration>
177 </execution>
178 </executions>
179 </plugin>
180
181 <plugin>
182 <artifactId>maven-resources-plugin</artifactId>
183 <executions>
184 <execution>
185 <id>copy-resources-simulator</id>
186 <phase>verify</phase>
187 <goals>
188 <goal>copy-resources</goal>
189 </goals>
190 <configuration>
191 <outputDirectory>${project.basedir}/sdc-simulator</outputDirectory>
192 <resources>
193 <resource>
194 <directory>${project.basedir}/target</directory>
195 <includes>
196 <include>WSSimulator*.war</include>
197 </includes>
198 </resource>
199 </resources>
200 </configuration>
201 </execution>
202 </executions>
203 </plugin>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300204
205
vasraza36531c2020-04-29 18:39:35 +0100206 <plugin>
207 <groupId>io.fabric8</groupId>
208 <artifactId>docker-maven-plugin</artifactId>
209 <configuration>
210 <apiVersion>1.23</apiVersion>
211 <registry>nexus3.onap.org:10001</registry>
212 <authConfig>
213 <pull>
214 <username>docker</username>
215 <password>docker</password>
216 </pull>
217 </authConfig>
218 <images>
219 <!-- Build simulator image -->
220 <image>
221 <name>onap/sdc-simulator</name>
222 <alias>sdc-simulator</alias>
223 <build>
224 <cleanup>try</cleanup>
225 <dockerFileDir>${basedir}${file.separator}sdc-simulator</dockerFileDir>
226 <tags>
227 <tag>${docker.tag}</tag>
228 <tag>
229 ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest
230 </tag>
231 </tags>
232 </build>
233 </image>
234 </images>
235 </configuration>
236 <executions>
237 <execution>
238 <id>clean-images</id>
239 <phase>pre-clean</phase>
240 <goals>
241 <goal>remove</goal>
242 </goals>
243 </execution>
244 <execution>
245 <id>generate-images</id>
246 <phase>install</phase>
247 <goals>
248 <goal>build</goal>
249 </goals>
250 </execution>
251 <execution>
252 <id>push-images</id>
253 <phase>deploy</phase>
254 <goals>
255 <goal>push</goal>
256 </goals>
257 </execution>
258 </executions>
259 </plugin>
260 </plugins>
261 </build>
262 </profile>
263 </profiles>
Michael Landoed64b5e2017-06-09 03:19:04 +0300264</project>