Update version to 1.13.6-SNAPSHOT
[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.6-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     <dependency>
211       <groupId>commons-cli</groupId>
212       <artifactId>commons-cli</artifactId>
213       <version>1.4</version>
214     </dependency>
215
216     <dependency>
217       <groupId>org.eclipse.jetty</groupId>
218       <artifactId>jetty-servlet</artifactId>
219       <version>${jetty.version}</version>
220       <scope>compile</scope>
221       <exclusions>
222         <exclusion>
223           <groupId>org.eclipse.jetty</groupId>
224           <artifactId>jetty-security</artifactId>
225         </exclusion>
226       </exclusions>
227     </dependency>
228
229     <dependency>
230       <groupId>org.glassfish.jersey.core</groupId>
231       <artifactId>jersey-server</artifactId>
232       <version>${jersey-bom.version}</version>
233       <scope>compile</scope>
234     </dependency>
235
236     <dependency>
237       <groupId>org.glassfish.jersey.containers</groupId>
238       <artifactId>jersey-container-servlet-core</artifactId>
239       <version>${jersey-bom.version}</version>
240       <scope>compile</scope>
241     </dependency>
242
243     <dependency>
244       <groupId>org.glassfish.jersey.containers</groupId>
245       <artifactId>jersey-container-jetty-http</artifactId>
246       <version>${jersey-bom.version}</version>
247       <scope>compile</scope>
248       <exclusions>
249         <exclusion>
250           <groupId>org.eclipse.jetty</groupId>
251           <artifactId>jetty-continuation</artifactId>
252         </exclusion>
253       </exclusions>
254     </dependency>
255
256     <dependency>
257       <groupId>org.glassfish.jersey.media</groupId>
258       <artifactId>jersey-media-moxy</artifactId>
259       <version>${jersey-bom.version}</version>
260       <scope>compile</scope>
261     </dependency>
262
263     <dependency>
264       <groupId>org.glassfish.jersey.media</groupId>
265       <artifactId>jersey-media-multipart</artifactId>
266       <version>${jersey-bom.version}</version>
267       <scope>compile</scope>
268     </dependency>
269
270     <!-- logback -->
271     <dependency>
272       <groupId>ch.qos.logback</groupId>
273       <artifactId>logback-classic</artifactId>
274       <version>${logback.version}</version>
275       <scope>compile</scope>
276     </dependency>
277
278     <dependency>
279       <groupId>ch.qos.logback</groupId>
280       <artifactId>logback-core</artifactId>
281       <version>${logback.version}</version>
282       <scope>compile</scope>
283     </dependency>
284
285     <!-- groovy -->
286     <dependency>
287       <groupId>org.apache.groovy</groupId>
288       <artifactId>groovy</artifactId>
289       <version>${groovy.version}</version>
290     </dependency>
291
292     <dependency>
293       <groupId>org.apache.commons</groupId>
294       <artifactId>commons-configuration2</artifactId>
295       <version>${commons-configuration}</version>
296     </dependency>
297
298     <dependency>
299       <groupId>org.janusgraph</groupId>
300       <artifactId>janusgraph-core</artifactId>
301       <version>${janusgraph.version}</version>
302       <scope>compile</scope>
303       <exclusions>
304         <exclusion>
305           <groupId>org.apache.tinkerpop</groupId>
306           <artifactId>gremlin-groovy</artifactId>
307         </exclusion>
308         <exclusion>
309           <groupId>org.apache.tinkerpop</groupId>
310           <artifactId>gremlin-core</artifactId>
311         </exclusion>
312         <exclusion>
313           <groupId>org.json</groupId>
314           <artifactId>json</artifactId>
315         </exclusion>
316         <exclusion>
317           <groupId>org.slf4j</groupId>
318           <artifactId>slf4j-log4j12</artifactId>
319         </exclusion>
320         <exclusion>
321           <artifactId>commons-collections</artifactId>
322           <groupId>commons-collections</groupId>
323         </exclusion>
324         <exclusion>
325           <artifactId>groovy</artifactId>
326           <groupId>org.codehaus.groovy</groupId>
327         </exclusion>
328         <exclusion>
329           <groupId>org.apache.thrift</groupId>
330           <artifactId>libthrift</artifactId>
331         </exclusion>
332         <exclusion>
333           <groupId>commons-io</groupId>
334           <artifactId>commons-io</artifactId>
335         </exclusion>
336         <exclusion>
337           <groupId>commons-codec</groupId>
338           <artifactId>commons-codec</artifactId>
339         </exclusion>
340         <exclusion>
341           <groupId>dom4j</groupId>
342           <artifactId>dom4j</artifactId>
343         </exclusion>
344         <exclusion>
345           <groupId>org.slf4j</groupId>
346           <artifactId>jcl-over-slf4j</artifactId>
347         </exclusion>
348       </exclusions>
349     </dependency>
350
351     <dependency>
352       <groupId>org.dom4j</groupId>
353       <artifactId>dom4j</artifactId>
354       <version>${org.dom4j.version}</version>
355     </dependency>
356
357     <dependency>
358       <groupId>org.janusgraph</groupId>
359       <artifactId>janusgraph-cassandra</artifactId>
360       <version>${janusgraph.version}</version>
361       <scope>compile</scope>
362       <exclusions>
363         <exclusion>
364           <groupId>joda-time</groupId>
365           <artifactId>joda-time</artifactId>
366         </exclusion>
367         <exclusion>
368           <groupId>org.slf4j</groupId>
369           <artifactId>slf4j-log4j12</artifactId>
370         </exclusion>
371         <exclusion>
372           <groupId>org.apache.thrift</groupId>
373           <artifactId>libthrift</artifactId>
374         </exclusion>
375         <exclusion>
376           <groupId>org.codehaus.jackson</groupId>
377           <artifactId>jackson-mapper-asl</artifactId>
378         </exclusion>
379         <exclusion>
380           <groupId>org.hibernate</groupId>
381           <artifactId>hibernate-validator</artifactId>
382         </exclusion>
383         <exclusion>
384           <groupId>org.apache.cassandra</groupId>
385           <artifactId>cassandra-all</artifactId>
386         </exclusion>
387         <exclusion>
388           <groupId>javax.validation</groupId>
389           <artifactId>validation-api</artifactId>
390         </exclusion>
391       </exclusions>
392     </dependency>
393
394     <dependency>
395       <groupId>commons-codec</groupId>
396       <artifactId>commons-codec</artifactId>
397       <version>${commons-codec}</version>
398       <scope>compile</scope>
399     </dependency>
400
401     <dependency>
402       <groupId>com.fasterxml.jackson.core</groupId>
403       <artifactId>jackson-databind</artifactId>
404       <version>${jackson.version}</version>
405       <exclusions>
406         <exclusion>
407           <groupId>com.fasterxml.jackson.core</groupId>
408           <artifactId>jackson-core</artifactId>
409         </exclusion>
410       </exclusions>
411     </dependency>
412
413     <!-- Explicitly specified in order to override older version included by epsdk-fw -->
414     <dependency>
415       <groupId>com.fasterxml.jackson.core</groupId>
416       <artifactId>jackson-annotations</artifactId>
417       <version>${jackson-annotations.version}</version>
418     </dependency>
419
420     <dependency>
421       <groupId>com.google.code.gson</groupId>
422       <artifactId>gson</artifactId>
423       <version>${gson.version}</version>
424       <scope>compile</scope>
425     </dependency>
426
427     <dependency>
428       <groupId>org.apache.httpcomponents.client5</groupId>
429       <artifactId>httpclient5</artifactId>
430       <version>${httpclient.version}</version>
431       <scope>compile</scope>
432       <exclusions>
433         <exclusion>
434           <groupId>org.apache.httpcomponents</groupId>
435           <artifactId>httpcore</artifactId>
436         </exclusion>
437       </exclusions>
438     </dependency>
439
440     <dependency>
441       <groupId>org.apache.httpcomponents</groupId>
442       <artifactId>httpcore</artifactId>
443       <version>${httpcore.version}</version>
444       <scope>compile</scope>
445     </dependency>
446
447     <!-- Spring 4 dependencies -->
448     <dependency>
449       <groupId>org.springframework</groupId>
450       <artifactId>spring-core</artifactId>
451       <version>${spring.version}</version>
452       <scope>compile</scope>
453     </dependency>
454
455     <dependency>
456       <groupId>org.springframework</groupId>
457       <artifactId>spring-context</artifactId>
458       <version>${spring.version}</version>
459       <scope>compile</scope>
460       <exclusions>
461         <exclusion>
462           <groupId>org.springframework</groupId>
463           <artifactId>spring-expression</artifactId>
464         </exclusion>
465         <exclusion>
466           <groupId>org.springframework</groupId>
467           <artifactId>spring-core</artifactId>
468         </exclusion>
469       </exclusions>
470     </dependency>
471
472     <dependency>
473       <groupId>org.springframework</groupId>
474       <artifactId>spring-expression</artifactId>
475       <version>${spring.version}</version>
476       <scope>compile</scope>
477     </dependency>
478
479     <dependency>
480       <groupId>org.springframework</groupId>
481       <artifactId>spring-beans</artifactId>
482       <version>${spring.version}</version>
483       <scope>compile</scope>
484     </dependency>
485
486     <dependency>
487       <groupId>org.springframework</groupId>
488       <artifactId>spring-aop</artifactId>
489       <version>${spring.version}</version>
490       <scope>compile</scope>
491       <exclusions>
492         <exclusion>
493           <groupId>org.springframework</groupId>
494           <artifactId>spring-core</artifactId>
495         </exclusion>
496       </exclusions>
497     </dependency>
498
499     <!-- Spring 4 dependencies end -->
500     <!-- JavaConfig need this library -->
501     <dependency>
502       <groupId>cglib</groupId>
503       <artifactId>cglib</artifactId>
504       <version>3.2.4</version>
505       <scope>compile</scope>
506     </dependency>
507
508     <dependency>
509       <groupId>org.yaml</groupId>
510       <artifactId>snakeyaml</artifactId>
511       <version>${snakeyaml.version}</version>
512       <scope>compile</scope>
513     </dependency>
514
515     <dependency>
516       <groupId>org.functionaljava</groupId>
517       <artifactId>functionaljava</artifactId>
518       <version>${functionaljava.version}</version>
519       <scope>compile</scope>
520     </dependency>
521
522     <dependency>
523       <groupId>com.fasterxml.jackson.dataformat</groupId>
524       <artifactId>jackson-dataformat-yaml</artifactId>
525       <version>${jackson.version}</version>
526       <exclusions>
527         <exclusion>
528           <groupId>com.fasterxml.jackson.core</groupId>
529           <artifactId>jackson-core</artifactId>
530         </exclusion>
531       </exclusions>
532     </dependency>
533
534     <!-- CASSANDRA -->
535     <dependency>
536       <groupId>com.datastax.cassandra</groupId>
537       <artifactId>cassandra-driver-core</artifactId>
538       <version>${cassandra.driver.version}</version>
539       <scope>compile</scope>
540       <exclusions>
541         <exclusion>
542           <groupId>com.github.jnr</groupId>
543           <artifactId>jnr-posix</artifactId>
544         </exclusion>
545       </exclusions>
546     </dependency>
547
548     <dependency>
549       <groupId>com.datastax.cassandra</groupId>
550       <artifactId>cassandra-driver-mapping</artifactId>
551       <version>${cassandra.driver.version}</version>
552       <scope>compile</scope>
553     </dependency>
554
555     <!-- CASSANDRA END -->
556
557     <!-- OPEN CSV -->
558     <dependency>
559       <groupId>com.opencsv</groupId>
560       <artifactId>opencsv</artifactId>
561       <version>4.0</version>
562       <scope>compile</scope>
563     </dependency>
564
565     <dependency>
566       <groupId>org.apache.poi</groupId>
567       <artifactId>poi</artifactId>
568       <version>${apache-poi.version}</version>
569     </dependency>
570
571     <!-- Temporary, till building the populate task which adding all components
572       to cache. We will use Serialization Utils. -->
573     <dependency>
574       <groupId>de.ruedigermoeller</groupId>
575       <artifactId>fst</artifactId>
576       <version>2.47</version>
577       <exclusions>
578         <exclusion>
579           <groupId>com.fasterxml.jackson.core</groupId>
580           <artifactId>jackson-core</artifactId>
581         </exclusion>
582       </exclusions>
583     </dependency>
584
585     <!-- testing -->
586     <dependency>
587       <groupId>org.hamcrest</groupId>
588       <artifactId>hamcrest-all</artifactId>
589       <version>${hamcrest-all.version}</version>
590       <scope>test</scope>
591     </dependency>
592
593     <dependency>
594       <groupId>org.junit.jupiter</groupId>
595       <artifactId>junit-jupiter</artifactId>
596       <version>${junitJupiter.version}</version>
597       <scope>test</scope>
598     </dependency>
599
600     <dependency>
601       <groupId>org.mockito</groupId>
602       <artifactId>mockito-junit-jupiter</artifactId>
603       <version>${mockitoJupiter.version}</version>
604       <scope>test</scope>
605     </dependency>
606
607     <dependency>
608       <groupId>org.assertj</groupId>
609       <artifactId>assertj-core</artifactId>
610       <scope>test</scope>
611     </dependency>
612
613     <dependency>
614       <groupId>com.google.code.bean-matchers</groupId>
615       <artifactId>bean-matchers</artifactId>
616       <version>${bean-matchers.version}</version>
617       <scope>test</scope>
618     </dependency>
619     <!-- testing end -->
620
621     <dependency>
622       <groupId>io.netty</groupId>
623       <artifactId>netty-all</artifactId>
624     </dependency>
625
626     <dependency>
627       <groupId>io.netty</groupId>
628       <artifactId>netty-handler</artifactId>
629     </dependency>
630   </dependencies>
631
632   <build>
633     <finalName>${project.artifactId}-${project.version}-jar-with-dependencies</finalName>
634     <plugins>
635       <plugin>
636         <groupId>org.apache.maven.plugins</groupId>
637         <artifactId>maven-deploy-plugin</artifactId>
638         <configuration>
639           <skip>true</skip>
640         </configuration>
641       </plugin>
642
643       <plugin>
644         <groupId>org.apache.maven.plugins</groupId>
645         <artifactId>maven-assembly-plugin</artifactId>
646         <version>${mvn.assembly.version}</version>
647         <executions>
648           <execution>
649             <configuration>
650               <finalName>sdctool</finalName>
651               <appendAssemblyId>false</appendAssemblyId>
652               <descriptors>
653                 <descriptor>${project.basedir}/tarball.xml</descriptor>
654               </descriptors>
655             </configuration>
656             <id>assemble-file</id>
657             <phase>verify</phase>
658             <goals>
659               <goal>single</goal>
660             </goals>
661           </execution>
662         </executions>
663       </plugin>
664       <plugin>
665         <groupId>org.apache.maven.plugins</groupId>
666         <artifactId>maven-shade-plugin</artifactId>
667         <executions>
668           <execution>
669             <phase>package</phase>
670             <goals>
671               <goal>shade</goal>
672             </goals>
673             <configuration>
674               <filters>
675                 <filter>
676                   <artifact>org.openecomp.sdc:*</artifact>
677                   <excludes>
678                     <exclude>**/elasticsearch.yml</exclude>
679                   </excludes>
680                 </filter>
681                 <filter>
682                   <artifact>*:*</artifact>
683                   <excludes>
684                     <exclude>META-INF/*.SF</exclude>
685                     <exclude>META-INF/*.DSA</exclude>
686                     <exclude>META-INF/*.RSA</exclude>
687                   </excludes>
688                 </filter>
689               </filters>
690               <transformers>
691                 <transformer
692                   implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
693               </transformers>
694             </configuration>
695           </execution>
696         </executions>
697       </plugin>
698       <plugin>
699         <groupId>ru.yaal.maven</groupId>
700         <artifactId>write-text-files-maven-plugin</artifactId>
701         <configuration>
702           <charset>UTF-8</charset>
703           <files>
704             <file>
705               <path>
706                 ${project.basedir}\sdc-cassandra-init\chef-repo\cookbooks\cassandra-actions\attributes\version.rb
707               </path>
708               <lines>
709                 <line>
710                   normal['version']="${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}"
711                 </line>
712               </lines>
713             </file>
714           </files>
715         </configuration>
716         <executions>
717           <execution>
718             <id>write-text-files</id>
719             <phase>prepare-package</phase>
720             <goals>
721               <goal>write-text-files</goal>
722             </goals>
723           </execution>
724         </executions>
725       </plugin>
726       <plugin>
727         <groupId>org.apache.maven.plugins</groupId>
728         <artifactId>maven-resources-plugin</artifactId>
729         <executions>
730           <execution>
731             <id>copy-tosca-folder</id>
732             <!-- here the phase you need -->
733             <phase>compile</phase>
734             <goals>
735               <goal>copy-resources</goal>
736             </goals>
737             <configuration>
738               <outputDirectory>${project.parent.basedir}/asdctool/tosca</outputDirectory>
739               <resources>
740                 <resource>
741                   <directory>${project.parent.basedir}/catalog-be/src/main/resources/import/tosca
742                   </directory>
743                 </resource>
744               </resources>
745             </configuration>
746           </execution>
747         </executions>
748       </plugin>
749       <plugin>
750         <groupId>com.github.sylvainlaurent.maven</groupId>
751         <artifactId>yaml-json-validator-maven-plugin</artifactId>
752         <executions>
753           <execution>
754             <id>validate</id>
755             <phase>validate</phase>
756             <goals>
757               <goal>validate</goal>
758             </goals>
759             <configuration>
760               <validationSets>
761                 <validationSet>
762                   <includes>
763                     <include>src/main/resources/**/*.y*ml</include>
764                     <include>src/test/resources/**/*.y*ml</include>
765                   </includes>
766                 </validationSet>
767                 <validationSet>
768                   <includes>
769                     <include>src/main/resources/**/*.json</include>
770                     <include>src/test/resources/**/*.json</include>
771                   </includes>
772                   <excludes>
773                     <exclude>src/test/resources/graphError.json</exclude>
774                   </excludes>
775                 </validationSet>
776               </validationSets>
777               <skip>${skipYamlJsonValidator}</skip>
778             </configuration>
779           </execution>
780         </executions>
781       </plugin>
782     </plugins>
783   </build>
784   <profiles>
785     <profile>
786       <id>docker</id>
787       <activation>
788         <activeByDefault>false</activeByDefault>
789       </activation>
790       <build>
791         <plugins>
792           <plugin>
793             <groupId>org.apache.maven.plugins</groupId>
794             <artifactId>maven-clean-plugin</artifactId>
795             <executions>
796               <execution>
797                 <id>clean.sdctool.tar</id>
798                 <phase>initialize</phase>
799                 <goals>
800                   <goal>clean</goal>
801                 </goals>
802                 <configuration>
803                   <filesets>
804                     <fileset>
805                       <directory>${basedir}/sdc-cassandra-init/chef-repo/cookbooks/cassandra-actions/files/default</directory>
806                       <includes>
807                         <include>sdctool.tar</include>
808                       </includes>
809                     </fileset>
810                   </filesets>
811                 </configuration>
812               </execution>
813             </executions>
814           </plugin>
815           <plugin>
816             <groupId>org.apache.maven.plugins</groupId>
817             <artifactId>maven-resources-plugin</artifactId>
818             <executions>
819               <execution>
820                 <id>copy-sdctool</id>
821                 <phase>verify</phase>
822                 <goals>
823                   <goal>copy-resources</goal>
824                 </goals>
825                 <configuration>
826                   <outputDirectory>
827                     ${basedir}/sdc-cassandra-init/chef-repo/cookbooks/cassandra-actions/files/default
828                   </outputDirectory>
829                   <overwrite>true</overwrite>
830                   <resources>
831                     <resource>
832                       <directory>${project.parent.basedir}/asdctool/target</directory>
833                       <includes>
834                         <include>sdctool.tar</include>
835                       </includes>
836                     </resource>
837                   </resources>
838                 </configuration>
839               </execution>
840             </executions>
841           </plugin>
842           <plugin>
843             <groupId>io.fabric8</groupId>
844             <artifactId>docker-maven-plugin</artifactId>
845             <configuration>
846               <verbose>${verbose}</verbose>
847               <apiVersion>${docker.api.version}</apiVersion>
848               <registry>${docker.registry}</registry>
849               <authConfig>
850                 <pull>
851                   <username>${docker.username}</username>
852                   <password>${docker.password}</password>
853                 </pull>
854               </authConfig>
855               <images>
856                 <!-- Build cassandra-init image -->
857                 <image>
858                   <name>${docker.namespace}/sdc-cassandra-init</name>
859                   <alias>sdc-cassandra-init</alias>
860                   <build>
861                     <cleanup>try</cleanup>
862                     <dockerFileDir>${project.basedir}/sdc-cassandra-init</dockerFileDir>
863                     <tags>
864                       <tag>latest</tag>
865                       <tag>
866                         ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest
867                       </tag>
868                       <tag>
869                         ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-${maven.build.timestamp}
870                       </tag>
871                     </tags>
872                   </build>
873                 </image>
874               </images>
875             </configuration>
876             <executions>
877               <execution>
878                 <id>clean-images</id>
879                 <phase>pre-clean</phase>
880                 <goals>
881                   <goal>remove</goal>
882                 </goals>
883                 <configuration>
884                   <removeAll>true</removeAll>
885                   <image>${docker.namespace}/sdc-cassandra-init</image>
886                 </configuration>
887               </execution>
888
889               <execution>
890                 <id>generate-images</id>
891                 <phase>install</phase>
892                 <goals>
893                   <goal>build</goal>
894                 </goals>
895               </execution>
896
897               <execution>
898                 <id>push-images</id>
899                 <phase>deploy</phase>
900                 <goals>
901                   <goal>push</goal>
902                 </goals>
903                 <configuration>
904                   <image>${docker.namespace}/sdc-cassandra-init</image>
905                 </configuration>
906               </execution>
907             </executions>
908           </plugin>
909         </plugins>
910       </build>
911     </profile>
912   </profiles>
913 </project>