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