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