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