blob: 7f783badf0c2a4b640982c36895a72ebbc0e6155 [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>
12 <version>1.2.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>
Michael Landoed64b5e2017-06-09 03:19:04 +030090 <plugins>
91 <!-- ================================================== -->
92 <!-- Set the JDK compiler version. -->
93 <!-- ================================================== -->
94 <plugin>
95 <groupId>org.apache.maven.plugins</groupId>
96 <artifactId>maven-compiler-plugin</artifactId>
97 <version>2.5.1</version>
98 <inherited>true</inherited>
99 <configuration>
100 <source>1.8</source>
101 <target>1.8</target>
102 </configuration>
103 </plugin>
104
Michael Landoed64b5e2017-06-09 03:19:04 +0300105 </plugins>
106 </build>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300107
Idan Amitc7f57ec2017-08-31 14:26:21 +0300108 <repositories>
109 <!-- LF repositories -->
110 <repository>
111 <id>ecomp-releases</id>
112 <name>Release Repository</name>
113 <url>${nexus.proxy}/content/repositories/releases/</url>
114 </repository>
115 <repository>
Idan Amitc7f57ec2017-08-31 14:26:21 +0300116 <id>ecomp-snapshots</id>
117 <name>Snapshots Repository</name>
118 <url>${nexus.proxy}/content/repositories/snapshots/</url>
119 </repository>
120 <repository>
121 <id>ecomp-public</id>
122 <name>Public Repository</name>
123 <url>${nexus.proxy}/content/repositories/public/</url>
124 </repository>
125 <!-- LF repositories END-->
126 </repositories>
127
Tal Gitelmanfa222902017-08-16 13:44:31 +0300128 <profiles>
129 <profile>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300130 <id>docker</id>
131 <activation>
132 <activeByDefault>false</activeByDefault>
133 </activation>
134 <build>
135 <plugins>
136
137 <plugin>
Tal Gitelman62ae83d2018-01-25 15:28:44 +0200138 <artifactId>maven-clean-plugin</artifactId>
139 <version>3.0.0</version>
140 <executions>
141 <execution>
142 <id>clean-static-files</id>
143 <phase>clean</phase>
144 <goals>
145 <goal>clean</goal>
146 </goals>
147 <configuration>
148 <filesets>
149 <fileset>
150 <directory>${project.basedir}/sdc-simulator</directory>
151 <includes>
152 <include>*.war</include>
153 </includes>
154 <followSymlinks>false</followSymlinks>
155 </fileset>
156 <fileset>
157 <directory>${project.basedir}/sdc-simulator/chef-repo/cookbooks/sdc-simulator/files/default</directory>
158 <includes>logback.xml</includes>
159 <followSymlinks>false</followSymlinks>
160 </fileset>
161 </filesets>
162 </configuration>
163 </execution>
164 </executions>
165 </plugin>
166
167 <plugin>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300168 <artifactId>maven-resources-plugin</artifactId>
169 <version>3.0.2</version>
170 <executions>
171 <execution>
172 <id>copy-resources-simulator</id>
Tal Gitelman62ae83d2018-01-25 15:28:44 +0200173 <phase>verify</phase>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300174 <goals>
175 <goal>copy-resources</goal>
176 </goals>
177 <configuration>
Tal Gitelman62ae83d2018-01-25 15:28:44 +0200178 <outputDirectory>${project.basedir}/sdc-simulator</outputDirectory>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300179 <resources>
180 <resource>
Tal Gitelman62ae83d2018-01-25 15:28:44 +0200181 <directory>${project.basedir}/target</directory>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300182 <includes>
Michael Landoa1ceb602018-02-20 16:14:11 +0200183 <include>WSSimulator*.war</include>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300184 </includes>
185 </resource>
186 </resources>
187 </configuration>
188 </execution>
189 <execution>
190 <id>copy-configurations-simulator</id>
Tal Gitelman62ae83d2018-01-25 15:28:44 +0200191 <phase>verify</phase>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300192 <goals>
193 <goal>copy-resources</goal>
194 </goals>
195 <configuration>
196 <outputDirectory>${basedir}/sdc-simulator/chef-repo/cookbooks/sdc-simulator/files/default</outputDirectory>
197 <resources>
198 <resource>
199 <directory>${basedir}/src/main/resources</directory>
200 <includes>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300201 <include>logback.xml</include>
202 </includes>
203 </resource>
204 </resources>
205 </configuration>
206 </execution>
207 </executions>
208 </plugin>
209
210
211
212 <plugin>
213 <groupId>io.fabric8</groupId>
214 <artifactId>docker-maven-plugin</artifactId>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200215 <version>${fabric8.version}</version>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300216
217 <configuration>
218 <verbose>true</verbose>
219 <apiVersion>1.23</apiVersion>
Yuli Shlosberg44144952017-11-09 13:34:49 +0200220 <registry>nexus3.onap.org:10001</registry>
Michael Landoa5445102018-03-04 14:53:33 +0200221 <authConfig>
222 <pull>
223 <username>docker</username>
224 <password>docker</password>
225 </pull>
226 </authConfig>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300227 <images>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300228 <!-- Build simulator image -->
229 <image>
Michael Landoa5445102018-03-04 14:53:33 +0200230 <name>onap/sdc-simulator</name>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300231 <alias>sdc-simulator</alias>
232 <build>
233 <cleanup>try</cleanup>
Victor Moralesd5d88402018-02-02 08:41:42 -0800234 <dockerFileDir>${basedir}${file.separator}sdc-simulator</dockerFileDir>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300235 <tags>
236 <tag>${docker.tag}</tag>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200237 <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300238 </tags>
239 </build>
240 </image>
241 </images>
242 </configuration>
243 <executions>
244 <execution>
245 <id>clean-images</id>
246 <phase>pre-clean</phase>
247 <goals>
248 <goal>remove</goal>
249 </goals>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300250 </execution>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300251 <execution>
252 <id>generate-images</id>
Tal Gitelman62ae83d2018-01-25 15:28:44 +0200253 <phase>install</phase>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300254 <goals>
255 <goal>build</goal>
256 </goals>
257 </execution>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300258 <execution>
Michael Landoa5445102018-03-04 14:53:33 +0200259 <id>push-images</id>
260 <phase>deploy</phase>
261 <goals>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300262 <goal>push</goal>
Michael Landoa5445102018-03-04 14:53:33 +0200263 </goals>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300264 </execution>
265 </executions>
266 </plugin>
267 </plugins>
268 </build>
269 </profile>
270 </profiles>
Michael Landoed64b5e2017-06-09 03:19:04 +0300271</project>