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>
17 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
18 <docker.tag>${project.version}-${maven.build.timestamp}</docker.tag>
19 <docker.latest.tag>${project.version}-latest</docker.latest.tag>
24 <groupId>junit</groupId>
25 <artifactId>junit</artifactId>
26 <version>4.12</version>
31 <groupId>javax.servlet</groupId>
32 <artifactId>servlet-api</artifactId>
33 <version>2.5</version>
34 <scope>compile</scope>
38 <groupId>commons-httpclient</groupId>
39 <artifactId>commons-httpclient</artifactId>
40 <version>3.1</version>
44 <groupId>commons-logging</groupId>
45 <artifactId>commons-logging-api</artifactId>
46 <version>1.0.4</version>
50 <groupId>commons-io</groupId>
51 <artifactId>commons-io</artifactId>
52 <version>2.4</version>
56 <groupId>commons-codec</groupId>
57 <artifactId>commons-codec</artifactId>
58 <version>1.9</version>
59 <scope>compile</scope>
63 <groupId>org.eclipse.jetty</groupId>
64 <artifactId>jetty-proxy</artifactId>
65 <version>9.2.10.v20150310</version>
66 <scope>compile</scope>
70 <groupId>org.eclipse.jetty</groupId>
71 <artifactId>jetty-servlets</artifactId>
72 <version>${jetty-version}</version>
73 <scope>compile</scope>
76 <!-- Proxy servlet -->
78 <groupId>com.typesafe</groupId>
79 <artifactId>config</artifactId>
80 <version>1.0.2</version>
81 <scope>compile</scope>
86 <finalName>WSSimulator</finalName>
88 <!-- ================================================== -->
89 <!-- Set the JDK compiler version. -->
90 <!-- ================================================== -->
92 <groupId>org.apache.maven.plugins</groupId>
93 <artifactId>maven-compiler-plugin</artifactId>
94 <version>2.5.1</version>
95 <inherited>true</inherited>
103 <groupId>org.eclipse.jetty</groupId>
104 <artifactId>jetty-maven-plugin</artifactId>
105 <version>${jetty-version}</version>
107 <contextPath>/</contextPath>
109 <contextPath>/</contextPath>
110 <webInfIncludeJarPattern>.*/.*jersey-[^/]\.jar$</webInfIncludeJarPattern>
112 <war>WSSimulator.war</war>
120 <!-- LF repositories -->
122 <id>ecomp-releases</id>
123 <name>Release Repository</name>
124 <url>${nexus.proxy}/content/repositories/releases/</url>
127 <id>ecomp-staging</id>
128 <name>Staging Repository</name>
129 <url>${nexus.proxy}/content/repositories/staging/</url>
132 <id>ecomp-snapshots</id>
133 <name>Snapshots Repository</name>
134 <url>${nexus.proxy}/content/repositories/snapshots/</url>
137 <id>ecomp-public</id>
138 <name>Public Repository</name>
139 <url>${nexus.proxy}/content/repositories/public/</url>
141 <!-- LF repositories END-->
146 <id>docker-staging</id>
148 <docker.tag>${project.version}-STAGING-${maven.build.timestamp}</docker.tag>
149 <docker.latest.tag>${project.version}-STAGING-latest</docker.latest.tag>
156 <activeByDefault>false</activeByDefault>
162 <artifactId>maven-clean-plugin</artifactId>
163 <version>3.0.0</version>
166 <id>clean-static-files</id>
174 <directory>${project.basedir}/sdc-simulator</directory>
176 <include>*.war</include>
178 <followSymlinks>false</followSymlinks>
181 <directory>${project.basedir}/sdc-simulator/chef-repo/cookbooks/sdc-simulator/files/default</directory>
182 <includes>logback.xml</includes>
183 <followSymlinks>false</followSymlinks>
192 <artifactId>maven-resources-plugin</artifactId>
193 <version>3.0.2</version>
196 <id>copy-resources-simulator</id>
197 <phase>verify</phase>
199 <goal>copy-resources</goal>
202 <outputDirectory>${project.basedir}/sdc-simulator</outputDirectory>
205 <directory>${project.basedir}/target</directory>
207 <include>WSSimulator.war</include>
214 <id>copy-configurations-simulator</id>
215 <phase>verify</phase>
217 <goal>copy-resources</goal>
220 <outputDirectory>${basedir}/sdc-simulator/chef-repo/cookbooks/sdc-simulator/files/default</outputDirectory>
223 <directory>${basedir}/src/main/resources</directory>
225 <include>logback.xml</include>
237 <groupId>io.fabric8</groupId>
238 <artifactId>docker-maven-plugin</artifactId>
239 <version>0.23.0</version>
242 <verbose>true</verbose>
243 <apiVersion>1.23</apiVersion>
244 <registry>nexus3.onap.org:10001</registry>
247 <username>docker</username>
248 <password>docker</password>
253 <!-- Build simulator image -->
255 <name>openecomp/sdc-simulator</name>
256 <alias>sdc-simulator</alias>
258 <cleanup>try</cleanup>
259 <dockerFileDir>${basedir}\sdc-simulator</dockerFileDir>
261 <tag>${docker.tag}</tag>
262 <tag>${docker.latest.tag}</tag>
263 <tag>1.1-STAGING-latest</tag>
271 <id>clean-images</id>
272 <phase>pre-clean</phase>
277 <removeAll>true</removeAll>
278 <image>openecomp/sdc-simulator</image>
283 <id>generate-images</id>
284 <phase>install</phase>
292 <phase>deploy</phase>
298 <image>openecomp/sdc-simulator</image>