blob: ea620f684463af85e35ff4f7cd5f0938c4e0d10f [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>
8 <version>0.0.1-SNAPSHOT</version>
9
10 <properties>
11 <jetty-version>9.2.10.v20150310</jetty-version>
Tal Gitelmanfa222902017-08-16 13:44:31 +030012 <docker.tag>${project.version}-${maven.build.timestamp}</docker.tag>
13 <docker.latest.tag>${project.version}-latest</docker.latest.tag>
14 <!--maven-->
15 <maven.build.timestamp.format>yyyyMMdd'T'HHmm</maven.build.timestamp.format>
Idan Amitc7f57ec2017-08-31 14:26:21 +030016 <nexus.proxy>https://nexus.onap.org</nexus.proxy>
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>
83 <finalName>WSSimulator</finalName>
84 <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
99 <plugin>
100 <groupId>org.eclipse.jetty</groupId>
101 <artifactId>jetty-maven-plugin</artifactId>
102 <version>${jetty-version}</version>
103 <configuration>
104 <contextPath>/</contextPath>
105 <webApp>
106 <contextPath>/</contextPath>
107 <webInfIncludeJarPattern>.*/.*jersey-[^/]\.jar$</webInfIncludeJarPattern>
108 </webApp>
109 <war>WSSimulator.war</war>
110 </configuration>
111 </plugin>
112
113 </plugins>
114 </build>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300115
Idan Amitc7f57ec2017-08-31 14:26:21 +0300116 <repositories>
117 <!-- LF repositories -->
118 <repository>
119 <id>ecomp-releases</id>
120 <name>Release Repository</name>
121 <url>${nexus.proxy}/content/repositories/releases/</url>
122 </repository>
123 <repository>
124 <id>ecomp-staging</id>
125 <name>Staging Repository</name>
126 <url>${nexus.proxy}/content/repositories/staging/</url>
127 </repository>
128 <repository>
129 <id>ecomp-snapshots</id>
130 <name>Snapshots Repository</name>
131 <url>${nexus.proxy}/content/repositories/snapshots/</url>
132 </repository>
133 <repository>
134 <id>ecomp-public</id>
135 <name>Public Repository</name>
136 <url>${nexus.proxy}/content/repositories/public/</url>
137 </repository>
138 <!-- LF repositories END-->
139 </repositories>
140
Tal Gitelmanfa222902017-08-16 13:44:31 +0300141 <profiles>
142 <profile>
143 <id>docker-staging</id>
144 <properties>
145 <docker.tag>${project.version}-STAGING-${maven.build.timestamp}</docker.tag>
146 <docker.latest.tag>${project.version}-STAGING-latest</docker.latest.tag>
147 </properties>
148 </profile>
149
150 <profile>
151 <id>docker</id>
152 <activation>
153 <activeByDefault>false</activeByDefault>
154 </activation>
155 <build>
156 <plugins>
157
158 <plugin>
159 <artifactId>maven-resources-plugin</artifactId>
160 <version>3.0.2</version>
161 <executions>
162 <execution>
163 <id>copy-resources-simulator</id>
164 <phase>validate</phase>
165 <goals>
166 <goal>copy-resources</goal>
167 </goals>
168 <configuration>
169 <outputDirectory>${basedir}/sdc-simulator</outputDirectory>
170 <resources>
171 <resource>
172 <directory>${basedir}/target</directory>
173 <includes>
174 <include>WSSimulator.war</include>
175 </includes>
176 </resource>
177 </resources>
178 </configuration>
179 </execution>
180 <execution>
181 <id>copy-configurations-simulator</id>
182 <phase>validate</phase>
183 <goals>
184 <goal>copy-resources</goal>
185 </goals>
186 <configuration>
187 <outputDirectory>${basedir}/sdc-simulator/chef-repo/cookbooks/sdc-simulator/files/default</outputDirectory>
188 <resources>
189 <resource>
190 <directory>${basedir}/src/main/resources</directory>
191 <includes>
Tal Gitelmanfa222902017-08-16 13:44:31 +0300192 <include>logback.xml</include>
193 </includes>
194 </resource>
195 </resources>
196 </configuration>
197 </execution>
198 </executions>
199 </plugin>
200
201
202
203 <plugin>
204 <groupId>io.fabric8</groupId>
205 <artifactId>docker-maven-plugin</artifactId>
206 <version>0.19.1</version>
207
208 <configuration>
209 <verbose>true</verbose>
210 <apiVersion>1.23</apiVersion>
211
212 <images>
213
214 <!-- Build simulator image -->
215 <image>
216 <name>openecomp/sdc-simulator</name>
217 <alias>sdc-simulator</alias>
218 <build>
219 <cleanup>try</cleanup>
220 <dockerFileDir>${basedir}\sdc-simulator</dockerFileDir>
221 <tags>
222 <tag>${docker.tag}</tag>
223 <tag>${docker.latest.tag}</tag>
224 <tag>1.1-STAGING-latest</tag>
225 </tags>
226 </build>
227 </image>
228 </images>
229 </configuration>
230 <executions>
231 <execution>
232 <id>clean-images</id>
233 <phase>pre-clean</phase>
234 <goals>
235 <goal>remove</goal>
236 </goals>
237 <configuration>
238 <removeAll>true</removeAll>
239 <image>openecomp/sdc-simulator</image>
240 </configuration>
241 </execution>
242
243 <execution>
244 <id>generate-images</id>
245 <phase>package</phase>
246 <goals>
247 <goal>build</goal>
248 </goals>
249 </execution>
250
251 <execution>
252 <id>push-images</id>
253 <phase>deploy</phase>
254 <goals>
255 <goal>build</goal>
256 <goal>push</goal>
257 </goals>
258 <configuration>
259 <image>openecomp/sdc-simulator</image>
260 </configuration>
261 </execution>
262 </executions>
263 </plugin>
264 </plugins>
265 </build>
266 </profile>
267 </profiles>
Michael Landoed64b5e2017-06-09 03:19:04 +0300268</project>