blob: 6f405cbda25e9c1c9effc638b30b745a4617544a [file] [log] [blame]
Michael Landoed64b5e2017-06-09 03:19:04 +03001<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
3
Yuli Shlosbergf59a2252018-03-21 11:14:08 +02004
Michael Landoed64b5e2017-06-09 03:19:04 +03005 <modelVersion>4.0.0</modelVersion>
Michael Landoed64b5e2017-06-09 03:19:04 +03006 <artifactId>webseal-simulator</artifactId>
7 <packaging>war</packaging>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +02008
9 <parent>
10 <groupId>org.openecomp.sdc</groupId>
11 <artifactId>sdc-main</artifactId>
Ofir Sonsino610ff242019-07-28 15:44:36 +030012 <version>1.5.1-SNAPSHOT</version>
Yuli Shlosberg17889832018-04-08 14:03:29 +030013 <relativePath>../../</relativePath>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +020014 </parent>
Michael Landoed64b5e2017-06-09 03:19:04 +030015
16 <properties>
Jessica Wagantall0463fd22018-04-04 18:26:23 -070017 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
Idan Amitc7f57ec2017-08-31 14:26:21 +030018 <nexus.proxy>https://nexus.onap.org</nexus.proxy>
Tal Gitelman51d50f02017-12-10 18:55:03 +020019 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Tal Gitelman62ae83d2018-01-25 15:28:44 +020020 <docker.tag>${project.version}-${maven.build.timestamp}</docker.tag>
21 <docker.latest.tag>${project.version}-latest</docker.latest.tag>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +020022 <sonar.skip>true</sonar.skip>
Michael Landoed64b5e2017-06-09 03:19:04 +030023 </properties>
24
25 <dependencies>
26 <dependency>
27 <groupId>junit</groupId>
28 <artifactId>junit</artifactId>
29 <version>4.12</version>
30 <scope>test</scope>
31 </dependency>
32
33 <dependency>
34 <groupId>javax.servlet</groupId>
35 <artifactId>servlet-api</artifactId>
36 <version>2.5</version>
37 <scope>compile</scope>
38 </dependency>
39
Yuli Shlosbergaf70a202018-09-25 17:16:48 +030040 <!--<dependency>-->
41 <!--<groupId>commons-httpclient</groupId>-->
42 <!--<artifactId>commons-httpclient</artifactId>-->
43 <!--<version>3.1</version>-->
44 <!--</dependency>-->
Michael Landoed64b5e2017-06-09 03:19:04 +030045 <dependency>
Yuli Shlosbergaf70a202018-09-25 17:16:48 +030046 <groupId>org.apache.httpcomponents</groupId>
47 <artifactId>httpclient</artifactId>
Yuli Shlosberged933de2018-10-10 17:01:01 +030048 <version>4.5.3</version>
Michael Landoed64b5e2017-06-09 03:19:04 +030049 </dependency>
50
Yuli Shlosbergaf70a202018-09-25 17:16:48 +030051
Michael Landoed64b5e2017-06-09 03:19:04 +030052 <dependency>
53 <groupId>commons-logging</groupId>
54 <artifactId>commons-logging-api</artifactId>
55 <version>1.0.4</version>
56 </dependency>
57
58 <dependency>
59 <groupId>commons-io</groupId>
60 <artifactId>commons-io</artifactId>
61 <version>2.4</version>
62 </dependency>
63
64 <dependency>
65 <groupId>commons-codec</groupId>
66 <artifactId>commons-codec</artifactId>
Idan Amitc7f57ec2017-08-31 14:26:21 +030067 <version>1.9</version>
Michael Landoed64b5e2017-06-09 03:19:04 +030068 <scope>compile</scope>
69 </dependency>
70
71 <dependency>
72 <groupId>org.eclipse.jetty</groupId>
73 <artifactId>jetty-proxy</artifactId>
Michael Landod618ad62018-05-13 22:27:13 +030074 <version>${jetty.version}</version>
Michael Landoed64b5e2017-06-09 03:19:04 +030075 <scope>compile</scope>
76 </dependency>
77
78 <dependency>
79 <groupId>org.eclipse.jetty</groupId>
80 <artifactId>jetty-servlets</artifactId>
Michael Landod618ad62018-05-13 22:27:13 +030081 <version>${jetty.version}</version>
Michael Landoed64b5e2017-06-09 03:19:04 +030082 <scope>compile</scope>
83 </dependency>
84
85 <!-- Proxy servlet -->
86 <dependency>
87 <groupId>com.typesafe</groupId>
88 <artifactId>config</artifactId>
89 <version>1.0.2</version>
90 <scope>compile</scope>
91 </dependency>
92
Yuli Shlosbergaf70a202018-09-25 17:16:48 +030093 <dependency>
94 <groupId>log4j</groupId>
95 <artifactId>log4j</artifactId>
96 <version>1.2.17</version>
97 <scope>compile</scope>
98 </dependency>
99
100
Michael Landoed64b5e2017-06-09 03:19:04 +0300101 </dependencies>
102 <build>
Michael Landoa1ceb602018-02-20 16:14:11 +0200103 <finalName>WSSimulator-${project.version}</finalName>
dekstroza37843cb2018-05-18 14:42:24 +0100104 <plugins>
105 <plugin>
106 <groupId>com.github.sylvainlaurent.maven</groupId>
107 <artifactId>yaml-json-validator-maven-plugin</artifactId>
108 <executions>
109 <execution>
110 <id>validate</id>
111 <phase>validate</phase>
112 <goals>
113 <goal>validate</goal>
114 </goals>
115 <configuration>
116 <validationSets>
117 <validationSet>
118 <includes>
119 <include>src/main/resources/**/*.y*ml</include>
120 <include>src/test/resources/**/*.y*ml</include>
121 </includes>
122 </validationSet>
123 <validationSet>
124 <includes>
125 <include>src/main/resources/**/*.json</include>
126 <include>src/test/resources/**/*.json</include>
127 </includes>
128 </validationSet>
129 </validationSets>
130 </configuration>
131 </execution>
132 </executions>
133 </plugin>
134 </plugins>
Michael Landoed64b5e2017-06-09 03:19:04 +0300135 </build>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300136
Idan Amitc7f57ec2017-08-31 14:26:21 +0300137 <repositories>
138 <!-- LF repositories -->
139 <repository>
140 <id>ecomp-releases</id>
141 <name>Release Repository</name>
142 <url>${nexus.proxy}/content/repositories/releases/</url>
143 </repository>
144 <repository>
Idan Amitc7f57ec2017-08-31 14:26:21 +0300145 <id>ecomp-snapshots</id>
146 <name>Snapshots Repository</name>
147 <url>${nexus.proxy}/content/repositories/snapshots/</url>
148 </repository>
149 <repository>
150 <id>ecomp-public</id>
151 <name>Public Repository</name>
152 <url>${nexus.proxy}/content/repositories/public/</url>
153 </repository>
154 <!-- LF repositories END-->
155 </repositories>
156
Tal Gitelmanfa222902017-08-16 13:44:31 +0300157 <profiles>
158 <profile>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300159 <id>docker</id>
160 <activation>
161 <activeByDefault>false</activeByDefault>
162 </activation>
163 <build>
164 <plugins>
165
166 <plugin>
Tal Gitelman62ae83d2018-01-25 15:28:44 +0200167 <artifactId>maven-clean-plugin</artifactId>
168 <version>3.0.0</version>
169 <executions>
170 <execution>
171 <id>clean-static-files</id>
172 <phase>clean</phase>
173 <goals>
174 <goal>clean</goal>
175 </goals>
176 <configuration>
177 <filesets>
178 <fileset>
179 <directory>${project.basedir}/sdc-simulator</directory>
180 <includes>
181 <include>*.war</include>
182 </includes>
183 <followSymlinks>false</followSymlinks>
184 </fileset>
Tal Gitelman62ae83d2018-01-25 15:28:44 +0200185 </filesets>
186 </configuration>
187 </execution>
188 </executions>
189 </plugin>
190
191 <plugin>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300192 <artifactId>maven-resources-plugin</artifactId>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300193 <executions>
194 <execution>
195 <id>copy-resources-simulator</id>
Tal Gitelman62ae83d2018-01-25 15:28:44 +0200196 <phase>verify</phase>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300197 <goals>
198 <goal>copy-resources</goal>
199 </goals>
200 <configuration>
Tal Gitelman62ae83d2018-01-25 15:28:44 +0200201 <outputDirectory>${project.basedir}/sdc-simulator</outputDirectory>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300202 <resources>
203 <resource>
Tal Gitelman62ae83d2018-01-25 15:28:44 +0200204 <directory>${project.basedir}/target</directory>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300205 <includes>
Michael Landoa1ceb602018-02-20 16:14:11 +0200206 <include>WSSimulator*.war</include>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300207 </includes>
208 </resource>
209 </resources>
210 </configuration>
211 </execution>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300212 </executions>
213 </plugin>
214
215
216
217 <plugin>
218 <groupId>io.fabric8</groupId>
219 <artifactId>docker-maven-plugin</artifactId>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300220 <configuration>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300221 <apiVersion>1.23</apiVersion>
Yuli Shlosberg44144952017-11-09 13:34:49 +0200222 <registry>nexus3.onap.org:10001</registry>
Michael Landoa5445102018-03-04 14:53:33 +0200223 <authConfig>
224 <pull>
225 <username>docker</username>
226 <password>docker</password>
227 </pull>
228 </authConfig>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300229 <images>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300230 <!-- Build simulator image -->
231 <image>
Michael Landoa5445102018-03-04 14:53:33 +0200232 <name>onap/sdc-simulator</name>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300233 <alias>sdc-simulator</alias>
234 <build>
235 <cleanup>try</cleanup>
Victor Moralesd5d88402018-02-02 08:41:42 -0800236 <dockerFileDir>${basedir}${file.separator}sdc-simulator</dockerFileDir>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300237 <tags>
238 <tag>${docker.tag}</tag>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200239 <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300240 </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>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300252 </execution>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300253 <execution>
254 <id>generate-images</id>
Tal Gitelman62ae83d2018-01-25 15:28:44 +0200255 <phase>install</phase>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300256 <goals>
257 <goal>build</goal>
258 </goals>
259 </execution>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300260 <execution>
Michael Landoa5445102018-03-04 14:53:33 +0200261 <id>push-images</id>
262 <phase>deploy</phase>
263 <goals>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300264 <goal>push</goal>
Michael Landoa5445102018-03-04 14:53:33 +0200265 </goals>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300266 </execution>
267 </executions>
268 </plugin>
269 </plugins>
270 </build>
271 </profile>
272 </profiles>
Michael Landoed64b5e2017-06-09 03:19:04 +0300273</project>