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.1.0-SNAPSHOT</version>
11 <jetty-version>9.2.10.v20150310</jetty-version>
12 <maven.build.timestamp.format>yyyyMMdd'T'HHmm</maven.build.timestamp.format>
13 <nexus.proxy>https://nexus.onap.org</nexus.proxy>
14 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
15 <docker.tag>${project.version}-${maven.build.timestamp}</docker.tag>
16 <docker.latest.tag>${project.version}-latest</docker.latest.tag>
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-${project.version}</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>
103 <!-- LF repositories -->
105 <id>ecomp-releases</id>
106 <name>Release Repository</name>
107 <url>${nexus.proxy}/content/repositories/releases/</url>
110 <id>ecomp-snapshots</id>
111 <name>Snapshots Repository</name>
112 <url>${nexus.proxy}/content/repositories/snapshots/</url>
115 <id>ecomp-public</id>
116 <name>Public Repository</name>
117 <url>${nexus.proxy}/content/repositories/public/</url>
119 <!-- LF repositories END-->
126 <activeByDefault>false</activeByDefault>
132 <artifactId>maven-clean-plugin</artifactId>
133 <version>3.0.0</version>
136 <id>clean-static-files</id>
144 <directory>${project.basedir}/sdc-simulator</directory>
146 <include>*.war</include>
148 <followSymlinks>false</followSymlinks>
151 <directory>${project.basedir}/sdc-simulator/chef-repo/cookbooks/sdc-simulator/files/default</directory>
152 <includes>logback.xml</includes>
153 <followSymlinks>false</followSymlinks>
162 <artifactId>maven-resources-plugin</artifactId>
163 <version>3.0.2</version>
166 <id>copy-resources-simulator</id>
167 <phase>verify</phase>
169 <goal>copy-resources</goal>
172 <outputDirectory>${project.basedir}/sdc-simulator</outputDirectory>
175 <directory>${project.basedir}/target</directory>
177 <include>WSSimulator*.war</include>
184 <id>copy-configurations-simulator</id>
185 <phase>verify</phase>
187 <goal>copy-resources</goal>
190 <outputDirectory>${basedir}/sdc-simulator/chef-repo/cookbooks/sdc-simulator/files/default</outputDirectory>
193 <directory>${basedir}/src/main/resources</directory>
195 <include>logback.xml</include>
207 <groupId>io.fabric8</groupId>
208 <artifactId>docker-maven-plugin</artifactId>
209 <version>0.24.0</version>
212 <verbose>true</verbose>
213 <apiVersion>1.23</apiVersion>
214 <registry>nexus3.onap.org:10001</registry>
217 <username>docker</username>
218 <password>docker</password>
222 <!-- Build simulator image -->
224 <name>onap/sdc-simulator</name>
225 <alias>sdc-simulator</alias>
227 <cleanup>try</cleanup>
228 <dockerFileDir>${basedir}/sdc-simulator</dockerFileDir>
230 <tag>${docker.tag}</tag>
231 <tag>${docker.latest.tag}</tag>
239 <id>clean-images</id>
240 <phase>pre-clean</phase>
246 <id>generate-images</id>
247 <phase>install</phase>
254 <phase>deploy</phase>