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>
22 <groupId>junit</groupId>
23 <artifactId>junit</artifactId>
24 <version>4.12</version>
29 <groupId>javax.servlet</groupId>
30 <artifactId>servlet-api</artifactId>
31 <version>2.5</version>
32 <scope>compile</scope>
36 <groupId>commons-httpclient</groupId>
37 <artifactId>commons-httpclient</artifactId>
38 <version>3.1</version>
42 <groupId>commons-logging</groupId>
43 <artifactId>commons-logging-api</artifactId>
44 <version>1.0.4</version>
48 <groupId>commons-io</groupId>
49 <artifactId>commons-io</artifactId>
50 <version>2.4</version>
54 <groupId>commons-codec</groupId>
55 <artifactId>commons-codec</artifactId>
56 <version>1.9</version>
57 <scope>compile</scope>
61 <groupId>org.eclipse.jetty</groupId>
62 <artifactId>jetty-proxy</artifactId>
63 <version>9.2.10.v20150310</version>
64 <scope>compile</scope>
68 <groupId>org.eclipse.jetty</groupId>
69 <artifactId>jetty-servlets</artifactId>
70 <version>${jetty-version}</version>
71 <scope>compile</scope>
74 <!-- Proxy servlet -->
76 <groupId>com.typesafe</groupId>
77 <artifactId>config</artifactId>
78 <version>1.0.2</version>
79 <scope>compile</scope>
84 <finalName>WSSimulator</finalName>
86 <!-- ================================================== -->
87 <!-- Set the JDK compiler version. -->
88 <!-- ================================================== -->
90 <groupId>org.apache.maven.plugins</groupId>
91 <artifactId>maven-compiler-plugin</artifactId>
92 <version>2.5.1</version>
93 <inherited>true</inherited>
101 <groupId>org.eclipse.jetty</groupId>
102 <artifactId>jetty-maven-plugin</artifactId>
103 <version>${jetty-version}</version>
105 <contextPath>/</contextPath>
107 <contextPath>/</contextPath>
108 <webInfIncludeJarPattern>.*/.*jersey-[^/]\.jar$</webInfIncludeJarPattern>
110 <war>WSSimulator.war</war>
118 <!-- LF repositories -->
120 <id>ecomp-releases</id>
121 <name>Release Repository</name>
122 <url>${nexus.proxy}/content/repositories/releases/</url>
125 <id>ecomp-staging</id>
126 <name>Staging Repository</name>
127 <url>${nexus.proxy}/content/repositories/staging/</url>
130 <id>ecomp-snapshots</id>
131 <name>Snapshots Repository</name>
132 <url>${nexus.proxy}/content/repositories/snapshots/</url>
135 <id>ecomp-public</id>
136 <name>Public Repository</name>
137 <url>${nexus.proxy}/content/repositories/public/</url>
139 <!-- LF repositories END-->
144 <id>docker-staging</id>
146 <docker.tag>${project.version}-STAGING-${maven.build.timestamp}</docker.tag>
147 <docker.latest.tag>${project.version}-STAGING-latest</docker.latest.tag>
154 <activeByDefault>false</activeByDefault>
160 <artifactId>maven-resources-plugin</artifactId>
161 <version>3.0.2</version>
164 <id>copy-resources-simulator</id>
165 <phase>package</phase>
167 <goal>copy-resources</goal>
170 <outputDirectory>${basedir}/sdc-simulator</outputDirectory>
173 <directory>${basedir}/target</directory>
175 <include>WSSimulator.war</include>
182 <id>copy-configurations-simulator</id>
183 <phase>validate</phase>
185 <goal>copy-resources</goal>
188 <outputDirectory>${basedir}/sdc-simulator/chef-repo/cookbooks/sdc-simulator/files/default</outputDirectory>
191 <directory>${basedir}/src/main/resources</directory>
193 <include>logback.xml</include>
205 <groupId>io.fabric8</groupId>
206 <artifactId>docker-maven-plugin</artifactId>
207 <version>0.23.0</version>
210 <verbose>true</verbose>
211 <apiVersion>1.23</apiVersion>
212 <registry>nexus3.onap.org:10001</registry>
215 <username>docker</username>
216 <password>docker</password>
221 <!-- Build simulator image -->
223 <name>openecomp/sdc-simulator</name>
224 <alias>sdc-simulator</alias>
226 <cleanup>try</cleanup>
227 <dockerFileDir>${basedir}/sdc-simulator</dockerFileDir>
229 <tag>${docker.tag}</tag>
230 <tag>${docker.latest.tag}</tag>
231 <tag>1.1-STAGING-latest</tag>
239 <id>clean-images</id>
240 <phase>pre-clean</phase>
245 <removeAll>true</removeAll>
246 <image>openecomp/sdc-simulator</image>
251 <id>generate-images</id>
252 <phase>package</phase>
260 <phase>deploy</phase>
266 <image>openecomp/sdc-simulator</image>