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