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