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