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