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.3.0-SNAPSHOT</version>
13 <relativePath>../../</relativePath>
17 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
18 <nexus.proxy>https://nexus.onap.org</nexus.proxy>
19 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
20 <docker.tag>${project.version}-${maven.build.timestamp}</docker.tag>
21 <docker.latest.tag>${project.version}-latest</docker.latest.tag>
22 <sonar.skip>true</sonar.skip>
27 <groupId>junit</groupId>
28 <artifactId>junit</artifactId>
29 <version>4.12</version>
34 <groupId>javax.servlet</groupId>
35 <artifactId>servlet-api</artifactId>
36 <version>2.5</version>
37 <scope>compile</scope>
41 <groupId>commons-httpclient</groupId>
42 <artifactId>commons-httpclient</artifactId>
43 <version>3.1</version>
47 <groupId>commons-logging</groupId>
48 <artifactId>commons-logging-api</artifactId>
49 <version>1.0.4</version>
53 <groupId>commons-io</groupId>
54 <artifactId>commons-io</artifactId>
55 <version>2.4</version>
59 <groupId>commons-codec</groupId>
60 <artifactId>commons-codec</artifactId>
61 <version>1.9</version>
62 <scope>compile</scope>
66 <groupId>org.eclipse.jetty</groupId>
67 <artifactId>jetty-proxy</artifactId>
68 <version>${jetty.version}</version>
69 <scope>compile</scope>
73 <groupId>org.eclipse.jetty</groupId>
74 <artifactId>jetty-servlets</artifactId>
75 <version>${jetty.version}</version>
76 <scope>compile</scope>
79 <!-- Proxy servlet -->
81 <groupId>com.typesafe</groupId>
82 <artifactId>config</artifactId>
83 <version>1.0.2</version>
84 <scope>compile</scope>
89 <finalName>WSSimulator-${project.version}</finalName>
91 <!-- ================================================== -->
92 <!-- Set the JDK compiler version. -->
93 <!-- ================================================== -->
95 <groupId>org.apache.maven.plugins</groupId>
96 <artifactId>maven-compiler-plugin</artifactId>
97 <version>2.5.1</version>
98 <inherited>true</inherited>
109 <!-- LF repositories -->
111 <id>ecomp-releases</id>
112 <name>Release Repository</name>
113 <url>${nexus.proxy}/content/repositories/releases/</url>
116 <id>ecomp-snapshots</id>
117 <name>Snapshots Repository</name>
118 <url>${nexus.proxy}/content/repositories/snapshots/</url>
121 <id>ecomp-public</id>
122 <name>Public Repository</name>
123 <url>${nexus.proxy}/content/repositories/public/</url>
125 <!-- LF repositories END-->
132 <activeByDefault>false</activeByDefault>
138 <artifactId>maven-clean-plugin</artifactId>
139 <version>3.0.0</version>
142 <id>clean-static-files</id>
150 <directory>${project.basedir}/sdc-simulator</directory>
152 <include>*.war</include>
154 <followSymlinks>false</followSymlinks>
157 <directory>${project.basedir}/sdc-simulator/chef-repo/cookbooks/sdc-simulator/files/default</directory>
158 <includes>logback.xml</includes>
159 <followSymlinks>false</followSymlinks>
168 <artifactId>maven-resources-plugin</artifactId>
169 <version>3.0.2</version>
172 <id>copy-resources-simulator</id>
173 <phase>verify</phase>
175 <goal>copy-resources</goal>
178 <outputDirectory>${project.basedir}/sdc-simulator</outputDirectory>
181 <directory>${project.basedir}/target</directory>
183 <include>WSSimulator*.war</include>
190 <id>copy-configurations-simulator</id>
191 <phase>verify</phase>
193 <goal>copy-resources</goal>
196 <outputDirectory>${basedir}/sdc-simulator/chef-repo/cookbooks/sdc-simulator/files/default</outputDirectory>
199 <directory>${basedir}/src/main/resources</directory>
201 <include>logback.xml</include>
213 <groupId>io.fabric8</groupId>
214 <artifactId>docker-maven-plugin</artifactId>
215 <version>${fabric8.version}</version>
218 <verbose>true</verbose>
219 <apiVersion>1.23</apiVersion>
220 <registry>nexus3.onap.org:10001</registry>
223 <username>docker</username>
224 <password>docker</password>
228 <!-- Build simulator image -->
230 <name>onap/sdc-simulator</name>
231 <alias>sdc-simulator</alias>
233 <cleanup>try</cleanup>
234 <dockerFileDir>${basedir}${file.separator}sdc-simulator</dockerFileDir>
236 <tag>${docker.tag}</tag>
237 <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag>
245 <id>clean-images</id>
246 <phase>pre-clean</phase>
252 <id>generate-images</id>
253 <phase>install</phase>
260 <phase>deploy</phase>