update httpClient 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                 <dependency>
46                         <groupId>org.apache.httpcomponents</groupId>
47                         <artifactId>httpclient</artifactId>
48                         <version>4.5.3</version>
49                 </dependency>
50
51
52                 <dependency>
53                         <groupId>commons-logging</groupId>
54                         <artifactId>commons-logging-api</artifactId>
55                         <version>1.0.4</version>
56                 </dependency>
57
58                 <dependency>
59                         <groupId>commons-io</groupId>
60                         <artifactId>commons-io</artifactId>
61                         <version>2.4</version>
62                 </dependency>
63
64                 <dependency>
65                         <groupId>commons-codec</groupId>
66                         <artifactId>commons-codec</artifactId>
67                         <version>1.9</version>
68                         <scope>compile</scope>
69                 </dependency>
70
71                 <dependency>
72                         <groupId>org.eclipse.jetty</groupId>
73                         <artifactId>jetty-proxy</artifactId>
74                         <version>${jetty.version}</version>
75                         <scope>compile</scope>
76                 </dependency>
77
78                 <dependency>
79                         <groupId>org.eclipse.jetty</groupId>
80                         <artifactId>jetty-servlets</artifactId>
81             <version>${jetty.version}</version>
82                         <scope>compile</scope>
83                 </dependency>
84
85                 <!-- Proxy servlet -->
86                 <dependency>
87                         <groupId>com.typesafe</groupId>
88                         <artifactId>config</artifactId>
89                         <version>1.0.2</version>
90                         <scope>compile</scope>
91                 </dependency>
92
93                 <dependency>
94                         <groupId>log4j</groupId>
95                         <artifactId>log4j</artifactId>
96                         <version>1.2.17</version>
97                         <scope>compile</scope>
98                 </dependency>
99
100
101         </dependencies>
102         <build>
103                 <finalName>WSSimulator-${project.version}</finalName>
104                         <plugins>
105                                 <plugin>
106                                         <groupId>com.github.sylvainlaurent.maven</groupId>
107                                         <artifactId>yaml-json-validator-maven-plugin</artifactId>
108                                         <executions>
109                                                 <execution>
110                                                         <id>validate</id>
111                                                         <phase>validate</phase>
112                                                         <goals>
113                                                                 <goal>validate</goal>
114                                                         </goals>
115                                                         <configuration>
116                                                                 <validationSets>
117                                                                         <validationSet>
118                                                                                 <includes>
119                                                                                         <include>src/main/resources/**/*.y*ml</include>
120                                                                                         <include>src/test/resources/**/*.y*ml</include>
121                                                                                 </includes>
122                                                                         </validationSet>
123                                                                         <validationSet>
124                                                                                 <includes>
125                                                                                         <include>src/main/resources/**/*.json</include>
126                                                                                         <include>src/test/resources/**/*.json</include>
127                                                                                 </includes>
128                                                                         </validationSet>
129                                                                 </validationSets>
130                                                         </configuration>
131                                                 </execution>
132                                         </executions>
133                                 </plugin>
134                         </plugins>
135         </build>
136         
137         <repositories>
138                 <!-- LF repositories -->
139                 <repository>
140                         <id>ecomp-releases</id>
141                         <name>Release Repository</name>
142                         <url>${nexus.proxy}/content/repositories/releases/</url>
143                 </repository>
144                 <repository>
145                         <id>ecomp-snapshots</id>
146                         <name>Snapshots Repository</name>
147                         <url>${nexus.proxy}/content/repositories/snapshots/</url>
148                 </repository>
149                 <repository>
150                         <id>ecomp-public</id>
151                         <name>Public Repository</name>
152                         <url>${nexus.proxy}/content/repositories/public/</url>
153                 </repository>
154                 <!-- LF repositories END-->
155         </repositories>
156         
157         <profiles>
158                 <profile>
159                         <id>docker</id>
160                         <activation>
161                                 <activeByDefault>false</activeByDefault>
162                         </activation>
163                         <build>
164                                 <plugins>
165                                         
166                                         <plugin>
167                                                 <artifactId>maven-clean-plugin</artifactId>
168                                                 <version>3.0.0</version>
169                                                 <executions>
170                                                         <execution>
171                                                                 <id>clean-static-files</id>
172                                                                 <phase>clean</phase>
173                                                                 <goals>
174                                                                         <goal>clean</goal>
175                                                                 </goals>
176                                                                 <configuration>
177                                                                         <filesets>
178                                                                                 <fileset>
179                                                                                         <directory>${project.basedir}/sdc-simulator</directory>
180                                                                                         <includes>
181                                                                                                 <include>*.war</include>
182                                                                                         </includes>
183                                                                                         <followSymlinks>false</followSymlinks>
184                                                                                 </fileset>
185                                                                         </filesets>
186                                                                 </configuration>
187                                                         </execution>
188                                                 </executions>
189                                         </plugin>
190                                         
191                                         <plugin>
192                                                 <artifactId>maven-resources-plugin</artifactId>
193                                                 <executions>
194                                                         <execution>
195                                                                 <id>copy-resources-simulator</id>
196                                                                 <phase>verify</phase>
197                                                                 <goals>
198                                                                         <goal>copy-resources</goal>
199                                                                 </goals>
200                                                                 <configuration>
201                                                                         <outputDirectory>${project.basedir}/sdc-simulator</outputDirectory>
202                                                                         <resources>
203                                                                                 <resource>
204                                                                                         <directory>${project.basedir}/target</directory>
205                                                                                         <includes>
206                                                                                                 <include>WSSimulator*.war</include>
207                                                                                         </includes>
208                                                                                 </resource>
209                                                                         </resources>
210                                                                 </configuration>
211                                                         </execution>
212                                                 </executions>
213                                         </plugin>
214
215
216
217                                         <plugin>
218                                                 <groupId>io.fabric8</groupId>
219                                                 <artifactId>docker-maven-plugin</artifactId>
220                                                 <configuration>
221                                                         <apiVersion>1.23</apiVersion>
222                                                         <registry>nexus3.onap.org:10001</registry>
223                                                         <authConfig>
224                                                                 <pull>
225                                                                         <username>docker</username>
226                                                                         <password>docker</password>
227                                                                 </pull>
228                                                         </authConfig>
229                                                         <images>
230                                                                 <!-- Build simulator image -->
231                                                                 <image>
232                                                                         <name>onap/sdc-simulator</name>
233                                                                         <alias>sdc-simulator</alias>
234                                                                         <build>
235                                                                                 <cleanup>try</cleanup>
236                                                                                 <dockerFileDir>${basedir}${file.separator}sdc-simulator</dockerFileDir>
237                                                                                 <tags>
238                                                                                         <tag>${docker.tag}</tag>
239                                                                                         <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag>
240                                                                                 </tags>
241                                                                         </build>
242                                                                 </image>
243                                                         </images>
244                                                 </configuration>
245                                                 <executions>
246                                                         <execution>
247                                                                 <id>clean-images</id>
248                                                                 <phase>pre-clean</phase>
249                                                                 <goals>
250                                                                         <goal>remove</goal>
251                                                                 </goals>
252                                                         </execution>
253                                                         <execution>
254                                                                 <id>generate-images</id>
255                                                                 <phase>install</phase>
256                                                                 <goals>
257                                                                         <goal>build</goal>
258                                                                 </goals>
259                                                         </execution>
260                                                         <execution>
261                                                                 <id>push-images</id>
262                                                                 <phase>deploy</phase>
263                                                                 <goals>
264                                                                         <goal>push</goal>
265                                                                 </goals>
266                                                         </execution>
267                                                 </executions>
268                                         </plugin>
269                                 </plugins>
270                         </build>
271                 </profile>
272         </profiles>
273 </project>