Prepare for Junit5
[sdc.git] / asdctool / 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   <modelVersion>4.0.0</modelVersion>
5
6   <artifactId>asdctool</artifactId>
7   <packaging>jar</packaging>
8
9   <parent>
10     <groupId>org.openecomp.sdc</groupId>
11     <artifactId>sdc-main</artifactId>
12     <version>1.7.0-SNAPSHOT</version>
13   </parent>
14
15   <dependencies>
16     <!--JUnit Jupiter Engine to depend on the JUnit5 engine and JUnit 5 API -->
17     <dependency>
18       <groupId>org.junit.jupiter</groupId>
19       <artifactId>junit-jupiter-engine</artifactId>
20       <version>${junitJupiter.version}</version>
21       <scope>test</scope>
22     </dependency>
23     <!--JUnit Jupiter Engine to depend on the JUnit4 engine and JUnit 4 API  -->
24     <dependency>
25       <groupId>org.junit.vintage</groupId>
26       <artifactId>junit-vintage-engine</artifactId>
27       <version>${junitJupiter.version}</version>
28     </dependency>
29
30     <dependency>
31       <groupId>com.google.guava</groupId>
32       <artifactId>guava</artifactId>
33       <version>${guava.version}</version>
34       <scope>compile</scope>
35     </dependency>
36
37     <!-- ASDC dependencies -->
38     <dependency>
39       <groupId>org.openecomp.sdc.be</groupId>
40       <artifactId>common-be</artifactId>
41       <version>${project.version}</version>
42       <scope>compile</scope>
43     </dependency>
44     <dependency>
45       <groupId>org.openecomp.sdc</groupId>
46       <artifactId>common-app-api</artifactId>
47       <version>${project.version}</version>
48       <scope>compile</scope>
49     </dependency>
50
51     <dependency>
52       <groupId>org.openecomp.sdc.be</groupId>
53       <artifactId>catalog-dao</artifactId>
54       <version>${project.version}</version>
55       <scope>compile</scope>
56     </dependency>
57
58     <dependency>
59       <groupId>org.openecomp.sdc.be</groupId>
60       <artifactId>catalog-model</artifactId>
61       <version>${project.version}</version>
62       <scope>compile</scope>
63     </dependency>
64
65
66     <dependency>
67       <groupId>org.openecomp.sdc</groupId>
68       <artifactId>catalog-be</artifactId>
69       <version>${project.version}</version>
70
71       <!-- Comment Out in order to debug in eclipse -->
72       <classifier>classes</classifier>
73
74       <exclusions>
75         <exclusion>
76           <groupId>org.openecomp.ecompsdkos</groupId>
77           <artifactId>epsdk-fw</artifactId>
78         </exclusion>
79
80         <exclusion>
81           <groupId>org.onap.sdc.common</groupId>
82           <artifactId>onap-common-lib</artifactId>
83         </exclusion>
84
85         <exclusion>
86           <groupId>com.att.nsa</groupId>
87           <artifactId>cambriaClient</artifactId>
88         </exclusion>
89         <exclusion>
90           <groupId>com.att.nsa</groupId>
91           <artifactId>dmaapClient</artifactId>
92         </exclusion>
93         <exclusion>
94           <artifactId>slf4j-log4j12</artifactId>
95           <groupId>org.slf4j</groupId>
96         </exclusion>
97
98       </exclusions>
99
100       <scope>compile</scope>
101     </dependency>
102
103     <dependency>
104       <groupId>org.onap.portal.sdk</groupId>
105       <artifactId>epsdk-fw</artifactId>
106       <version>${ecomp.version}</version>
107       <scope>compile</scope>
108       <exclusions>
109         <exclusion>
110           <groupId>com.att.nsa</groupId>
111           <artifactId>cambriaClient</artifactId>
112         </exclusion>
113         <exclusion>
114           <groupId>com.att.nsa</groupId>
115           <artifactId>dmaapClient</artifactId>
116         </exclusion>
117         <exclusion>
118           <artifactId>slf4j-log4j12</artifactId>
119           <groupId>org.slf4j</groupId>
120         </exclusion>
121       </exclusions>
122     </dependency>
123
124
125     <!-- ASDC dependencies end -->
126     <dependency>
127       <groupId>org.eclipse.jetty</groupId>
128       <artifactId>jetty-server</artifactId>
129       <version>${jetty.version}</version>
130       <scope>compile</scope>
131     </dependency>
132
133     <dependency>
134       <groupId>org.eclipse.jetty</groupId>
135       <artifactId>jetty-util</artifactId>
136       <version>${jetty.version}</version>
137       <scope>compile</scope>
138     </dependency>
139
140     <!-- listen to file changes -->
141     <dependency>
142       <groupId>org.apache.commons</groupId>
143       <artifactId>commons-jci-core</artifactId>
144       <version>${commons-jci-core.version}</version>
145       <scope>compile</scope>
146     </dependency>
147
148     <dependency>
149       <groupId>commons-cli</groupId>
150       <artifactId>commons-cli</artifactId>
151       <version>1.4</version>
152     </dependency>
153
154     <dependency>
155       <groupId>org.eclipse.jetty</groupId>
156       <artifactId>jetty-servlet</artifactId>
157       <version>${jetty.version}</version>
158       <scope>compile</scope>
159     </dependency>
160
161     <dependency>
162       <groupId>org.glassfish.jersey.core</groupId>
163       <artifactId>jersey-server</artifactId>
164       <version>${jersey-bom.version}</version>
165       <scope>compile</scope>
166     </dependency>
167
168     <dependency>
169       <groupId>org.glassfish.jersey.containers</groupId>
170       <artifactId>jersey-container-servlet-core</artifactId>
171       <version>${jersey-bom.version}</version>
172       <scope>compile</scope>
173     </dependency>
174
175     <dependency>
176       <groupId>org.glassfish.jersey.containers</groupId>
177       <artifactId>jersey-container-jetty-http</artifactId>
178       <version>${jersey-bom.version}</version>
179       <scope>compile</scope>
180     </dependency>
181
182     <dependency>
183       <groupId>org.glassfish.jersey.media</groupId>
184       <artifactId>jersey-media-moxy</artifactId>
185       <version>${jersey-bom.version}</version>
186       <scope>compile</scope>
187     </dependency>
188
189     <dependency>
190       <groupId>org.glassfish.jersey.media</groupId>
191       <artifactId>jersey-media-multipart</artifactId>
192       <version>${jersey-bom.version}</version>
193       <scope>compile</scope>
194     </dependency>
195
196     <!-- slf4j + logback -->
197     <dependency>
198       <groupId>org.slf4j</groupId>
199       <artifactId>slf4j-api</artifactId>
200       <version>${slf4j-api.version}</version>
201       <scope>compile</scope>
202     </dependency>
203
204     <dependency>
205       <groupId>ch.qos.logback</groupId>
206       <artifactId>logback-classic</artifactId>
207       <version>${logback.version}</version>
208       <scope>compile</scope>
209     </dependency>
210
211     <dependency>
212       <groupId>ch.qos.logback</groupId>
213       <artifactId>logback-core</artifactId>
214       <version>${logback.version}</version>
215       <scope>compile</scope>
216     </dependency>
217
218     <!-- groovy -->
219     <dependency>
220       <groupId>org.codehaus.groovy</groupId>
221       <artifactId>groovy</artifactId>
222       <scope>compile</scope>
223     </dependency>
224
225     <dependency>
226       <groupId>org.apache.commons</groupId>
227       <artifactId>commons-configuration2</artifactId>
228       <version>${commons-configuration}</version>
229     </dependency>
230
231     <dependency>
232       <groupId>org.janusgraph</groupId>
233       <artifactId>janusgraph-core</artifactId>
234       <version>${janusgraph.version}</version>
235       <scope>compile</scope>
236       <exclusions>
237         <exclusion>
238           <groupId>org.json</groupId>
239           <artifactId>json</artifactId>
240         </exclusion>
241         <exclusion>
242           <groupId>org.slf4j</groupId>
243           <artifactId>slf4j-log4j12</artifactId>
244         </exclusion>
245         <exclusion>
246           <artifactId>commons-collections</artifactId>
247           <groupId>commons-collections</groupId>
248         </exclusion>
249         <exclusion>
250           <artifactId>groovy</artifactId>
251           <groupId>org.codehaus.groovy</groupId>
252         </exclusion>
253         <exclusion>
254           <groupId>org.apache.thrift</groupId>
255           <artifactId>libthrift</artifactId>
256         </exclusion>
257       </exclusions>
258     </dependency>
259
260     <dependency>
261       <groupId>com.googlecode.json-simple</groupId>
262       <artifactId>json-simple</artifactId>
263       <version>${json-simple.version}</version>
264       <scope>compile</scope>
265     </dependency>
266
267     <dependency>
268       <groupId>org.janusgraph</groupId>
269       <artifactId>janusgraph-cassandra</artifactId>
270       <version>${janusgraph.version}</version>
271       <scope>compile</scope>
272       <exclusions>
273         <exclusion>
274           <groupId>org.slf4j</groupId>
275           <artifactId>slf4j-log4j12</artifactId>
276         </exclusion>
277       </exclusions>
278     </dependency>
279
280     <dependency>
281       <groupId>commons-logging</groupId>
282       <artifactId>commons-logging</artifactId>
283       <version>${commons-logging}</version>
284       <scope>compile</scope>
285     </dependency>
286
287     <dependency>
288       <groupId>commons-codec</groupId>
289       <artifactId>commons-codec</artifactId>
290       <version>${commons-codec}</version>
291       <scope>compile</scope>
292     </dependency>
293
294     <dependency>
295       <groupId>com.fasterxml.jackson.core</groupId>
296       <artifactId>jackson-databind</artifactId>
297       <version>${jackson.version}</version>
298       <scope>compile</scope>
299     </dependency>
300
301     <!-- Explicitly specified in order to override older version included by epsdk-fw -->
302     <dependency>
303       <groupId>com.fasterxml.jackson.core</groupId>
304       <artifactId>jackson-annotations</artifactId>
305       <version>${jackson-annotations.version}</version>
306     </dependency>
307
308     <dependency>
309       <groupId>com.google.code.gson</groupId>
310       <artifactId>gson</artifactId>
311       <version>${gson.version}</version>
312       <scope>compile</scope>
313     </dependency>
314
315     <dependency>
316       <groupId>org.apache.httpcomponents</groupId>
317       <artifactId>httpclient</artifactId>
318       <version>${httpclient.version}</version>
319       <scope>compile</scope>
320     </dependency>
321
322     <dependency>
323       <groupId>org.apache.httpcomponents</groupId>
324       <artifactId>httpcore</artifactId>
325       <version>${httpcore.version}</version>
326       <scope>compile</scope>
327     </dependency>
328
329     <!-- Spring 4 dependencies -->
330     <dependency>
331       <groupId>org.springframework</groupId>
332       <artifactId>spring-core</artifactId>
333       <version>${spring.version}</version>
334       <scope>compile</scope>
335     </dependency>
336
337     <dependency>
338       <groupId>org.springframework</groupId>
339       <artifactId>spring-context</artifactId>
340       <version>${spring.version}</version>
341       <scope>compile</scope>
342     </dependency>
343
344     <dependency>
345       <groupId>org.springframework</groupId>
346       <artifactId>spring-expression</artifactId>
347       <version>${spring.version}</version>
348       <scope>compile</scope>
349     </dependency>
350
351     <dependency>
352       <groupId>org.springframework</groupId>
353       <artifactId>spring-beans</artifactId>
354       <version>${spring.version}</version>
355       <scope>compile</scope>
356     </dependency>
357
358     <dependency>
359       <groupId>org.springframework</groupId>
360       <artifactId>spring-aop</artifactId>
361       <version>${spring.version}</version>
362       <scope>compile</scope>
363     </dependency>
364
365     <!-- Spring 4 dependencies end -->
366     <!-- JavaConfig need this library -->
367     <dependency>
368       <groupId>cglib</groupId>
369       <artifactId>cglib</artifactId>
370       <version>3.2.4</version>
371       <scope>compile</scope>
372     </dependency>
373
374     <dependency>
375       <groupId>org.yaml</groupId>
376       <artifactId>snakeyaml</artifactId>
377       <version>${snakeyaml.version}</version>
378       <scope>compile</scope>
379     </dependency>
380
381     <dependency>
382       <groupId>org.functionaljava</groupId>
383       <artifactId>functionaljava</artifactId>
384       <version>${functionaljava.version}</version>
385       <scope>compile</scope>
386     </dependency>
387
388     <dependency>
389       <groupId>com.fasterxml.jackson.dataformat</groupId>
390       <artifactId>jackson-dataformat-yaml</artifactId>
391       <version>${jackson.version}</version>
392       <scope>compile</scope>
393     </dependency>
394
395     <!-- CASSANDRA -->
396     <dependency>
397       <groupId>com.datastax.cassandra</groupId>
398       <artifactId>cassandra-driver-core</artifactId>
399       <version>${cassandra.driver.version}</version>
400       <scope>compile</scope>
401     </dependency>
402
403     <dependency>
404       <groupId>com.datastax.cassandra</groupId>
405       <artifactId>cassandra-driver-mapping</artifactId>
406       <version>${cassandra.driver.version}</version>
407       <scope>compile</scope>
408     </dependency>
409
410     <!-- CASSANDRA END -->
411
412     <!-- OPEN CSV -->
413     <dependency>
414       <groupId>com.opencsv</groupId>
415       <artifactId>opencsv</artifactId>
416       <version>4.0</version>
417       <scope>compile</scope>
418     </dependency>
419
420     <dependency>
421       <groupId>org.apache.poi</groupId>
422       <artifactId>poi</artifactId>
423       <version>${apache-poi.version}</version>
424     </dependency>
425
426     <dependency>
427       <groupId>org.jdom</groupId>
428       <artifactId>jdom</artifactId>
429       <version>2.0.2</version>
430       <scope>compile</scope>
431     </dependency>
432
433     <!-- Temporary, till building the populate task which adding all components
434       to cache. We will use Serialization Utils. -->
435     <dependency>
436       <groupId>de.ruedigermoeller</groupId>
437       <artifactId>fst</artifactId>
438       <version>2.47</version>
439       <scope>compile</scope>
440     </dependency>
441
442     <!-- testing -->
443     <dependency>
444       <groupId>org.hamcrest</groupId>
445       <artifactId>hamcrest-all</artifactId>
446       <version>${hamcrest-all.version}</version>
447       <scope>test</scope>
448     </dependency>
449
450     <dependency>
451       <groupId>org.junit.jupiter</groupId>
452       <artifactId>junit-jupiter</artifactId>
453       <version>${junitJupiter.version}</version>
454       <scope>test</scope>
455     </dependency>
456
457     <dependency>
458       <groupId>org.mockito</groupId>
459       <artifactId>mockito-junit-jupiter</artifactId>
460       <version>${mockitoJupiter.version}</version>
461       <scope>test</scope>
462     </dependency>
463
464     <dependency>
465       <groupId>org.testng</groupId>
466       <artifactId>testng</artifactId>
467       <version>${testng.version}</version>
468       <scope>test</scope>
469     </dependency>
470
471     <dependency>
472       <groupId>org.mockito</groupId>
473       <artifactId>mockito-core</artifactId>
474       <scope>test</scope>
475     </dependency>
476
477     <dependency>
478       <groupId>org.assertj</groupId>
479       <artifactId>assertj-core</artifactId>
480       <scope>test</scope>
481     </dependency>
482
483     <dependency>
484       <groupId>com.google.code.bean-matchers</groupId>
485       <artifactId>bean-matchers</artifactId>
486       <version>${bean-matchers.version}</version>
487       <scope>test</scope>
488     </dependency>
489
490     <dependency>
491       <groupId>com.github.stefanbirkner</groupId>
492       <artifactId>system-rules</artifactId>
493       <version>1.19.0</version>
494       <scope>test</scope>
495     </dependency>
496
497     <!-- testing end -->
498
499     <dependency>
500       <groupId>io.netty</groupId>
501       <artifactId>netty-all</artifactId>
502     </dependency>
503
504     <dependency>
505       <groupId>io.netty</groupId>
506       <artifactId>netty-handler</artifactId>
507     </dependency>
508     <dependency>
509       <groupId>org.powermock</groupId>
510       <artifactId>powermock-module-junit4</artifactId>
511       <version>${powermock.version}</version>
512       <scope>test</scope>
513     </dependency>
514   </dependencies>
515
516   <build>
517     <finalName>${project.artifactId}-${project.version}-jar-with-dependencies</finalName>
518     <plugins>
519       <plugin>
520         <groupId>org.apache.maven.plugins</groupId>
521         <artifactId>maven-deploy-plugin</artifactId>
522         <configuration>
523           <skip>true</skip>
524         </configuration>
525       </plugin>
526
527       <plugin>
528         <groupId>org.apache.maven.plugins</groupId>
529         <artifactId>maven-assembly-plugin</artifactId>
530         <executions>
531           <execution>
532             <configuration>
533               <finalName>sdctool</finalName>
534               <appendAssemblyId>false</appendAssemblyId>
535               <descriptors>
536                 <descriptor>${project.basedir}/tarball.xml</descriptor>
537               </descriptors>
538             </configuration>
539             <id>assemble-file</id>
540             <phase>verify</phase>
541             <goals>
542               <goal>single</goal>
543             </goals>
544           </execution>
545         </executions>
546       </plugin>
547       <plugin>
548         <groupId>org.apache.maven.plugins</groupId>
549         <artifactId>maven-shade-plugin</artifactId>
550         <executions>
551           <execution>
552             <phase>package</phase>
553             <goals>
554               <goal>shade</goal>
555             </goals>
556             <configuration>
557               <filters>
558                 <filter>
559                   <artifact>org.openecomp.sdc:*</artifact>
560                   <excludes>
561                     <exclude>**/elasticsearch.yml</exclude>
562                   </excludes>
563                 </filter>
564                 <filter>
565                   <artifact>*:*</artifact>
566                   <excludes>
567                     <exclude>META-INF/*.SF</exclude>
568                     <exclude>META-INF/*.DSA</exclude>
569                     <exclude>META-INF/*.RSA</exclude>
570                   </excludes>
571                 </filter>
572               </filters>
573               <transformers>
574                 <transformer
575                   implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
576               </transformers>
577             </configuration>
578           </execution>
579         </executions>
580       </plugin>
581       <plugin>
582         <groupId>ru.yaal.maven</groupId>
583         <artifactId>write-text-files-maven-plugin</artifactId>
584         <configuration>
585           <charset>UTF-8</charset>
586           <files>
587             <file>
588               <path>
589                 ${project.basedir}\sdc-cassandra-init\chef-repo\cookbooks\cassandra-actions\attributes\version.rb
590               </path>
591               <lines>
592                 <line>
593                   normal['version']="${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}"
594                 </line>
595               </lines>
596             </file>
597           </files>
598         </configuration>
599         <executions>
600           <execution>
601             <id>write-text-files</id>
602             <phase>prepare-package</phase>
603             <goals>
604               <goal>write-text-files</goal>
605             </goals>
606           </execution>
607         </executions>
608       </plugin>
609       <plugin>
610         <groupId>org.apache.maven.plugins</groupId>
611         <artifactId>maven-resources-plugin</artifactId>
612         <executions>
613           <execution>
614             <id>copy-tosca-folder</id>
615             <!-- here the phase you need -->
616             <phase>compile</phase>
617             <goals>
618               <goal>copy-resources</goal>
619             </goals>
620             <configuration>
621               <outputDirectory>${project.parent.basedir}/asdctool/tosca</outputDirectory>
622               <resources>
623                 <resource>
624                   <directory>${project.parent.basedir}/catalog-be/src/main/resources/import/tosca
625                   </directory>
626                   <filtering>true</filtering>
627                 </resource>
628               </resources>
629             </configuration>
630           </execution>
631         </executions>
632       </plugin>
633       <plugin>
634         <groupId>com.github.sylvainlaurent.maven</groupId>
635         <artifactId>yaml-json-validator-maven-plugin</artifactId>
636         <executions>
637           <execution>
638             <id>validate</id>
639             <phase>validate</phase>
640             <goals>
641               <goal>validate</goal>
642             </goals>
643             <configuration>
644               <validationSets>
645                 <validationSet>
646                   <includes>
647                     <include>src/main/resources/**/*.y*ml</include>
648                     <include>src/test/resources/**/*.y*ml</include>
649                   </includes>
650                 </validationSet>
651                 <validationSet>
652                   <includes>
653                     <include>src/main/resources/**/*.json</include>
654                     <include>src/test/resources/**/*.json</include>
655                   </includes>
656                   <excludes>
657                     <exclude>src/test/resources/graphError.json</exclude>
658                   </excludes>
659                 </validationSet>
660               </validationSets>
661             </configuration>
662           </execution>
663         </executions>
664       </plugin>
665     </plugins>
666   </build>
667   <profiles>
668     <profile>
669       <id>docker</id>
670       <activation>
671         <activeByDefault>false</activeByDefault>
672       </activation>
673       <build>
674         <plugins>
675           <plugin>
676             <groupId>org.apache.maven.plugins</groupId>
677             <artifactId>maven-resources-plugin</artifactId>
678             <executions>
679               <execution>
680                 <id>copy-sdctool</id>
681                 <phase>verify</phase>
682                 <goals>
683                   <goal>copy-resources</goal>
684                 </goals>
685                 <configuration>
686                   <outputDirectory>
687                     ${basedir}/sdc-cassandra-init/chef-repo/cookbooks/cassandra-actions/files/default
688                   </outputDirectory>
689                   <resources>
690                     <resource>
691                       <directory>${project.parent.basedir}/asdctool/target</directory>
692                       <includes>
693                         <include>sdctool.tar</include>
694                       </includes>
695                     </resource>
696                   </resources>
697                 </configuration>
698               </execution>
699             </executions>
700           </plugin>
701           <plugin>
702             <groupId>io.fabric8</groupId>
703             <artifactId>docker-maven-plugin</artifactId>
704             <configuration>
705               <apiVersion>1.23</apiVersion>
706               <registry>nexus3.onap.org:10001</registry>
707               <authConfig>
708                 <pull>
709                   <username>docker</username>
710                   <password>docker</password>
711                 </pull>
712               </authConfig>
713               <images>
714                 <!-- Build cassandra-init image -->
715                 <image>
716                   <name>onap/sdc-cassandra-init</name>
717                   <alias>sdc-cassandra-init</alias>
718                   <build>
719                     <cleanup>try</cleanup>
720                     <dockerFileDir>${project.basedir}/sdc-cassandra-init</dockerFileDir>
721                     <tags>
722                       <tag>${docker.tag}</tag>
723                       <tag>
724                         ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest
725                       </tag>
726                     </tags>
727                   </build>
728                 </image>
729               </images>
730             </configuration>
731             <executions>
732               <execution>
733                 <id>clean-images</id>
734                 <phase>pre-clean</phase>
735                 <goals>
736                   <goal>remove</goal>
737                 </goals>
738                 <configuration>
739                   <removeAll>true</removeAll>
740                   <image>onap/sdc-cassandra-init</image>
741                 </configuration>
742               </execution>
743
744               <execution>
745                 <id>generate-images</id>
746                 <phase>install</phase>
747                 <goals>
748                   <goal>build</goal>
749                 </goals>
750               </execution>
751
752               <execution>
753                 <id>push-images</id>
754                 <phase>deploy</phase>
755                 <goals>
756                   <goal>push</goal>
757                 </goals>
758                 <configuration>
759                   <image>onap/sdc-cassandra-init</image>
760                 </configuration>
761               </execution>
762             </executions>
763           </plugin>
764         </plugins>
765       </build>
766     </profile>
767   </profiles>
768 </project>