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">
5 <modelVersion>4.0.0</modelVersion>
6 <artifactId>webseal-simulator</artifactId>
7 <packaging>war</packaging>
10 <groupId>org.openecomp.sdc</groupId>
11 <artifactId>sdc-main</artifactId>
12 <version>1.2.0-SNAPSHOT</version>
13 <relativePath>../../</relativePath>
17 <jetty-version>9.2.10.v20150310</jetty-version>
18 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
19 <nexus.proxy>https://nexus.onap.org</nexus.proxy>
20 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
21 <docker.tag>${project.version}-${maven.build.timestamp}</docker.tag>
22 <docker.latest.tag>${project.version}-latest</docker.latest.tag>
23 <sonar.skip>true</sonar.skip>
28 <groupId>junit</groupId>
29 <artifactId>junit</artifactId>
30 <version>4.12</version>
35 <groupId>javax.servlet</groupId>
36 <artifactId>servlet-api</artifactId>
37 <version>2.5</version>
38 <scope>compile</scope>
42 <groupId>commons-httpclient</groupId>
43 <artifactId>commons-httpclient</artifactId>
44 <version>3.1</version>
48 <groupId>commons-logging</groupId>
49 <artifactId>commons-logging-api</artifactId>
50 <version>1.0.4</version>
54 <groupId>commons-io</groupId>
55 <artifactId>commons-io</artifactId>
56 <version>2.4</version>
60 <groupId>commons-codec</groupId>
61 <artifactId>commons-codec</artifactId>
62 <version>1.9</version>
63 <scope>compile</scope>
67 <groupId>org.eclipse.jetty</groupId>
68 <artifactId>jetty-proxy</artifactId>
69 <version>9.2.10.v20150310</version>
70 <scope>compile</scope>
74 <groupId>org.eclipse.jetty</groupId>
75 <artifactId>jetty-servlets</artifactId>
76 <version>${jetty-version}</version>
77 <scope>compile</scope>
80 <!-- Proxy servlet -->
82 <groupId>com.typesafe</groupId>
83 <artifactId>config</artifactId>
84 <version>1.0.2</version>
85 <scope>compile</scope>
90 <finalName>WSSimulator-${project.version}</finalName>
92 <!-- ================================================== -->
93 <!-- Set the JDK compiler version. -->
94 <!-- ================================================== -->
96 <groupId>org.apache.maven.plugins</groupId>
97 <artifactId>maven-compiler-plugin</artifactId>
98 <version>2.5.1</version>
99 <inherited>true</inherited>
110 <!-- LF repositories -->
112 <id>ecomp-releases</id>
113 <name>Release Repository</name>
114 <url>${nexus.proxy}/content/repositories/releases/</url>
117 <id>ecomp-snapshots</id>
118 <name>Snapshots Repository</name>
119 <url>${nexus.proxy}/content/repositories/snapshots/</url>
122 <id>ecomp-public</id>
123 <name>Public Repository</name>
124 <url>${nexus.proxy}/content/repositories/public/</url>
126 <!-- LF repositories END-->
133 <activeByDefault>false</activeByDefault>
139 <artifactId>maven-clean-plugin</artifactId>
140 <version>3.0.0</version>
143 <id>clean-static-files</id>
151 <directory>${project.basedir}/sdc-simulator</directory>
153 <include>*.war</include>
155 <followSymlinks>false</followSymlinks>
158 <directory>${project.basedir}/sdc-simulator/chef-repo/cookbooks/sdc-simulator/files/default</directory>
159 <includes>logback.xml</includes>
160 <followSymlinks>false</followSymlinks>
169 <artifactId>maven-resources-plugin</artifactId>
170 <version>3.0.2</version>
173 <id>copy-resources-simulator</id>
174 <phase>verify</phase>
176 <goal>copy-resources</goal>
179 <outputDirectory>${project.basedir}/sdc-simulator</outputDirectory>
182 <directory>${project.basedir}/target</directory>
184 <include>WSSimulator*.war</include>
191 <id>copy-configurations-simulator</id>
192 <phase>verify</phase>
194 <goal>copy-resources</goal>
197 <outputDirectory>${basedir}/sdc-simulator/chef-repo/cookbooks/sdc-simulator/files/default</outputDirectory>
200 <directory>${basedir}/src/main/resources</directory>
202 <include>logback.xml</include>
214 <groupId>io.fabric8</groupId>
215 <artifactId>docker-maven-plugin</artifactId>
216 <version>${fabric8.version}</version>
219 <verbose>true</verbose>
220 <apiVersion>1.23</apiVersion>
221 <registry>nexus3.onap.org:10001</registry>
224 <username>docker</username>
225 <password>docker</password>
229 <!-- Build simulator image -->
231 <name>onap/sdc-simulator</name>
232 <alias>sdc-simulator</alias>
234 <cleanup>try</cleanup>
235 <dockerFileDir>${basedir}${file.separator}sdc-simulator</dockerFileDir>
237 <tag>${docker.tag}</tag>
238 <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag>
246 <id>clean-images</id>
247 <phase>pre-clean</phase>
253 <id>generate-images</id>
254 <phase>install</phase>
261 <phase>deploy</phase>