Update SDC version to 1.11.8-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.11.8-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           <artifactId>gremlin-groovy</artifactId>
308           <groupId>org.apache.tinkerpop</groupId>
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     </dependency>
545
546     <dependency>
547       <groupId>com.datastax.cassandra</groupId>
548       <artifactId>cassandra-driver-mapping</artifactId>
549       <version>${cassandra.driver.version}</version>
550       <scope>compile</scope>
551     </dependency>
552
553     <!-- CASSANDRA END -->
554
555     <!-- OPEN CSV -->
556     <dependency>
557       <groupId>com.opencsv</groupId>
558       <artifactId>opencsv</artifactId>
559       <version>4.0</version>
560       <scope>compile</scope>
561     </dependency>
562
563     <dependency>
564       <groupId>org.apache.poi</groupId>
565       <artifactId>poi</artifactId>
566       <version>${apache-poi.version}</version>
567     </dependency>
568
569     <!-- Temporary, till building the populate task which adding all components
570       to cache. We will use Serialization Utils. -->
571     <dependency>
572       <groupId>de.ruedigermoeller</groupId>
573       <artifactId>fst</artifactId>
574       <version>2.47</version>
575       <exclusions>
576         <exclusion>
577           <groupId>com.fasterxml.jackson.core</groupId>
578           <artifactId>jackson-core</artifactId>
579         </exclusion>
580       </exclusions>
581     </dependency>
582
583     <!-- testing -->
584     <dependency>
585       <groupId>org.hamcrest</groupId>
586       <artifactId>hamcrest-all</artifactId>
587       <version>${hamcrest-all.version}</version>
588       <scope>test</scope>
589     </dependency>
590
591     <dependency>
592       <groupId>org.junit.jupiter</groupId>
593       <artifactId>junit-jupiter</artifactId>
594       <version>${junitJupiter.version}</version>
595       <scope>test</scope>
596     </dependency>
597
598     <dependency>
599       <groupId>org.mockito</groupId>
600       <artifactId>mockito-junit-jupiter</artifactId>
601       <version>${mockitoJupiter.version}</version>
602       <scope>test</scope>
603     </dependency>
604
605     <dependency>
606       <groupId>org.assertj</groupId>
607       <artifactId>assertj-core</artifactId>
608       <scope>test</scope>
609     </dependency>
610
611     <dependency>
612       <groupId>com.google.code.bean-matchers</groupId>
613       <artifactId>bean-matchers</artifactId>
614       <version>${bean-matchers.version}</version>
615       <scope>test</scope>
616     </dependency>
617     <!-- testing end -->
618
619     <dependency>
620       <groupId>io.netty</groupId>
621       <artifactId>netty-all</artifactId>
622     </dependency>
623
624     <dependency>
625       <groupId>io.netty</groupId>
626       <artifactId>netty-handler</artifactId>
627     </dependency>
628   </dependencies>
629
630   <build>
631     <finalName>${project.artifactId}-${project.version}-jar-with-dependencies</finalName>
632     <plugins>
633       <plugin>
634         <groupId>org.apache.maven.plugins</groupId>
635         <artifactId>maven-deploy-plugin</artifactId>
636         <configuration>
637           <skip>true</skip>
638         </configuration>
639       </plugin>
640
641       <plugin>
642         <groupId>org.apache.maven.plugins</groupId>
643         <artifactId>maven-assembly-plugin</artifactId>
644         <executions>
645           <execution>
646             <configuration>
647               <finalName>sdctool</finalName>
648               <appendAssemblyId>false</appendAssemblyId>
649               <descriptors>
650                 <descriptor>${project.basedir}/tarball.xml</descriptor>
651               </descriptors>
652             </configuration>
653             <id>assemble-file</id>
654             <phase>verify</phase>
655             <goals>
656               <goal>single</goal>
657             </goals>
658           </execution>
659         </executions>
660       </plugin>
661       <plugin>
662         <groupId>org.apache.maven.plugins</groupId>
663         <artifactId>maven-shade-plugin</artifactId>
664         <executions>
665           <execution>
666             <phase>package</phase>
667             <goals>
668               <goal>shade</goal>
669             </goals>
670             <configuration>
671               <filters>
672                 <filter>
673                   <artifact>org.openecomp.sdc:*</artifact>
674                   <excludes>
675                     <exclude>**/elasticsearch.yml</exclude>
676                   </excludes>
677                 </filter>
678                 <filter>
679                   <artifact>*:*</artifact>
680                   <excludes>
681                     <exclude>META-INF/*.SF</exclude>
682                     <exclude>META-INF/*.DSA</exclude>
683                     <exclude>META-INF/*.RSA</exclude>
684                   </excludes>
685                 </filter>
686               </filters>
687               <transformers>
688                 <transformer
689                   implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
690               </transformers>
691             </configuration>
692           </execution>
693         </executions>
694       </plugin>
695       <plugin>
696         <groupId>ru.yaal.maven</groupId>
697         <artifactId>write-text-files-maven-plugin</artifactId>
698         <configuration>
699           <charset>UTF-8</charset>
700           <files>
701             <file>
702               <path>
703                 ${project.basedir}\sdc-cassandra-init\chef-repo\cookbooks\cassandra-actions\attributes\version.rb
704               </path>
705               <lines>
706                 <line>
707                   normal['version']="${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}"
708                 </line>
709               </lines>
710             </file>
711           </files>
712         </configuration>
713         <executions>
714           <execution>
715             <id>write-text-files</id>
716             <phase>prepare-package</phase>
717             <goals>
718               <goal>write-text-files</goal>
719             </goals>
720           </execution>
721         </executions>
722       </plugin>
723       <plugin>
724         <groupId>org.apache.maven.plugins</groupId>
725         <artifactId>maven-resources-plugin</artifactId>
726         <executions>
727           <execution>
728             <id>copy-tosca-folder</id>
729             <!-- here the phase you need -->
730             <phase>compile</phase>
731             <goals>
732               <goal>copy-resources</goal>
733             </goals>
734             <configuration>
735               <outputDirectory>${project.parent.basedir}/asdctool/tosca</outputDirectory>
736               <resources>
737                 <resource>
738                   <directory>${project.parent.basedir}/catalog-be/src/main/resources/import/tosca
739                   </directory>
740                 </resource>
741               </resources>
742             </configuration>
743           </execution>
744         </executions>
745       </plugin>
746       <plugin>
747         <groupId>com.github.sylvainlaurent.maven</groupId>
748         <artifactId>yaml-json-validator-maven-plugin</artifactId>
749         <executions>
750           <execution>
751             <id>validate</id>
752             <phase>validate</phase>
753             <goals>
754               <goal>validate</goal>
755             </goals>
756             <configuration>
757               <validationSets>
758                 <validationSet>
759                   <includes>
760                     <include>src/main/resources/**/*.y*ml</include>
761                     <include>src/test/resources/**/*.y*ml</include>
762                   </includes>
763                 </validationSet>
764                 <validationSet>
765                   <includes>
766                     <include>src/main/resources/**/*.json</include>
767                     <include>src/test/resources/**/*.json</include>
768                   </includes>
769                   <excludes>
770                     <exclude>src/test/resources/graphError.json</exclude>
771                   </excludes>
772                 </validationSet>
773               </validationSets>
774               <skip>${skipYamlJsonValidator}</skip>
775             </configuration>
776           </execution>
777         </executions>
778       </plugin>
779     </plugins>
780   </build>
781   <profiles>
782     <profile>
783       <id>docker</id>
784       <activation>
785         <activeByDefault>false</activeByDefault>
786       </activation>
787       <build>
788         <plugins>
789           <plugin>
790             <groupId>org.apache.maven.plugins</groupId>
791             <artifactId>maven-clean-plugin</artifactId>
792             <executions>
793               <execution>
794                 <id>clean.sdctool.tar</id>
795                 <phase>initialize</phase>
796                 <goals>
797                   <goal>clean</goal>
798                 </goals>
799                 <configuration>
800                   <filesets>
801                     <fileset>
802                       <directory>${basedir}/sdc-cassandra-init/chef-repo/cookbooks/cassandra-actions/files/default</directory>
803                       <includes>
804                         <include>sdctool.tar</include>
805                       </includes>
806                     </fileset>
807                   </filesets>
808                 </configuration>
809               </execution>
810             </executions>
811           </plugin>
812           <plugin>
813             <groupId>org.apache.maven.plugins</groupId>
814             <artifactId>maven-resources-plugin</artifactId>
815             <executions>
816               <execution>
817                 <id>copy-sdctool</id>
818                 <phase>verify</phase>
819                 <goals>
820                   <goal>copy-resources</goal>
821                 </goals>
822                 <configuration>
823                   <outputDirectory>
824                     ${basedir}/sdc-cassandra-init/chef-repo/cookbooks/cassandra-actions/files/default
825                   </outputDirectory>
826                   <overwrite>true</overwrite>
827                   <resources>
828                     <resource>
829                       <directory>${project.parent.basedir}/asdctool/target</directory>
830                       <includes>
831                         <include>sdctool.tar</include>
832                       </includes>
833                     </resource>
834                   </resources>
835                 </configuration>
836               </execution>
837             </executions>
838           </plugin>
839           <plugin>
840             <groupId>io.fabric8</groupId>
841             <artifactId>docker-maven-plugin</artifactId>
842             <configuration>
843               <verbose>${verbose}</verbose>
844               <apiVersion>${docker.api.version}</apiVersion>
845               <registry>${docker.registry}</registry>
846               <authConfig>
847                 <pull>
848                   <username>${docker.username}</username>
849                   <password>${docker.password}</password>
850                 </pull>
851               </authConfig>
852               <images>
853                 <!-- Build cassandra-init image -->
854                 <image>
855                   <name>${docker.namespace}/sdc-cassandra-init</name>
856                   <alias>sdc-cassandra-init</alias>
857                   <build>
858                     <cleanup>try</cleanup>
859                     <dockerFileDir>${project.basedir}/sdc-cassandra-init</dockerFileDir>
860                     <tags>
861                       <tag>latest</tag>
862                       <tag>
863                         ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest
864                       </tag>
865                       <tag>
866                         ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-${maven.build.timestamp}
867                       </tag>
868                     </tags>
869                   </build>
870                 </image>
871               </images>
872             </configuration>
873             <executions>
874               <execution>
875                 <id>clean-images</id>
876                 <phase>pre-clean</phase>
877                 <goals>
878                   <goal>remove</goal>
879                 </goals>
880                 <configuration>
881                   <removeAll>true</removeAll>
882                   <image>${docker.namespace}/sdc-cassandra-init</image>
883                 </configuration>
884               </execution>
885
886               <execution>
887                 <id>generate-images</id>
888                 <phase>install</phase>
889                 <goals>
890                   <goal>build</goal>
891                 </goals>
892               </execution>
893
894               <execution>
895                 <id>push-images</id>
896                 <phase>deploy</phase>
897                 <goals>
898                   <goal>push</goal>
899                 </goals>
900                 <configuration>
901                   <image>${docker.namespace}/sdc-cassandra-init</image>
902                 </configuration>
903               </execution>
904             </executions>
905           </plugin>
906         </plugins>
907       </build>
908     </profile>
909   </profiles>
910 </project>