Upgrade netty
[sdc.git] / test-apis-ci / 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/xsd/maven-4.0.0.xsd">
3
4     <modelVersion>4.0.0</modelVersion>
5
6     <artifactId>test-apis-ci</artifactId>
7
8     <parent>
9         <groupId>org.openecomp.sdc</groupId>
10         <artifactId>sdc-main</artifactId>
11         <version>1.5.0-SNAPSHOT</version>
12     </parent>
13         
14         <properties>
15                 <sonar.skip>true</sonar.skip>
16     <mockserver.netty.version>5.5.4</mockserver.netty.version>
17         </properties>
18         
19     <dependencies>
20         <dependency>
21             <groupId>com.google.guava</groupId>
22             <artifactId>guava</artifactId>
23             <version>${guava.version}</version>
24             <scope>compile</scope>
25         </dependency>
26
27         <dependency>
28             <groupId>junit</groupId>
29             <artifactId>junit</artifactId>
30             <version>${junit.version}</version>
31             <scope>compile</scope>
32         </dependency>
33
34         <dependency>
35             <groupId>org.assertj</groupId>
36             <artifactId>assertj-core</artifactId>
37         </dependency>
38
39         <dependency>
40             <groupId>org.hamcrest</groupId>
41             <artifactId>hamcrest-all</artifactId>
42             <version>${hamcrest-all.version}</version>
43             <scope>test</scope>
44         </dependency>
45         <dependency>
46             <groupId>org.testng</groupId>
47             <artifactId>testng</artifactId>
48             <version>${testng.version}</version>
49             <scope>compile</scope>
50         </dependency>
51
52         <dependency>
53             <groupId>com.aventstack</groupId>
54             <artifactId>extentreports</artifactId>
55             <version>3.0.6</version>
56             <scope>compile</scope>
57         </dependency>
58
59         <dependency>
60             <groupId>org.mockito</groupId>
61             <artifactId>mockito-core</artifactId>
62             <scope>test</scope>
63         </dependency>
64
65         <dependency>
66             <groupId>com.typesafe</groupId>
67             <artifactId>config</artifactId>
68             <version>1.0.2</version>
69             <scope>compile</scope>
70         </dependency>
71
72         <dependency>
73             <groupId>log4j</groupId>
74             <artifactId>log4j</artifactId>
75             <version>1.2.17</version>
76             <scope>compile</scope>
77         </dependency>
78
79         <dependency>
80             <groupId>com.jcraft.jsch</groupId>
81             <artifactId>com.springsource.com.jcraft.jsch</artifactId>
82             <version>0.1.41</version>
83             <scope>compile</scope>
84         </dependency>
85
86         <dependency>
87             <groupId>org.openecomp.sdc</groupId>
88             <artifactId>common-app-api</artifactId>
89             <version>${project.version}</version>
90             <scope>compile</scope>
91         </dependency>
92
93         <dependency>
94             <groupId>org.openecomp.sdc.be</groupId>
95             <artifactId>common-be</artifactId>
96             <version>${project.version}</version>
97             <scope>compile</scope>
98         </dependency>
99
100         <!-- CHECK CATLOG MODEL -->
101         <dependency>
102             <groupId>org.openecomp.sdc.be</groupId>
103             <artifactId>catalog-model</artifactId>
104             <version>${project.version}</version>
105             <scope>compile</scope>
106         </dependency>
107
108         <!-- catalog dao -->
109         <dependency>
110             <groupId>org.openecomp.sdc.be</groupId>
111             <artifactId>catalog-dao</artifactId>
112             <version>${project.version}</version>
113             <scope>compile</scope>
114         </dependency>
115         <!-- functional java -->
116         <dependency>
117             <groupId>org.functionaljava</groupId>
118             <artifactId>functionaljava</artifactId>
119             <version>${functionaljava.version}</version>
120             <scope>compile</scope>
121         </dependency>
122         <!-- CASSANDRA -->
123         <dependency>
124             <groupId>com.datastax.cassandra</groupId>
125             <artifactId>cassandra-driver-core</artifactId>
126             <version>${cassandra.driver.version}</version>
127             <scope>compile</scope>
128         </dependency>
129         <!-- CASSANDRA END -->
130
131         <!-- slf4j + logback -->
132         <dependency>
133             <groupId>org.slf4j</groupId>
134             <artifactId>slf4j-api</artifactId>
135             <version>${slf4j-api.version}</version>
136             <scope>compile</scope>
137         </dependency>
138
139         <dependency>
140             <groupId>ch.qos.logback</groupId>
141             <artifactId>logback-classic</artifactId>
142             <version>${logback.version}</version>
143             <scope>compile</scope>
144         </dependency>
145
146         <dependency>
147             <groupId>ch.qos.logback</groupId>
148             <artifactId>logback-core</artifactId>
149             <version>${logback.version}</version>
150             <scope>compile</scope>
151         </dependency>
152
153         <dependency>
154             <groupId>com.googlecode.json-simple</groupId>
155             <artifactId>json-simple</artifactId>
156             <version>${json-simple.version}</version>
157             <scope>compile</scope>
158         </dependency>
159
160         <!-- File changes listener -->
161         <dependency>
162             <groupId>org.apache.commons</groupId>
163             <artifactId>commons-jci-core</artifactId>
164             <version>${commons-jci-core.version}</version>
165             <scope>compile</scope>
166         </dependency>
167
168         <dependency>
169             <groupId>commons-codec</groupId>
170             <artifactId>commons-codec</artifactId>
171             <version>${commons-codec}</version>
172             <scope>compile</scope>
173         </dependency>
174
175         <!-- Gson -->
176         <dependency>
177             <groupId>com.google.code.gson</groupId>
178             <artifactId>gson</artifactId>
179             <version>${gson.version}</version>
180             <scope>compile</scope>
181         </dependency>
182
183         <!-- Snake Yaml -->
184         <dependency>
185             <groupId>org.yaml</groupId>
186             <artifactId>snakeyaml</artifactId>
187             <version>${snakeyaml.version}</version>
188             <scope>compile</scope>
189         </dependency>
190
191         <!-- http client -->
192         <dependency>
193             <groupId>org.apache.httpcomponents</groupId>
194             <artifactId>httpclient</artifactId>
195             <version>${httpclient.version}</version>
196             <scope>compile</scope>
197         </dependency>
198
199         <dependency>
200             <groupId>org.apache.httpcomponents</groupId>
201             <artifactId>httpmime</artifactId>
202             <version>${httpclient.version}</version>
203             <scope>compile</scope>
204         </dependency>
205
206         <dependency>
207             <groupId>commons-io</groupId>
208             <artifactId>commons-io</artifactId>
209             <version>2.5</version>
210             <scope>compile</scope>
211         </dependency>
212
213         <dependency>
214             <groupId>commons-logging</groupId>
215             <artifactId>commons-logging</artifactId>
216             <version>${commons-logging}</version>
217             <scope>compile</scope>
218         </dependency>
219
220         <!-- http core -->
221         <dependency>
222             <groupId>org.apache.httpcomponents</groupId>
223             <artifactId>httpcore</artifactId>
224             <version>${httpcore.version}</version>
225             <scope>compile</scope>
226         </dependency>
227
228         <dependency>
229             <groupId>org.janusgraph</groupId>
230             <artifactId>janusgraph-core</artifactId>
231             <version>${janusgraph.version}</version>
232             <scope>compile</scope>
233             <exclusions>
234                 <exclusion>
235                     <artifactId>slf4j-log4j12</artifactId>
236                     <groupId>org.slf4j</groupId>
237                 </exclusion>
238                 <exclusion>
239                     <artifactId>commons-collections</artifactId>
240                     <groupId>commons-collections</groupId>
241                 </exclusion>
242                 <exclusion>
243                     <artifactId>groovy</artifactId>
244                     <groupId>org.codehaus.groovy</groupId>
245                 </exclusion>
246             </exclusions>
247         </dependency>
248
249         <dependency>
250             <groupId>org.janusgraph</groupId>
251             <artifactId>janusgraph-cassandra</artifactId>
252             <version>${janusgraph.version}</version>
253             <scope>compile</scope>
254             <exclusions>
255                 <exclusion>
256                     <artifactId>slf4j-log4j12</artifactId>
257                     <groupId>org.slf4j</groupId>
258                 </exclusion>
259             </exclusions>
260         </dependency>
261
262         <dependency>
263             <groupId>org.codehaus.jackson</groupId>
264             <artifactId>jackson-mapper-asl</artifactId>
265             <version>1.9.2</version>
266             <scope>compile</scope>
267         </dependency>
268
269         <dependency>
270             <groupId>com.fasterxml.jackson.core</groupId>
271             <artifactId>jackson-databind</artifactId>
272             <version>${jackson.version}</version>
273             <scope>compile</scope>
274         </dependency>
275
276         <dependency>
277             <groupId>com.fasterxml.jackson.core</groupId>
278             <artifactId>jackson-core</artifactId>
279             <version>${jackson.version}</version>
280             <scope>compile</scope>
281         </dependency>
282
283         <dependency>
284             <groupId>org.onap.portal.sdk</groupId>
285             <artifactId>epsdk-fw</artifactId>
286             <version>${ecomp.version}</version>
287             <scope>compile</scope>
288             <exclusions>
289                 <exclusion>
290                     <artifactId>slf4j-log4j12</artifactId>
291                     <groupId>org.slf4j</groupId>
292                 </exclusion>
293             </exclusions>
294         </dependency>
295
296         <dependency>
297             <groupId>org.json</groupId>
298             <artifactId>json</artifactId>
299             <version>20131018</version>
300         </dependency>
301
302         <dependency>
303             <groupId>org.onap.sdc.sdc-tosca</groupId>
304             <artifactId>sdc-tosca</artifactId>
305             <version>1.4.6</version>
306             <scope>compile</scope>
307         </dependency>
308
309         <dependency>
310             <groupId>info.cukes</groupId>
311             <artifactId>cucumber-junit</artifactId>
312             <version>1.2.4</version>
313             <scope>test</scope>
314         </dependency>
315
316         <dependency>
317             <groupId>info.cukes</groupId>
318             <artifactId>cucumber-core</artifactId>
319             <version>1.2.4</version>
320             <scope>test</scope>
321         </dependency>
322         
323         <dependency>
324             <groupId>info.cukes</groupId>
325             <artifactId>gherkin</artifactId>
326             <version>2.12.2</version>
327         </dependency>
328         <dependency>
329             <groupId>info.cukes</groupId>
330             <artifactId>cucumber-java</artifactId>
331             <version>1.2.5</version>
332             <scope>test</scope>
333         </dependency>
334
335         <dependency>
336             <groupId>info.cukes</groupId>
337             <artifactId>cucumber-jvm-deps</artifactId>
338             <version>1.0.5</version>
339         </dependency>
340
341         <dependency>
342             <groupId>org.mock-server</groupId>
343             <artifactId>mockserver-netty</artifactId>
344             <version>${mockserver.netty.version}</version>
345             <scope>test</scope>
346             <exclusions>
347                 <exclusion>
348                     <artifactId>commons-collections</artifactId>
349                     <groupId>commons-collections</groupId>
350                 </exclusion>
351             </exclusions>
352         </dependency>
353
354         <dependency>
355             <groupId>org.openecomp.sdc.sdc-distribution-client</groupId>
356             <artifactId>sdc-distribution-client</artifactId>
357             <version>1.2.2 </version>
358             <scope>test</scope>
359         </dependency>
360
361         <!-- With TestNG -->
362         <dependency>
363             <groupId>info.cukes</groupId>
364             <artifactId>cucumber-testng</artifactId>
365             <version>1.2.5</version>
366         </dependency>
367
368         <!-- spring -->
369         <dependency>
370             <groupId>org.springframework</groupId>
371             <artifactId>spring-context</artifactId>
372             <version>${spring.version}</version>
373             <scope>compile</scope>
374         </dependency>
375
376         <!-- CASSANDRA -->
377         <dependency>
378             <groupId>com.datastax.cassandra</groupId>
379             <artifactId>cassandra-driver-mapping</artifactId>
380             <version>${cassandra.driver.version}</version>
381             <scope>compile</scope>
382         </dependency>
383         <!-- CASSANDRA END -->
384
385         <dependency>
386             <groupId>org.codehaus.groovy</groupId>
387             <artifactId>groovy</artifactId>
388         </dependency>
389
390         <dependency>
391             <groupId>io.netty</groupId>
392             <artifactId>netty-all</artifactId>
393         </dependency>
394
395         <dependency>
396             <groupId>io.netty</groupId>
397             <artifactId>netty-handler</artifactId>
398         </dependency>
399
400     </dependencies>
401
402     <build>
403         <plugins>
404             <plugin>
405                 <groupId>org.apache.maven.plugins</groupId>
406                 <artifactId>maven-clean-plugin</artifactId>
407                 <executions>
408                     <execution>
409                         <id>clean.testsuit.folder</id>
410                         <phase>clean</phase>
411                         <goals>
412                             <goal>clean</goal>
413                         </goals>
414                         <configuration>
415                             <filesets>
416                                 <!-- Sanity jar -->
417                                 <fileset>
418                                     <directory>${project.basedir}/sdc-api-tests</directory>
419                                     <followSymlinks>false</followSymlinks>
420                                     <includes>
421                                         <include>*.jar</include>
422                                     </includes>
423                                 </fileset>
424                                 <!-- Sanity test suites -->
425                                 <fileset>
426                                     <directory>${project.basedir}/sdc-api-tests/chef-repo/cookbooks/sdc-api-tests/files/default/testSuites</directory>
427                                     <followSymlinks>false</followSymlinks>
428                                 </fileset>
429                             </filesets>
430                         </configuration>
431                     </execution>
432                 </executions>
433             </plugin>
434
435             <plugin>
436                 <groupId>org.apache.maven.plugins</groupId>
437                 <artifactId>maven-deploy-plugin</artifactId>
438                 <configuration>
439                     <skip>true</skip>
440                 </configuration>
441             </plugin>
442
443             <!-- ============================================= -->
444             <!-- Create the JAR file with its dependencies -->
445             <!-- ============================================= -->
446             <plugin>
447                 <groupId>org.apache.maven.plugins</groupId>
448                 <artifactId>maven-assembly-plugin</artifactId>
449                 <executions>
450                     <execution>
451                         <id>create.jar.with.dependencies</id>
452                         <phase>package</phase>
453                         <goals>
454                             <goal>single</goal>
455                         </goals>
456                         <configuration>
457                             <archive>
458                                 <manifest>
459                                     <mainClass>org.openecomp.sdc.ci.tests.run.StartTest</mainClass>
460                                 </manifest>
461                             </archive>
462                             <descriptorRefs>
463                                 <descriptorRef>jar-with-dependencies</descriptorRef>
464                             </descriptorRefs>
465                         </configuration>
466                     </execution>
467                 </executions>
468             </plugin>
469             <plugin>
470                 <groupId>com.github.sylvainlaurent.maven</groupId>
471                 <artifactId>yaml-json-validator-maven-plugin</artifactId>
472                 <executions>
473                     <execution>
474                         <id>validate</id>
475                         <phase>validate</phase>
476                         <goals>
477                             <goal>validate</goal>
478                         </goals>
479                         <configuration>
480                             <validationSets>
481                                 <validationSet>
482                                     <includes>
483                                         <include>src/main/resources/**/*.y*ml</include>
484                                         <include>src/test/resources/**/*.y*ml</include>
485                                     </includes>
486                                     <excludes>
487                                         <exclude>src/test/resources/CI/tests/importToscaResourceByCreateUrl/occurencyFalure*.y*ml</exclude>
488                                         <exclude>src/test/resources/CI/tests/importToscaResourceByCreateUrl/noContent*.y*ml</exclude>
489                                         <exclude>src/test/resources/CI/tests/HeatDeploymentArtifacts/invalid*.y*ml</exclude>
490                                     </excludes>
491                                 </validationSet>
492                                 <validationSet>
493                                     <includes>
494                                         <include>src/main/resources/**/*.json</include>
495                                         <include>src/test/resources/**/*.json</include>
496                                     </includes>
497                                     <excludes>
498                                         <exclude>src/test/resources/CI/tests/HeatDeploymentArtifacts/invalid*.json</exclude>
499                                     </excludes>
500                                 </validationSet>
501                             </validationSets>
502                         </configuration>
503                     </execution>
504                 </executions>
505             </plugin>
506         </plugins>
507     </build>
508     <profiles>
509     <profile>
510         <id>docker</id>
511         <activation>
512             <activeByDefault>false</activeByDefault>
513         </activation>
514         <build>
515             <plugins>
516                 <plugin>
517                     <groupId>org.apache.maven.plugins</groupId>
518                     <artifactId>maven-resources-plugin</artifactId>
519                     <executions>
520                         <execution>
521                             <id>copy-tests-suites</id>
522                             <phase>verify</phase>
523                             <goals>
524                                 <goal>copy-resources</goal>
525                             </goals>
526                             <configuration>
527                                 <outputDirectory>sdc-api-tests/chef-repo/cookbooks/sdc-api-tests/files/default/testSuites</outputDirectory>
528                                 <resources>
529                                     <resource>
530                                         <directory>${project.parent.basedir}/test-apis-ci/src/main/resources/ci/testSuites</directory>
531                                         <includes>
532                                             <include>*</include>
533                                         </includes>
534                                     </resource>
535                                 </resources>
536                             </configuration>
537                         </execution>
538
539                         <execution>
540                             <id>copy-resources-test-apis-ci</id>
541                             <phase>verify</phase>
542                             <goals>
543                                 <goal>copy-resources</goal>
544                             </goals>
545                             <configuration>
546                                 <outputDirectory>sdc-api-tests</outputDirectory>
547                                 <resources>
548                                     <resource>
549                                         <directory>${project.parent.basedir}/test-apis-ci/target</directory>
550                                         <includes>
551                                             <include>test-apis-ci-${project.version}-jar-with-dependencies.jar</include>
552                                         </includes>
553                                     </resource>
554                                 </resources>
555                             </configuration>
556                         </execution>
557                     </executions>
558                 </plugin>
559
560                 <plugin>
561                     <groupId>io.fabric8</groupId>
562                     <artifactId>docker-maven-plugin</artifactId>
563                     <configuration>
564                         <apiVersion>1.23</apiVersion>
565                         <registry>nexus3.onap.org:10001</registry>
566                         <authConfig>
567                             <pull>
568                                 <username>docker</username>
569                                 <password>docker</password>
570                             </pull>
571                         </authConfig>
572                         <images>
573
574
575                             <!-- Build sanity image -->
576                             <image>
577                                 <name>onap/sdc-api-tests</name>
578                                 <alias>sdc-api-tests</alias>
579                                 <build>
580                                     <cleanup>try</cleanup>
581                                     <dockerFileDir>${project.basedir}/sdc-api-tests</dockerFileDir>
582                                     <tags>
583                                         <tag>${docker.tag}</tag>
584                                         <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag>
585                                     </tags>
586                                 </build>
587                             </image>
588
589                         </images>
590                     </configuration>
591                     <executions>
592                         <execution>
593                             <id>clean-images</id>
594                             <phase>pre-clean</phase>
595                             <goals>
596                                 <goal>remove</goal>
597                             </goals>
598                             <configuration>
599                                 <removeAll>true</removeAll>
600                                 <image>onap/sdc-api-tests</image>
601                             </configuration>
602                         </execution>
603
604                         <execution>
605                             <id>generate-images</id>
606                             <phase>install</phase>
607                             <goals>
608                                 <goal>build</goal>
609                             </goals>
610                         </execution>
611
612                         <execution>
613                             <id>push-images</id>
614                             <phase>deploy</phase>
615                             <goals>
616                                 <goal>push</goal>
617                             </goals>
618                             <configuration>
619                                 <image>onap/sdc-api-tests</image>
620                             </configuration>
621                         </execution>
622                     </executions>
623                 </plugin>
624             </plugins>
625         </build>
626     </profile>
627 </profiles>
628
629
630 </project>