update sdc version
[sdc.git] / utils / webseal-simulator / pom.xml
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">
3
4
5         <modelVersion>4.0.0</modelVersion>
6         <artifactId>webseal-simulator</artifactId>
7         <packaging>war</packaging>
8
9         <parent>
10                 <groupId>org.openecomp.sdc</groupId>
11                 <artifactId>sdc-main</artifactId>
12                 <version>1.3.0-SNAPSHOT</version>
13                 <relativePath>../../</relativePath>
14         </parent>
15
16         <properties>
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>
23         </properties>
24
25         <dependencies>
26                 <dependency>
27                         <groupId>junit</groupId>
28                         <artifactId>junit</artifactId>
29                         <version>4.12</version>
30                         <scope>test</scope>
31                 </dependency>
32
33                 <dependency>
34                         <groupId>javax.servlet</groupId>
35                         <artifactId>servlet-api</artifactId>
36                         <version>2.5</version>
37                         <scope>compile</scope>
38                 </dependency>
39
40                 <dependency>
41                         <groupId>commons-httpclient</groupId>
42                         <artifactId>commons-httpclient</artifactId>
43                         <version>3.1</version>
44                 </dependency>
45
46                 <dependency>
47                         <groupId>commons-logging</groupId>
48                         <artifactId>commons-logging-api</artifactId>
49                         <version>1.0.4</version>
50                 </dependency>
51
52                 <dependency>
53                         <groupId>commons-io</groupId>
54                         <artifactId>commons-io</artifactId>
55                         <version>2.4</version>
56                 </dependency>
57
58                 <dependency>
59                         <groupId>commons-codec</groupId>
60                         <artifactId>commons-codec</artifactId>
61                         <version>1.9</version>
62                         <scope>compile</scope>
63                 </dependency>
64
65                 <dependency>
66                         <groupId>org.eclipse.jetty</groupId>
67                         <artifactId>jetty-proxy</artifactId>
68                         <version>${jetty.version}</version>
69                         <scope>compile</scope>
70                 </dependency>
71
72                 <dependency>
73                         <groupId>org.eclipse.jetty</groupId>
74                         <artifactId>jetty-servlets</artifactId>
75             <version>${jetty.version}</version>
76                         <scope>compile</scope>
77                 </dependency>
78
79                 <!-- Proxy servlet -->
80                 <dependency>
81                         <groupId>com.typesafe</groupId>
82                         <artifactId>config</artifactId>
83                         <version>1.0.2</version>
84                         <scope>compile</scope>
85                 </dependency>
86
87         </dependencies>
88         <build>
89                 <finalName>WSSimulator-${project.version}</finalName>
90                 <plugins>
91                         <!-- ================================================== -->
92                         <!-- Set the JDK compiler version. -->
93                         <!-- ================================================== -->
94                         <plugin>
95                                 <groupId>org.apache.maven.plugins</groupId>
96                                 <artifactId>maven-compiler-plugin</artifactId>
97                                 <version>2.5.1</version>
98                                 <inherited>true</inherited>
99                                 <configuration>
100                                         <source>1.8</source>
101                                         <target>1.8</target>
102                                 </configuration>
103                         </plugin>
104
105                 </plugins>
106         </build>
107         
108         <repositories>
109                 <!-- LF repositories -->
110                 <repository>
111                         <id>ecomp-releases</id>
112                         <name>Release Repository</name>
113                         <url>${nexus.proxy}/content/repositories/releases/</url>
114                 </repository>
115                 <repository>
116                         <id>ecomp-snapshots</id>
117                         <name>Snapshots Repository</name>
118                         <url>${nexus.proxy}/content/repositories/snapshots/</url>
119                 </repository>
120                 <repository>
121                         <id>ecomp-public</id>
122                         <name>Public Repository</name>
123                         <url>${nexus.proxy}/content/repositories/public/</url>
124                 </repository>
125                 <!-- LF repositories END-->
126         </repositories>
127         
128         <profiles>
129                 <profile>
130                         <id>docker</id>
131                         <activation>
132                                 <activeByDefault>false</activeByDefault>
133                         </activation>
134                         <build>
135                                 <plugins>
136                                         
137                                         <plugin>
138                                                 <artifactId>maven-clean-plugin</artifactId>
139                                                 <version>3.0.0</version>
140                                                 <executions>
141                                                         <execution>
142                                                                 <id>clean-static-files</id>
143                                                                 <phase>clean</phase>
144                                                                 <goals>
145                                                                         <goal>clean</goal>
146                                                                 </goals>
147                                                                 <configuration>
148                                                                         <filesets>
149                                                                                 <fileset>
150                                                                                         <directory>${project.basedir}/sdc-simulator</directory>
151                                                                                         <includes>
152                                                                                                 <include>*.war</include>
153                                                                                         </includes>
154                                                                                         <followSymlinks>false</followSymlinks>
155                                                                                 </fileset>
156                                                                                 <fileset>
157                                                                                         <directory>${project.basedir}/sdc-simulator/chef-repo/cookbooks/sdc-simulator/files/default</directory>
158                                                                                         <includes>logback.xml</includes>
159                                                                                         <followSymlinks>false</followSymlinks>
160                                                                                 </fileset>
161                                                                         </filesets>
162                                                                 </configuration>
163                                                         </execution>
164                                                 </executions>
165                                         </plugin>
166                                         
167                                         <plugin>
168                                                 <artifactId>maven-resources-plugin</artifactId>
169                                                 <version>3.0.2</version>
170                                                 <executions>
171                                                         <execution>
172                                                                 <id>copy-resources-simulator</id>
173                                                                 <phase>verify</phase>
174                                                                 <goals>
175                                                                         <goal>copy-resources</goal>
176                                                                 </goals>
177                                                                 <configuration>
178                                                                         <outputDirectory>${project.basedir}/sdc-simulator</outputDirectory>
179                                                                         <resources>
180                                                                                 <resource>
181                                                                                         <directory>${project.basedir}/target</directory>
182                                                                                         <includes>
183                                                                                                 <include>WSSimulator*.war</include>
184                                                                                         </includes>
185                                                                                 </resource>
186                                                                         </resources>
187                                                                 </configuration>
188                                                         </execution>
189                                                         <execution>
190                                                                 <id>copy-configurations-simulator</id>
191                                                                 <phase>verify</phase>
192                                                                 <goals>
193                                                                         <goal>copy-resources</goal>
194                                                                 </goals>
195                                                                 <configuration>
196                                                                         <outputDirectory>${basedir}/sdc-simulator/chef-repo/cookbooks/sdc-simulator/files/default</outputDirectory>
197                                                                         <resources>
198                                                                                 <resource>
199                                                                                         <directory>${basedir}/src/main/resources</directory>
200                                                                                         <includes>
201                                                                                                 <include>logback.xml</include>
202                                                                                         </includes>
203                                                                                 </resource>
204                                                                         </resources>
205                                                                 </configuration>
206                                                         </execution>
207                                                 </executions>
208                                         </plugin>
209
210
211
212                                         <plugin>
213                                                 <groupId>io.fabric8</groupId>
214                                                 <artifactId>docker-maven-plugin</artifactId>
215                                                 <version>${fabric8.version}</version>
216
217                                                 <configuration>
218                                                         <verbose>true</verbose>
219                                                         <apiVersion>1.23</apiVersion>
220                                                         <registry>nexus3.onap.org:10001</registry>
221                                                         <authConfig>
222                                                                 <pull>
223                                                                         <username>docker</username>
224                                                                         <password>docker</password>
225                                                                 </pull>
226                                                         </authConfig>
227                                                         <images>
228                                                                 <!-- Build simulator image -->
229                                                                 <image>
230                                                                         <name>onap/sdc-simulator</name>
231                                                                         <alias>sdc-simulator</alias>
232                                                                         <build>
233                                                                                 <cleanup>try</cleanup>
234                                                                                 <dockerFileDir>${basedir}${file.separator}sdc-simulator</dockerFileDir>
235                                                                                 <tags>
236                                                                                         <tag>${docker.tag}</tag>
237                                                                                         <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag>
238                                                                                 </tags>
239                                                                         </build>
240                                                                 </image>
241                                                         </images>
242                                                 </configuration>
243                                                 <executions>
244                                                         <execution>
245                                                                 <id>clean-images</id>
246                                                                 <phase>pre-clean</phase>
247                                                                 <goals>
248                                                                         <goal>remove</goal>
249                                                                 </goals>
250                                                         </execution>
251                                                         <execution>
252                                                                 <id>generate-images</id>
253                                                                 <phase>install</phase>
254                                                                 <goals>
255                                                                         <goal>build</goal>
256                                                                 </goals>
257                                                         </execution>
258                                                         <execution>
259                                                                 <id>push-images</id>
260                                                                 <phase>deploy</phase>
261                                                                 <goals>
262                                                                         <goal>push</goal>
263                                                                 </goals>
264                                                         </execution>
265                                                 </executions>
266                                         </plugin>
267                                 </plugins>
268                         </build>
269                 </profile>
270         </profiles>
271 </project>