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