1 <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">
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>
11 <jetty-version>9.2.10.v20150310</jetty-version>
12 <docker.tag>${project.version}-${maven.build.timestamp}</docker.tag>
13 <docker.latest.tag>${project.version}-latest</docker.latest.tag>
15 <maven.build.timestamp.format>yyyyMMdd'T'HHmm</maven.build.timestamp.format>
20 <groupId>junit</groupId>
21 <artifactId>junit</artifactId>
22 <version>4.12</version>
27 <groupId>javax.servlet</groupId>
28 <artifactId>servlet-api</artifactId>
29 <version>2.5</version>
30 <scope>compile</scope>
34 <groupId>commons-httpclient</groupId>
35 <artifactId>commons-httpclient</artifactId>
36 <version>3.1</version>
40 <groupId>commons-logging</groupId>
41 <artifactId>commons-logging-api</artifactId>
42 <version>1.0.4</version>
46 <groupId>commons-io</groupId>
47 <artifactId>commons-io</artifactId>
48 <version>2.4</version>
52 <groupId>commons-codec</groupId>
53 <artifactId>commons-codec</artifactId>
54 <version>2.0-SNAPSHOT</version>
55 <scope>compile</scope>
59 <groupId>org.eclipse.jetty</groupId>
60 <artifactId>jetty-proxy</artifactId>
61 <version>9.2.10.v20150310</version>
62 <scope>compile</scope>
66 <groupId>org.eclipse.jetty</groupId>
67 <artifactId>jetty-servlets</artifactId>
68 <version>${jetty-version}</version>
69 <scope>compile</scope>
72 <!-- Proxy servlet -->
74 <groupId>com.typesafe</groupId>
75 <artifactId>config</artifactId>
76 <version>1.0.2</version>
77 <scope>compile</scope>
82 <finalName>WSSimulator</finalName>
84 <!-- ================================================== -->
85 <!-- Set the JDK compiler version. -->
86 <!-- ================================================== -->
88 <groupId>org.apache.maven.plugins</groupId>
89 <artifactId>maven-compiler-plugin</artifactId>
90 <version>2.5.1</version>
91 <inherited>true</inherited>
99 <groupId>org.eclipse.jetty</groupId>
100 <artifactId>jetty-maven-plugin</artifactId>
101 <version>${jetty-version}</version>
103 <contextPath>/</contextPath>
105 <contextPath>/</contextPath>
106 <webInfIncludeJarPattern>.*/.*jersey-[^/]\.jar$</webInfIncludeJarPattern>
108 <war>WSSimulator.war</war>
117 <id>docker-staging</id>
119 <docker.tag>${project.version}-STAGING-${maven.build.timestamp}</docker.tag>
120 <docker.latest.tag>${project.version}-STAGING-latest</docker.latest.tag>
127 <activeByDefault>false</activeByDefault>
133 <artifactId>maven-resources-plugin</artifactId>
134 <version>3.0.2</version>
137 <id>copy-resources-simulator</id>
138 <phase>validate</phase>
140 <goal>copy-resources</goal>
143 <outputDirectory>${basedir}/sdc-simulator</outputDirectory>
146 <directory>${basedir}/target</directory>
148 <include>WSSimulator.war</include>
155 <id>copy-configurations-simulator</id>
156 <phase>validate</phase>
158 <goal>copy-resources</goal>
161 <outputDirectory>${basedir}/sdc-simulator/chef-repo/cookbooks/sdc-simulator/files/default</outputDirectory>
164 <directory>${basedir}/src/main/resources</directory>
166 <include>logback.xml</include>
178 <groupId>io.fabric8</groupId>
179 <artifactId>docker-maven-plugin</artifactId>
180 <version>0.19.1</version>
183 <verbose>true</verbose>
184 <apiVersion>1.23</apiVersion>
188 <!-- Build simulator image -->
190 <name>openecomp/sdc-simulator</name>
191 <alias>sdc-simulator</alias>
193 <cleanup>try</cleanup>
194 <dockerFileDir>${basedir}\sdc-simulator</dockerFileDir>
196 <tag>${docker.tag}</tag>
197 <tag>${docker.latest.tag}</tag>
198 <tag>1.1-STAGING-latest</tag>
206 <id>clean-images</id>
207 <phase>pre-clean</phase>
212 <removeAll>true</removeAll>
213 <image>openecomp/sdc-simulator</image>
218 <id>generate-images</id>
219 <phase>package</phase>
227 <phase>deploy</phase>
233 <image>openecomp/sdc-simulator</image>