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