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