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