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>
16 <nexus.proxy>https://nexus.onap.org</nexus.proxy>
21 <groupId>junit</groupId>
22 <artifactId>junit</artifactId>
23 <version>4.12</version>
28 <groupId>javax.servlet</groupId>
29 <artifactId>servlet-api</artifactId>
30 <version>2.5</version>
31 <scope>compile</scope>
35 <groupId>commons-httpclient</groupId>
36 <artifactId>commons-httpclient</artifactId>
37 <version>3.1</version>
41 <groupId>commons-logging</groupId>
42 <artifactId>commons-logging-api</artifactId>
43 <version>1.0.4</version>
47 <groupId>commons-io</groupId>
48 <artifactId>commons-io</artifactId>
49 <version>2.4</version>
53 <groupId>commons-codec</groupId>
54 <artifactId>commons-codec</artifactId>
55 <version>1.9</version>
56 <scope>compile</scope>
60 <groupId>org.eclipse.jetty</groupId>
61 <artifactId>jetty-proxy</artifactId>
62 <version>9.2.10.v20150310</version>
63 <scope>compile</scope>
67 <groupId>org.eclipse.jetty</groupId>
68 <artifactId>jetty-servlets</artifactId>
69 <version>${jetty-version}</version>
70 <scope>compile</scope>
73 <!-- Proxy servlet -->
75 <groupId>com.typesafe</groupId>
76 <artifactId>config</artifactId>
77 <version>1.0.2</version>
78 <scope>compile</scope>
83 <finalName>WSSimulator</finalName>
85 <!-- ================================================== -->
86 <!-- Set the JDK compiler version. -->
87 <!-- ================================================== -->
89 <groupId>org.apache.maven.plugins</groupId>
90 <artifactId>maven-compiler-plugin</artifactId>
91 <version>2.5.1</version>
92 <inherited>true</inherited>
100 <groupId>org.eclipse.jetty</groupId>
101 <artifactId>jetty-maven-plugin</artifactId>
102 <version>${jetty-version}</version>
104 <contextPath>/</contextPath>
106 <contextPath>/</contextPath>
107 <webInfIncludeJarPattern>.*/.*jersey-[^/]\.jar$</webInfIncludeJarPattern>
109 <war>WSSimulator.war</war>
117 <!-- LF repositories -->
119 <id>ecomp-releases</id>
120 <name>Release Repository</name>
121 <url>${nexus.proxy}/content/repositories/releases/</url>
124 <id>ecomp-staging</id>
125 <name>Staging Repository</name>
126 <url>${nexus.proxy}/content/repositories/staging/</url>
129 <id>ecomp-snapshots</id>
130 <name>Snapshots Repository</name>
131 <url>${nexus.proxy}/content/repositories/snapshots/</url>
134 <id>ecomp-public</id>
135 <name>Public Repository</name>
136 <url>${nexus.proxy}/content/repositories/public/</url>
138 <!-- LF repositories END-->
143 <id>docker-staging</id>
145 <docker.tag>${project.version}-STAGING-${maven.build.timestamp}</docker.tag>
146 <docker.latest.tag>${project.version}-STAGING-latest</docker.latest.tag>
153 <activeByDefault>false</activeByDefault>
159 <artifactId>maven-resources-plugin</artifactId>
160 <version>3.0.2</version>
163 <id>copy-resources-simulator</id>
164 <phase>validate</phase>
166 <goal>copy-resources</goal>
169 <outputDirectory>${basedir}/sdc-simulator</outputDirectory>
172 <directory>${basedir}/target</directory>
174 <include>WSSimulator.war</include>
181 <id>copy-configurations-simulator</id>
182 <phase>validate</phase>
184 <goal>copy-resources</goal>
187 <outputDirectory>${basedir}/sdc-simulator/chef-repo/cookbooks/sdc-simulator/files/default</outputDirectory>
190 <directory>${basedir}/src/main/resources</directory>
192 <include>logback.xml</include>
204 <groupId>io.fabric8</groupId>
205 <artifactId>docker-maven-plugin</artifactId>
206 <version>0.19.1</version>
209 <verbose>true</verbose>
210 <apiVersion>1.23</apiVersion>
214 <!-- Build simulator image -->
216 <name>openecomp/sdc-simulator</name>
217 <alias>sdc-simulator</alias>
219 <cleanup>try</cleanup>
220 <dockerFileDir>${basedir}\sdc-simulator</dockerFileDir>
222 <tag>${docker.tag}</tag>
223 <tag>${docker.latest.tag}</tag>
224 <tag>1.1-STAGING-latest</tag>
232 <id>clean-images</id>
233 <phase>pre-clean</phase>
238 <removeAll>true</removeAll>
239 <image>openecomp/sdc-simulator</image>
244 <id>generate-images</id>
245 <phase>package</phase>
253 <phase>deploy</phase>
259 <image>openecomp/sdc-simulator</image>