blob: 7616ebd78a9d4770efc12fa2f2b30229b6906e6c [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>
ChrisCe407cea2020-10-30 16:44:46 +010013 <version>1.8.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>
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>
Michael Landoed64b5e2017-06-09 03:19:04 +030079
vasraza36531c2020-04-29 18:39:35 +010080 <dependency>
amohamad9ee60942020-06-26 12:40:11 -040081 <groupId>org.apache.logging.log4j</groupId>
82 <artifactId>log4j-core</artifactId>
83 <version>${log4j.version}</version>
vasraza36531c2020-04-29 18:39:35 +010084 <scope>compile</scope>
85 </dependency>
Yuli Shlosbergaf70a202018-09-25 17:16:48 +030086
87
vasraza36531c2020-04-29 18:39:35 +010088 </dependencies>
89 <build>
90 <finalName>WSSimulator-${project.version}</finalName>
91 <plugins>
92 <plugin>
93 <groupId>com.github.sylvainlaurent.maven</groupId>
94 <artifactId>yaml-json-validator-maven-plugin</artifactId>
95 <executions>
96 <execution>
97 <id>validate</id>
98 <phase>validate</phase>
99 <goals>
100 <goal>validate</goal>
101 </goals>
102 <configuration>
103 <validationSets>
104 <validationSet>
105 <includes>
106 <include>src/main/resources/**/*.y*ml</include>
107 <include>src/test/resources/**/*.y*ml</include>
108 </includes>
109 </validationSet>
110 <validationSet>
111 <includes>
112 <include>src/main/resources/**/*.json</include>
113 <include>src/test/resources/**/*.json</include>
114 </includes>
115 </validationSet>
116 </validationSets>
JulienBe6bd3d3a2020-06-24 15:35:23 +0200117 <skip>${skipYamlJsonValidator}</skip>
vasraza36531c2020-04-29 18:39:35 +0100118 </configuration>
119 </execution>
120 </executions>
121 </plugin>
122 </plugins>
123 </build>
124
125 <repositories>
126 <!-- LF repositories -->
127 <repository>
128 <id>ecomp-releases</id>
129 <name>Release Repository</name>
130 <url>${nexus.proxy}/content/repositories/releases/</url>
131 </repository>
132 <repository>
133 <id>ecomp-snapshots</id>
134 <name>Snapshots Repository</name>
135 <url>${nexus.proxy}/content/repositories/snapshots/</url>
136 </repository>
137 <repository>
138 <id>ecomp-public</id>
139 <name>Public Repository</name>
140 <url>${nexus.proxy}/content/repositories/public/</url>
141 </repository>
142 <!-- LF repositories END-->
143 </repositories>
144
145 <profiles>
146 <profile>
147 <id>docker</id>
148 <activation>
149 <activeByDefault>false</activeByDefault>
150 </activation>
151 <build>
152 <plugins>
153
154 <plugin>
155 <artifactId>maven-clean-plugin</artifactId>
156 <version>3.0.0</version>
157 <executions>
158 <execution>
159 <id>clean-static-files</id>
160 <phase>clean</phase>
161 <goals>
162 <goal>clean</goal>
163 </goals>
164 <configuration>
165 <filesets>
166 <fileset>
167 <directory>${project.basedir}/sdc-simulator</directory>
168 <includes>
169 <include>*.war</include>
170 </includes>
171 <followSymlinks>false</followSymlinks>
172 </fileset>
173 </filesets>
174 </configuration>
175 </execution>
176 </executions>
177 </plugin>
178
179 <plugin>
180 <artifactId>maven-resources-plugin</artifactId>
181 <executions>
182 <execution>
183 <id>copy-resources-simulator</id>
184 <phase>verify</phase>
185 <goals>
186 <goal>copy-resources</goal>
187 </goals>
188 <configuration>
189 <outputDirectory>${project.basedir}/sdc-simulator</outputDirectory>
190 <resources>
191 <resource>
192 <directory>${project.basedir}/target</directory>
193 <includes>
194 <include>WSSimulator*.war</include>
195 </includes>
196 </resource>
197 </resources>
198 </configuration>
199 </execution>
200 </executions>
201 </plugin>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300202
203
vasraza36531c2020-04-29 18:39:35 +0100204 <plugin>
205 <groupId>io.fabric8</groupId>
206 <artifactId>docker-maven-plugin</artifactId>
207 <configuration>
sebdet591810d2020-09-17 15:07:23 +0200208 <apiVersion>${docker.api.version}</apiVersion>
vasraza36531c2020-04-29 18:39:35 +0100209 <registry>nexus3.onap.org:10001</registry>
210 <authConfig>
211 <pull>
212 <username>docker</username>
213 <password>docker</password>
214 </pull>
215 </authConfig>
216 <images>
217 <!-- Build simulator image -->
218 <image>
219 <name>onap/sdc-simulator</name>
220 <alias>sdc-simulator</alias>
221 <build>
222 <cleanup>try</cleanup>
223 <dockerFileDir>${basedir}${file.separator}sdc-simulator</dockerFileDir>
224 <tags>
sebdetb988cb62020-09-25 15:48:10 +0200225 <tag>latest</tag>
vasraza36531c2020-04-29 18:39:35 +0100226 <tag>
227 ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest
228 </tag>
sebdetb988cb62020-09-25 15:48:10 +0200229 <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-${maven.build.timestamp}</tag>
vasraza36531c2020-04-29 18:39:35 +0100230 </tags>
231 </build>
232 </image>
233 </images>
234 </configuration>
235 <executions>
236 <execution>
237 <id>clean-images</id>
238 <phase>pre-clean</phase>
239 <goals>
240 <goal>remove</goal>
241 </goals>
242 </execution>
243 <execution>
244 <id>generate-images</id>
245 <phase>install</phase>
246 <goals>
247 <goal>build</goal>
248 </goals>
249 </execution>
250 <execution>
251 <id>push-images</id>
252 <phase>deploy</phase>
253 <goals>
254 <goal>push</goal>
255 </goals>
256 </execution>
257 </executions>
258 </plugin>
259 </plugins>
260 </build>
261 </profile>
262 </profiles>
Michael Landoed64b5e2017-06-09 03:19:04 +0300263</project>