blob: b9f541bd5f77e7850f2abbd262f5d52eb1464afe [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>
Michael Landod8a0dea2018-06-02 19:23:27 +030012 <version>1.3.0-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
40 <dependency>
41 <groupId>commons-httpclient</groupId>
42 <artifactId>commons-httpclient</artifactId>
43 <version>3.1</version>
44 </dependency>
45
46 <dependency>
47 <groupId>commons-logging</groupId>
48 <artifactId>commons-logging-api</artifactId>
49 <version>1.0.4</version>
50 </dependency>
51
52 <dependency>
53 <groupId>commons-io</groupId>
54 <artifactId>commons-io</artifactId>
55 <version>2.4</version>
56 </dependency>
57
58 <dependency>
59 <groupId>commons-codec</groupId>
60 <artifactId>commons-codec</artifactId>
Idan Amitc7f57ec2017-08-31 14:26:21 +030061 <version>1.9</version>
Michael Landoed64b5e2017-06-09 03:19:04 +030062 <scope>compile</scope>
63 </dependency>
64
65 <dependency>
66 <groupId>org.eclipse.jetty</groupId>
67 <artifactId>jetty-proxy</artifactId>
Michael Landod618ad62018-05-13 22:27:13 +030068 <version>${jetty.version}</version>
Michael Landoed64b5e2017-06-09 03:19:04 +030069 <scope>compile</scope>
70 </dependency>
71
72 <dependency>
73 <groupId>org.eclipse.jetty</groupId>
74 <artifactId>jetty-servlets</artifactId>
Michael Landod618ad62018-05-13 22:27:13 +030075 <version>${jetty.version}</version>
Michael Landoed64b5e2017-06-09 03:19:04 +030076 <scope>compile</scope>
77 </dependency>
78
79 <!-- Proxy servlet -->
80 <dependency>
81 <groupId>com.typesafe</groupId>
82 <artifactId>config</artifactId>
83 <version>1.0.2</version>
84 <scope>compile</scope>
85 </dependency>
86
87 </dependencies>
88 <build>
Michael Landoa1ceb602018-02-20 16:14:11 +020089 <finalName>WSSimulator-${project.version}</finalName>
dekstroza37843cb2018-05-18 14:42:24 +010090 <plugins>
91 <plugin>
92 <groupId>com.github.sylvainlaurent.maven</groupId>
93 <artifactId>yaml-json-validator-maven-plugin</artifactId>
94 <executions>
95 <execution>
96 <id>validate</id>
97 <phase>validate</phase>
98 <goals>
99 <goal>validate</goal>
100 </goals>
101 <configuration>
102 <validationSets>
103 <validationSet>
104 <includes>
105 <include>src/main/resources/**/*.y*ml</include>
106 <include>src/test/resources/**/*.y*ml</include>
107 </includes>
108 </validationSet>
109 <validationSet>
110 <includes>
111 <include>src/main/resources/**/*.json</include>
112 <include>src/test/resources/**/*.json</include>
113 </includes>
114 </validationSet>
115 </validationSets>
116 </configuration>
117 </execution>
118 </executions>
119 </plugin>
120 </plugins>
Michael Landoed64b5e2017-06-09 03:19:04 +0300121 </build>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300122
Idan Amitc7f57ec2017-08-31 14:26:21 +0300123 <repositories>
124 <!-- LF repositories -->
125 <repository>
126 <id>ecomp-releases</id>
127 <name>Release Repository</name>
128 <url>${nexus.proxy}/content/repositories/releases/</url>
129 </repository>
130 <repository>
Idan Amitc7f57ec2017-08-31 14:26:21 +0300131 <id>ecomp-snapshots</id>
132 <name>Snapshots Repository</name>
133 <url>${nexus.proxy}/content/repositories/snapshots/</url>
134 </repository>
135 <repository>
136 <id>ecomp-public</id>
137 <name>Public Repository</name>
138 <url>${nexus.proxy}/content/repositories/public/</url>
139 </repository>
140 <!-- LF repositories END-->
141 </repositories>
142
Tal Gitelmanfa222902017-08-16 13:44:31 +0300143 <profiles>
144 <profile>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300145 <id>docker</id>
146 <activation>
147 <activeByDefault>false</activeByDefault>
148 </activation>
149 <build>
150 <plugins>
151
152 <plugin>
Tal Gitelman62ae83d2018-01-25 15:28:44 +0200153 <artifactId>maven-clean-plugin</artifactId>
154 <version>3.0.0</version>
155 <executions>
156 <execution>
157 <id>clean-static-files</id>
158 <phase>clean</phase>
159 <goals>
160 <goal>clean</goal>
161 </goals>
162 <configuration>
163 <filesets>
164 <fileset>
165 <directory>${project.basedir}/sdc-simulator</directory>
166 <includes>
167 <include>*.war</include>
168 </includes>
169 <followSymlinks>false</followSymlinks>
170 </fileset>
171 <fileset>
172 <directory>${project.basedir}/sdc-simulator/chef-repo/cookbooks/sdc-simulator/files/default</directory>
173 <includes>logback.xml</includes>
174 <followSymlinks>false</followSymlinks>
175 </fileset>
176 </filesets>
177 </configuration>
178 </execution>
179 </executions>
180 </plugin>
181
182 <plugin>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300183 <artifactId>maven-resources-plugin</artifactId>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300184 <executions>
185 <execution>
186 <id>copy-resources-simulator</id>
Tal Gitelman62ae83d2018-01-25 15:28:44 +0200187 <phase>verify</phase>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300188 <goals>
189 <goal>copy-resources</goal>
190 </goals>
191 <configuration>
Tal Gitelman62ae83d2018-01-25 15:28:44 +0200192 <outputDirectory>${project.basedir}/sdc-simulator</outputDirectory>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300193 <resources>
194 <resource>
Tal Gitelman62ae83d2018-01-25 15:28:44 +0200195 <directory>${project.basedir}/target</directory>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300196 <includes>
Michael Landoa1ceb602018-02-20 16:14:11 +0200197 <include>WSSimulator*.war</include>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300198 </includes>
199 </resource>
200 </resources>
201 </configuration>
202 </execution>
203 <execution>
204 <id>copy-configurations-simulator</id>
Tal Gitelman62ae83d2018-01-25 15:28:44 +0200205 <phase>verify</phase>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300206 <goals>
207 <goal>copy-resources</goal>
208 </goals>
209 <configuration>
210 <outputDirectory>${basedir}/sdc-simulator/chef-repo/cookbooks/sdc-simulator/files/default</outputDirectory>
211 <resources>
212 <resource>
213 <directory>${basedir}/src/main/resources</directory>
214 <includes>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300215 <include>logback.xml</include>
216 </includes>
217 </resource>
218 </resources>
219 </configuration>
220 </execution>
221 </executions>
222 </plugin>
223
224
225
226 <plugin>
227 <groupId>io.fabric8</groupId>
228 <artifactId>docker-maven-plugin</artifactId>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300229 <configuration>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300230 <apiVersion>1.23</apiVersion>
Yuli Shlosberg44144952017-11-09 13:34:49 +0200231 <registry>nexus3.onap.org:10001</registry>
Michael Landoa5445102018-03-04 14:53:33 +0200232 <authConfig>
233 <pull>
234 <username>docker</username>
235 <password>docker</password>
236 </pull>
237 </authConfig>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300238 <images>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300239 <!-- Build simulator image -->
240 <image>
Michael Landoa5445102018-03-04 14:53:33 +0200241 <name>onap/sdc-simulator</name>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300242 <alias>sdc-simulator</alias>
243 <build>
244 <cleanup>try</cleanup>
Victor Moralesd5d88402018-02-02 08:41:42 -0800245 <dockerFileDir>${basedir}${file.separator}sdc-simulator</dockerFileDir>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300246 <tags>
247 <tag>${docker.tag}</tag>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200248 <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300249 </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>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300261 </execution>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300262 <execution>
263 <id>generate-images</id>
Tal Gitelman62ae83d2018-01-25 15:28:44 +0200264 <phase>install</phase>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300265 <goals>
266 <goal>build</goal>
267 </goals>
268 </execution>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300269 <execution>
Michael Landoa5445102018-03-04 14:53:33 +0200270 <id>push-images</id>
271 <phase>deploy</phase>
272 <goals>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300273 <goal>push</goal>
Michael Landoa5445102018-03-04 14:53:33 +0200274 </goals>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300275 </execution>
276 </executions>
277 </plugin>
278 </plugins>
279 </build>
280 </profile>
281 </profiles>
Michael Landoed64b5e2017-06-09 03:19:04 +0300282</project>