blob: fb1246d3f2b8b7c34e69e1e5e732b768f3fbf9c0 [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
4 <modelVersion>4.0.0</modelVersion>
5 <groupId>org.openecomp.sdc</groupId>
6 <artifactId>webseal-simulator</artifactId>
7 <packaging>war</packaging>
Michael Landoa1ceb602018-02-20 16:14:11 +02008 <version>0.1.0-SNAPSHOT</version>
Michael Landoed64b5e2017-06-09 03:19:04 +03009
10 <properties>
11 <jetty-version>9.2.10.v20150310</jetty-version>
Tal Gitelmanfa222902017-08-16 13:44:31 +030012 <maven.build.timestamp.format>yyyyMMdd'T'HHmm</maven.build.timestamp.format>
Idan Amitc7f57ec2017-08-31 14:26:21 +030013 <nexus.proxy>https://nexus.onap.org</nexus.proxy>
Tal Gitelman51d50f02017-12-10 18:55:03 +020014 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Tal Gitelman62ae83d2018-01-25 15:28:44 +020015 <docker.tag>${project.version}-${maven.build.timestamp}</docker.tag>
16 <docker.latest.tag>${project.version}-latest</docker.latest.tag>
Michael Landoed64b5e2017-06-09 03:19:04 +030017 </properties>
18
19 <dependencies>
20 <dependency>
21 <groupId>junit</groupId>
22 <artifactId>junit</artifactId>
23 <version>4.12</version>
24 <scope>test</scope>
25 </dependency>
26
27 <dependency>
28 <groupId>javax.servlet</groupId>
29 <artifactId>servlet-api</artifactId>
30 <version>2.5</version>
31 <scope>compile</scope>
32 </dependency>
33
34 <dependency>
35 <groupId>commons-httpclient</groupId>
36 <artifactId>commons-httpclient</artifactId>
37 <version>3.1</version>
38 </dependency>
39
40 <dependency>
41 <groupId>commons-logging</groupId>
42 <artifactId>commons-logging-api</artifactId>
43 <version>1.0.4</version>
44 </dependency>
45
46 <dependency>
47 <groupId>commons-io</groupId>
48 <artifactId>commons-io</artifactId>
49 <version>2.4</version>
50 </dependency>
51
52 <dependency>
53 <groupId>commons-codec</groupId>
54 <artifactId>commons-codec</artifactId>
Idan Amitc7f57ec2017-08-31 14:26:21 +030055 <version>1.9</version>
Michael Landoed64b5e2017-06-09 03:19:04 +030056 <scope>compile</scope>
57 </dependency>
58
59 <dependency>
60 <groupId>org.eclipse.jetty</groupId>
61 <artifactId>jetty-proxy</artifactId>
62 <version>9.2.10.v20150310</version>
63 <scope>compile</scope>
64 </dependency>
65
66 <dependency>
67 <groupId>org.eclipse.jetty</groupId>
68 <artifactId>jetty-servlets</artifactId>
69 <version>${jetty-version}</version>
70 <scope>compile</scope>
71 </dependency>
72
73 <!-- Proxy servlet -->
74 <dependency>
75 <groupId>com.typesafe</groupId>
76 <artifactId>config</artifactId>
77 <version>1.0.2</version>
78 <scope>compile</scope>
79 </dependency>
80
81 </dependencies>
82 <build>
Michael Landoa1ceb602018-02-20 16:14:11 +020083 <finalName>WSSimulator-${project.version}</finalName>
Michael Landoed64b5e2017-06-09 03:19:04 +030084 <plugins>
85 <!-- ================================================== -->
86 <!-- Set the JDK compiler version. -->
87 <!-- ================================================== -->
88 <plugin>
89 <groupId>org.apache.maven.plugins</groupId>
90 <artifactId>maven-compiler-plugin</artifactId>
91 <version>2.5.1</version>
92 <inherited>true</inherited>
93 <configuration>
94 <source>1.8</source>
95 <target>1.8</target>
96 </configuration>
97 </plugin>
98
Michael Landoed64b5e2017-06-09 03:19:04 +030099 </plugins>
100 </build>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300101
Idan Amitc7f57ec2017-08-31 14:26:21 +0300102 <repositories>
103 <!-- LF repositories -->
104 <repository>
105 <id>ecomp-releases</id>
106 <name>Release Repository</name>
107 <url>${nexus.proxy}/content/repositories/releases/</url>
108 </repository>
109 <repository>
Idan Amitc7f57ec2017-08-31 14:26:21 +0300110 <id>ecomp-snapshots</id>
111 <name>Snapshots Repository</name>
112 <url>${nexus.proxy}/content/repositories/snapshots/</url>
113 </repository>
114 <repository>
115 <id>ecomp-public</id>
116 <name>Public Repository</name>
117 <url>${nexus.proxy}/content/repositories/public/</url>
118 </repository>
119 <!-- LF repositories END-->
120 </repositories>
121
Tal Gitelmanfa222902017-08-16 13:44:31 +0300122 <profiles>
123 <profile>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300124 <id>docker</id>
125 <activation>
126 <activeByDefault>false</activeByDefault>
127 </activation>
128 <build>
129 <plugins>
130
131 <plugin>
Tal Gitelman62ae83d2018-01-25 15:28:44 +0200132 <artifactId>maven-clean-plugin</artifactId>
133 <version>3.0.0</version>
134 <executions>
135 <execution>
136 <id>clean-static-files</id>
137 <phase>clean</phase>
138 <goals>
139 <goal>clean</goal>
140 </goals>
141 <configuration>
142 <filesets>
143 <fileset>
144 <directory>${project.basedir}/sdc-simulator</directory>
145 <includes>
146 <include>*.war</include>
147 </includes>
148 <followSymlinks>false</followSymlinks>
149 </fileset>
150 <fileset>
151 <directory>${project.basedir}/sdc-simulator/chef-repo/cookbooks/sdc-simulator/files/default</directory>
152 <includes>logback.xml</includes>
153 <followSymlinks>false</followSymlinks>
154 </fileset>
155 </filesets>
156 </configuration>
157 </execution>
158 </executions>
159 </plugin>
160
161 <plugin>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300162 <artifactId>maven-resources-plugin</artifactId>
163 <version>3.0.2</version>
164 <executions>
165 <execution>
166 <id>copy-resources-simulator</id>
Tal Gitelman62ae83d2018-01-25 15:28:44 +0200167 <phase>verify</phase>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300168 <goals>
169 <goal>copy-resources</goal>
170 </goals>
171 <configuration>
Tal Gitelman62ae83d2018-01-25 15:28:44 +0200172 <outputDirectory>${project.basedir}/sdc-simulator</outputDirectory>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300173 <resources>
174 <resource>
Tal Gitelman62ae83d2018-01-25 15:28:44 +0200175 <directory>${project.basedir}/target</directory>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300176 <includes>
Michael Landoa1ceb602018-02-20 16:14:11 +0200177 <include>WSSimulator*.war</include>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300178 </includes>
179 </resource>
180 </resources>
181 </configuration>
182 </execution>
183 <execution>
184 <id>copy-configurations-simulator</id>
Tal Gitelman62ae83d2018-01-25 15:28:44 +0200185 <phase>verify</phase>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300186 <goals>
187 <goal>copy-resources</goal>
188 </goals>
189 <configuration>
190 <outputDirectory>${basedir}/sdc-simulator/chef-repo/cookbooks/sdc-simulator/files/default</outputDirectory>
191 <resources>
192 <resource>
193 <directory>${basedir}/src/main/resources</directory>
194 <includes>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300195 <include>logback.xml</include>
196 </includes>
197 </resource>
198 </resources>
199 </configuration>
200 </execution>
201 </executions>
202 </plugin>
203
204
205
206 <plugin>
207 <groupId>io.fabric8</groupId>
208 <artifactId>docker-maven-plugin</artifactId>
Michael Landoa1ceb602018-02-20 16:14:11 +0200209 <version>0.24.0</version>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300210
211 <configuration>
212 <verbose>true</verbose>
213 <apiVersion>1.23</apiVersion>
Yuli Shlosberg44144952017-11-09 13:34:49 +0200214 <registry>nexus3.onap.org:10001</registry>
Michael Landoa5445102018-03-04 14:53:33 +0200215 <authConfig>
216 <pull>
217 <username>docker</username>
218 <password>docker</password>
219 </pull>
220 </authConfig>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300221 <images>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300222 <!-- Build simulator image -->
223 <image>
Michael Landoa5445102018-03-04 14:53:33 +0200224 <name>onap/sdc-simulator</name>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300225 <alias>sdc-simulator</alias>
226 <build>
227 <cleanup>try</cleanup>
Michael Landoa1ceb602018-02-20 16:14:11 +0200228 <dockerFileDir>${basedir}/sdc-simulator</dockerFileDir>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300229 <tags>
230 <tag>${docker.tag}</tag>
231 <tag>${docker.latest.tag}</tag>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300232 </tags>
233 </build>
234 </image>
235 </images>
236 </configuration>
237 <executions>
238 <execution>
239 <id>clean-images</id>
240 <phase>pre-clean</phase>
241 <goals>
242 <goal>remove</goal>
243 </goals>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300244 </execution>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300245 <execution>
246 <id>generate-images</id>
Tal Gitelman62ae83d2018-01-25 15:28:44 +0200247 <phase>install</phase>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300248 <goals>
249 <goal>build</goal>
250 </goals>
251 </execution>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300252 <execution>
Michael Landoa5445102018-03-04 14:53:33 +0200253 <id>push-images</id>
254 <phase>deploy</phase>
255 <goals>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300256 <goal>push</goal>
Michael Landoa5445102018-03-04 14:53:33 +0200257 </goals>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300258 </execution>
259 </executions>
260 </plugin>
261 </plugins>
262 </build>
263 </profile>
264 </profiles>
Michael Landoed64b5e2017-06-09 03:19:04 +0300265</project>