Reduce scope from 'compile' to 'test' for 'junit-vintage-engine'
[sdc.git] / ui-ci / 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/xsd/maven-4.0.0.xsd">
4
5   <modelVersion>4.0.0</modelVersion>
6
7   <artifactId>ui-ci</artifactId>
8   <description>Selenium tests for the SDnC Application</description>
9
10   <parent>
11     <groupId>org.openecomp.sdc</groupId>
12     <artifactId>sdc-main</artifactId>
13     <version>1.7.0-SNAPSHOT</version>
14   </parent>
15
16   <properties>
17     <sonar.skip>true</sonar.skip>
18     <jacoco.skip>true</jacoco.skip>
19     <aspectj.version>1.8.10</aspectj.version>
20   </properties>
21
22   <dependencies>
23     <!--JUnit Jupiter Engine to depend on the JUnit5 engine and JUnit 5 API -->
24     <dependency>
25       <groupId>org.junit.jupiter</groupId>
26       <artifactId>junit-jupiter-engine</artifactId>
27       <version>${junitJupiter.version}</version>
28       <scope>test</scope>
29     </dependency>
30     <!--JUnit Jupiter Engine to depend on the JUnit4 engine and JUnit 4 API  -->
31     <dependency>
32       <groupId>org.junit.vintage</groupId>
33       <artifactId>junit-vintage-engine</artifactId>
34       <version>${junitJupiter.version}</version>
35       <scope>test</scope>
36     </dependency>
37
38     <dependency>
39       <groupId>com.google.guava</groupId>
40       <artifactId>guava</artifactId>
41       <version>${guava.version}</version>
42       <scope>compile</scope>
43     </dependency>
44
45     <dependency>
46       <groupId>org.seleniumhq.selenium</groupId>
47       <artifactId>selenium-java</artifactId>
48
49       <version>2.53.1</version>
50       <exclusions>
51         <exclusion>
52           <groupId>org.eclipse.jetty</groupId>
53           <artifactId>jetty-util</artifactId>
54         </exclusion>
55         <exclusion>
56           <groupId>io.netty</groupId>
57           <artifactId>netty</artifactId>
58         </exclusion>
59       </exclusions>
60     </dependency>
61
62     <dependency>
63       <groupId>org.eclipse.jetty</groupId>
64       <artifactId>jetty-util</artifactId>
65       <version>${jetty.version}</version>
66     </dependency>
67
68     <dependency>
69       <groupId>org.seleniumhq.selenium</groupId>
70       <artifactId>selenium-server</artifactId>
71       <version>2.53.1</version>
72       <scope>runtime</scope>
73     </dependency>
74
75     <dependency>
76       <groupId>commons-net</groupId>
77       <artifactId>commons-net</artifactId>
78       <version>3.3</version>
79       <scope>compile</scope>
80     </dependency>
81
82     <dependency>
83       <groupId>commons-io</groupId>
84       <artifactId>commons-io</artifactId>
85       <version>2.4</version>
86       <scope>compile</scope>
87     </dependency>
88
89     <dependency>
90       <groupId>org.openecomp.sdc</groupId>
91       <artifactId>test-apis-ci</artifactId>
92       <version>${project.version}</version>
93       <scope>compile</scope>
94     </dependency>
95
96     <dependency>
97       <groupId>org.yaml</groupId>
98       <artifactId>snakeyaml</artifactId>
99       <version>${snakeyaml.version}</version>
100       <scope>compile</scope>
101     </dependency>
102     <dependency>
103       <groupId>org.functionaljava</groupId>
104       <artifactId>functionaljava</artifactId>
105       <version>${functionaljava.version}</version>
106       <scope>compile</scope>
107     </dependency>
108
109     <dependency>
110       <groupId>com.google.code.gson</groupId>
111       <artifactId>gson</artifactId>
112       <version>${gson.version}</version>
113       <scope>compile</scope>
114     </dependency>
115
116     <!-- http client -->
117     <dependency>
118       <groupId>org.apache.httpcomponents</groupId>
119       <artifactId>httpclient</artifactId>
120       <version>${httpclient.version}</version>
121       <scope>compile</scope>
122     </dependency>
123
124     <dependency>
125       <groupId>org.apache.httpcomponents</groupId>
126       <artifactId>httpmime</artifactId>
127       <version>${httpclient.version}</version>
128       <scope>compile</scope>
129     </dependency>
130
131     <dependency>
132       <groupId>commons-logging</groupId>
133       <artifactId>commons-logging</artifactId>
134       <version>${commons-logging}</version>
135       <scope>compile</scope>
136     </dependency>
137
138     <dependency>
139       <groupId>org.slf4j</groupId>
140       <artifactId>slf4j-api</artifactId>
141       <version>${slf4j-api.version}</version>
142       <scope>compile</scope>
143     </dependency>
144
145     <dependency>
146       <groupId>ch.qos.logback</groupId>
147       <artifactId>logback-classic</artifactId>
148       <version>${logback.version}</version>
149       <scope>compile</scope>
150     </dependency>
151
152     <dependency>
153       <groupId>ch.qos.logback</groupId>
154       <artifactId>logback-core</artifactId>
155       <version>${logback.version}</version>
156       <scope>compile</scope>
157     </dependency>
158
159     <!-- http core -->
160     <dependency>
161       <groupId>org.apache.httpcomponents</groupId>
162       <artifactId>httpcore</artifactId>
163       <version>${httpcore.version}</version>
164       <scope>compile</scope>
165     </dependency>
166
167     <dependency>
168       <groupId>org.codehaus.jackson</groupId>
169       <artifactId>jackson-mapper-asl</artifactId>
170       <version>1.9.2</version>
171       <scope>compile</scope>
172     </dependency>
173
174     <dependency>
175       <groupId>com.fasterxml.jackson.core</groupId>
176       <artifactId>jackson-databind</artifactId>
177       <version>${jackson.version}</version>
178       <scope>compile</scope>
179     </dependency>
180
181     <dependency>
182       <groupId>org.openecomp.sdc.sdc-distribution-client</groupId>
183       <artifactId>sdc-distribution-client</artifactId>
184       <version>1.2.3</version>
185       <scope>compile</scope>
186     </dependency>
187
188     <dependency>
189       <groupId>org.hamcrest</groupId>
190       <artifactId>hamcrest</artifactId>
191       <version>${hamcrest.version}</version>
192       <scope>compile</scope>
193     </dependency>
194
195     <dependency>
196       <groupId>org.hamcrest</groupId>
197       <artifactId>hamcrest-library</artifactId>
198       <version>${hamcrest.version}</version>
199       <scope>compile</scope>
200     </dependency>
201
202     <dependency>
203       <groupId>org.junit.jupiter</groupId>
204       <artifactId>junit-jupiter</artifactId>
205       <version>${junitJupiter.version}</version>
206       <scope>test</scope>
207     </dependency>
208
209     <dependency>
210       <groupId>org.mockito</groupId>
211       <artifactId>mockito-junit-jupiter</artifactId>
212       <version>${mockitoJupiter.version}</version>
213       <scope>test</scope>
214     </dependency>
215
216     <dependency>
217       <groupId>org.testng</groupId>
218       <artifactId>testng</artifactId>
219       <version>6.11</version>
220       <scope>compile</scope>
221     </dependency>
222
223     <dependency>
224       <groupId>xml-apis</groupId>
225       <artifactId>xml-apis</artifactId>
226       <version>1.4.01</version>
227       <scope>compile</scope>
228     </dependency>
229
230     <dependency>
231       <groupId>com.googlecode.json-simple</groupId>
232       <artifactId>json-simple</artifactId>
233       <version>${json-simple.version}</version>
234       <scope>compile</scope>
235     </dependency>
236
237     <dependency>
238       <groupId>org.apache.commons</groupId>
239       <artifactId>commons-jci-core</artifactId>
240       <version>${commons-jci-core.version}</version>
241       <scope>compile</scope>
242     </dependency>
243
244     <dependency>
245       <groupId>commons-codec</groupId>
246       <artifactId>commons-codec</artifactId>
247       <version>${commons-codec}</version>
248       <scope>compile</scope>
249     </dependency>
250
251     <dependency>
252       <groupId>com.aventstack</groupId>
253       <artifactId>extentreports</artifactId>
254       <version>3.0.6</version>
255       <scope>compile</scope>
256     </dependency>
257
258     <dependency>
259       <groupId>net.lightbody.bmp</groupId>
260       <!-- To use the legacy, Jetty-based implementation, change the artifactId
261         to browsermob-core -->
262       <artifactId>browsermob-core</artifactId>
263       <version>2.1.4</version>
264     </dependency>
265
266     <dependency>
267       <groupId>com.github.markusbernhardt</groupId>
268       <artifactId>proxy-vole</artifactId>
269       <version>1.0.2</version>
270     </dependency>
271
272     <dependency>
273       <groupId>com.paulhammant</groupId>
274       <artifactId>ngwebdriver</artifactId>
275       <version>0.9.7</version>
276       <scope>compile</scope>
277     </dependency>
278
279     <dependency>
280       <groupId>com.google.inject</groupId>
281       <artifactId>guice</artifactId>
282       <version>4.1.0</version>
283     </dependency>
284
285     <dependency>
286       <groupId>org.codehaus.groovy</groupId>
287       <artifactId>groovy</artifactId>
288     </dependency>
289
290     <dependency>
291       <groupId>io.netty</groupId>
292       <artifactId>netty-handler</artifactId>
293     </dependency>
294
295   </dependencies>
296
297   <build>
298
299     <plugins>
300
301       <plugin>
302         <groupId>org.apache.maven.plugins</groupId>
303         <artifactId>maven-clean-plugin</artifactId>
304         <executions>
305           <execution>
306             <id>clean.tosca.chef.os.folder</id>
307             <phase>clean</phase>
308             <goals>
309               <goal>clean</goal>
310             </goals>
311             <configuration>
312               <filesets>
313
314                 <!-- Sanity jar -->
315                 <fileset>
316                   <directory>${project.basedir}/sdc-ui-tests</directory>
317                   <followSymlinks>false</followSymlinks>
318                   <includes>
319                     <include>*.jar</include>
320                   </includes>
321                 </fileset>
322                 <!-- Sanity test suites -->
323                 <fileset>
324                   <directory>
325                     ${project.basedir}/sdc-ui-tests/chef-repo/cookbooks/sdc-ui-tests/files/default/testSuites
326                   </directory>
327                   <followSymlinks>false</followSymlinks>
328                 </fileset>
329                 <!-- Package files -->
330                 <fileset>
331                   <directory>
332                     ${project.basedir}/sdc-ui-tests/chef-repo/cookbooks/sdc-ui-tests/files/default/Files
333                   </directory>
334                   <followSymlinks>false</followSymlinks>
335                 </fileset>
336               </filesets>
337             </configuration>
338           </execution>
339         </executions>
340       </plugin>
341       <plugin>
342         <groupId>org.apache.maven.plugins</groupId>
343         <artifactId>maven-deploy-plugin</artifactId>
344         <configuration>
345           <skip>true</skip>
346         </configuration>
347       </plugin>
348       <plugin>
349         <groupId>org.apache.maven.plugins</groupId>
350         <artifactId>maven-assembly-plugin</artifactId>
351         <executions>
352           <execution>
353             <id>create.jar.with.dependencies</id>
354             <phase>package</phase>
355             <goals>
356               <goal>single</goal>
357             </goals>
358             <configuration>
359               <archive>
360                 <manifest>
361                   <mainClass>org.openecomp.sdc.ci.tests.execute.setup.SetupCDTest</mainClass>
362                 </manifest>
363               </archive>
364               <descriptorRefs>
365                 <descriptorRef>jar-with-dependencies</descriptorRef>
366               </descriptorRefs>
367             </configuration>
368           </execution>
369         </executions>
370       </plugin>
371       <plugin>
372         <groupId>com.github.sylvainlaurent.maven</groupId>
373         <artifactId>yaml-json-validator-maven-plugin</artifactId>
374         <executions>
375           <execution>
376             <id>validate</id>
377             <phase>validate</phase>
378             <goals>
379               <goal>validate</goal>
380             </goals>
381             <configuration>
382               <validationSets>
383                 <validationSet>
384                   <includes>
385                     <include>src/main/resources/**/*.y*ml</include>
386                     <include>src/test/resources/**/*.y*ml</include>
387                   </includes>
388                 </validationSet>
389                 <validationSet>
390                   <includes>
391                     <include>src/main/resources/**/*.json</include>
392                     <include>src/test/resources/**/*.json</include>
393                   </includes>
394                 </validationSet>
395               </validationSets>
396             </configuration>
397           </execution>
398         </executions>
399       </plugin>
400     </plugins>
401   </build>
402   <profiles>
403     <profile>
404       <id>docker</id>
405       <activation>
406         <activeByDefault>false</activeByDefault>
407       </activation>
408       <build>
409         <plugins>
410           <plugin>
411             <groupId>org.apache.maven.plugins</groupId>
412             <artifactId>maven-resources-plugin</artifactId>
413             <executions>
414               <execution>
415                 <id>copy-tests-suites</id>
416                 <phase>verify</phase>
417                 <goals>
418                   <goal>copy-resources</goal>
419                 </goals>
420                 <configuration>
421                   <outputDirectory>
422                     sdc-ui-tests/chef-repo/cookbooks/sdc-ui-tests/files/default/testSuites
423                   </outputDirectory>
424                   <resources>
425                     <resource>
426                       <directory>${project.parent.basedir}/ui-ci/src/main/resources/ci/testSuites
427                       </directory>
428                       <includes>
429                         <include>*</include>
430                       </includes>
431                     </resource>
432                   </resources>
433                 </configuration>
434               </execution>
435
436               <execution>
437                 <id>copy-csar-files</id>
438                 <phase>verify</phase>
439                 <goals>
440                   <goal>copy-resources</goal>
441                 </goals>
442                 <configuration>
443                   <outputDirectory>
444                     sdc-ui-tests/chef-repo/cookbooks/sdc-ui-tests/files/default/Files
445                   </outputDirectory>
446                   <resources>
447                     <resource>
448                       <directory>
449                         ${project.parent.basedir}/test-apis-ci/sdc-api-tests/chef-repo/cookbooks/sdc-api-tests/files/default/Files
450                       </directory>
451                       <filtering>false</filtering>
452                       <includes>
453                         <include>VNFs/*</include>
454                         <include>PNFs/*</include>
455                       </includes>
456                     </resource>
457                   </resources>
458                 </configuration>
459               </execution>
460
461               <execution>
462                 <id>copy-resources-ui-ci</id>
463                 <phase>verify</phase>
464                 <goals>
465                   <goal>copy-resources</goal>
466                 </goals>
467                 <configuration>
468                   <outputDirectory>${basedir}/sdc-ui-tests</outputDirectory>
469                   <resources>
470                     <resource>
471                       <directory>${project.parent.basedir}/ui-ci/target</directory>
472                       <includes>
473                         <include>ui-ci-${project.version}-jar-with-dependencies.jar</include>
474                       </includes>
475                     </resource>
476                   </resources>
477                 </configuration>
478               </execution>
479             </executions>
480           </plugin>
481
482           <plugin>
483             <groupId>io.fabric8</groupId>
484             <artifactId>docker-maven-plugin</artifactId>
485             <configuration>
486               <apiVersion>1.23</apiVersion>
487               <registry>nexus3.onap.org:10001</registry>
488               <authConfig>
489                 <pull>
490                   <username>docker</username>
491                   <password>docker</password>
492                 </pull>
493               </authConfig>
494               <images>
495
496                 <!-- Build sanity image -->
497                 <image>
498                   <name>onap/sdc-ui-tests</name>
499                   <alias>sdc-ui-sanity</alias>
500                   <build>
501                     <cleanup>try</cleanup>
502                     <dockerFileDir>${project.basedir}/sdc-ui-tests</dockerFileDir>
503                     <tags>
504                       <tag>${docker.tag}</tag>
505                       <tag>
506                         ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest
507                       </tag>
508                     </tags>
509                   </build>
510                 </image>
511
512               </images>
513             </configuration>
514             <executions>
515               <execution>
516                 <id>clean-images</id>
517                 <phase>pre-clean</phase>
518                 <goals>
519                   <goal>remove</goal>
520                 </goals>
521                 <configuration>
522                   <removeAll>true</removeAll>
523                   <image>onap/sdc-ui-tests</image>
524                 </configuration>
525               </execution>
526
527               <execution>
528                 <id>generate-images</id>
529                 <phase>install</phase>
530                 <goals>
531                   <goal>build</goal>
532                 </goals>
533               </execution>
534
535               <execution>
536                 <id>push-images</id>
537                 <phase>deploy</phase>
538                 <goals>
539                   <goal>push</goal>
540                 </goals>
541                 <configuration>
542                   <image>onap/sdc-ui-tests</image>
543                 </configuration>
544               </execution>
545             </executions>
546           </plugin>
547         </plugins>
548       </build>
549     </profile>
550   </profiles>
551 </project>