Replace outdated dependency - org.apache.commons:commons-jci-core:jar:1.1
[sdc.git] / asdctool / pom.xml
1 <project xmlns="http://maven.apache.org/POM/4.0.0"
2   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4   <modelVersion>4.0.0</modelVersion>
5
6   <artifactId>asdctool</artifactId>
7   <packaging>jar</packaging>
8
9   <parent>
10     <groupId>org.openecomp.sdc</groupId>
11     <artifactId>sdc-main</artifactId>
12     <version>1.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-logging</groupId>
409       <artifactId>commons-logging</artifactId>
410       <version>${commons-logging}</version>
411       <scope>compile</scope>
412     </dependency>
413
414     <dependency>
415       <groupId>commons-codec</groupId>
416       <artifactId>commons-codec</artifactId>
417       <version>${commons-codec}</version>
418       <scope>compile</scope>
419     </dependency>
420
421     <dependency>
422       <groupId>com.fasterxml.jackson.core</groupId>
423       <artifactId>jackson-databind</artifactId>
424       <version>${jackson.version}</version>
425       <exclusions>
426         <exclusion>
427           <groupId>com.fasterxml.jackson.core</groupId>
428           <artifactId>jackson-core</artifactId>
429         </exclusion>
430       </exclusions>
431     </dependency>
432
433     <!-- Explicitly specified in order to override older version included by epsdk-fw -->
434     <dependency>
435       <groupId>com.fasterxml.jackson.core</groupId>
436       <artifactId>jackson-annotations</artifactId>
437       <version>${jackson-annotations.version}</version>
438     </dependency>
439
440     <dependency>
441       <groupId>com.google.code.gson</groupId>
442       <artifactId>gson</artifactId>
443       <version>${gson.version}</version>
444       <scope>compile</scope>
445     </dependency>
446
447     <dependency>
448       <groupId>org.apache.httpcomponents.client5</groupId>
449       <artifactId>httpclient5</artifactId>
450       <version>${httpclient.version}</version>
451       <scope>compile</scope>
452       <exclusions>
453         <exclusion>
454           <groupId>org.apache.httpcomponents</groupId>
455           <artifactId>httpcore</artifactId>
456         </exclusion>
457       </exclusions>
458     </dependency>
459
460     <dependency>
461       <groupId>org.apache.httpcomponents</groupId>
462       <artifactId>httpcore</artifactId>
463       <version>${httpcore.version}</version>
464       <scope>compile</scope>
465     </dependency>
466
467     <!-- Spring 4 dependencies -->
468     <dependency>
469       <groupId>org.springframework</groupId>
470       <artifactId>spring-core</artifactId>
471       <version>${spring.version}</version>
472       <scope>compile</scope>
473     </dependency>
474
475     <dependency>
476       <groupId>org.springframework</groupId>
477       <artifactId>spring-context</artifactId>
478       <version>${spring.version}</version>
479       <scope>compile</scope>
480       <exclusions>
481         <exclusion>
482           <groupId>org.springframework</groupId>
483           <artifactId>spring-expression</artifactId>
484         </exclusion>
485         <exclusion>
486           <groupId>org.springframework</groupId>
487           <artifactId>spring-core</artifactId>
488         </exclusion>
489       </exclusions>
490     </dependency>
491
492     <dependency>
493       <groupId>org.springframework</groupId>
494       <artifactId>spring-expression</artifactId>
495       <version>${spring.version}</version>
496       <scope>compile</scope>
497     </dependency>
498
499     <dependency>
500       <groupId>org.springframework</groupId>
501       <artifactId>spring-beans</artifactId>
502       <version>${spring.version}</version>
503       <scope>compile</scope>
504     </dependency>
505
506     <dependency>
507       <groupId>org.springframework</groupId>
508       <artifactId>spring-aop</artifactId>
509       <version>${spring.version}</version>
510       <scope>compile</scope>
511       <exclusions>
512         <exclusion>
513           <groupId>org.springframework</groupId>
514           <artifactId>spring-core</artifactId>
515         </exclusion>
516       </exclusions>
517     </dependency>
518
519     <!-- Spring 4 dependencies end -->
520     <!-- JavaConfig need this library -->
521     <dependency>
522       <groupId>cglib</groupId>
523       <artifactId>cglib</artifactId>
524       <version>3.2.4</version>
525       <scope>compile</scope>
526     </dependency>
527
528     <dependency>
529       <groupId>org.yaml</groupId>
530       <artifactId>snakeyaml</artifactId>
531       <version>${snakeyaml.version}</version>
532       <scope>compile</scope>
533     </dependency>
534
535     <dependency>
536       <groupId>org.functionaljava</groupId>
537       <artifactId>functionaljava</artifactId>
538       <version>${functionaljava.version}</version>
539       <scope>compile</scope>
540     </dependency>
541
542     <dependency>
543       <groupId>com.fasterxml.jackson.dataformat</groupId>
544       <artifactId>jackson-dataformat-yaml</artifactId>
545       <version>${jackson.version}</version>
546       <exclusions>
547         <exclusion>
548           <groupId>com.fasterxml.jackson.core</groupId>
549           <artifactId>jackson-core</artifactId>
550         </exclusion>
551       </exclusions>
552     </dependency>
553
554     <!-- CASSANDRA -->
555     <dependency>
556       <groupId>com.datastax.cassandra</groupId>
557       <artifactId>cassandra-driver-core</artifactId>
558       <version>${cassandra.driver.version}</version>
559       <scope>compile</scope>
560       <exclusions>
561         <exclusion>
562           <groupId>com.github.jnr</groupId>
563           <artifactId>jnr-posix</artifactId>
564         </exclusion>
565       </exclusions>
566     </dependency>
567
568     <dependency>
569       <groupId>com.datastax.cassandra</groupId>
570       <artifactId>cassandra-driver-mapping</artifactId>
571       <version>${cassandra.driver.version}</version>
572       <scope>compile</scope>
573     </dependency>
574
575     <!-- CASSANDRA END -->
576
577     <!-- OPEN CSV -->
578     <dependency>
579       <groupId>com.opencsv</groupId>
580       <artifactId>opencsv</artifactId>
581       <version>4.0</version>
582       <scope>compile</scope>
583     </dependency>
584
585     <dependency>
586       <groupId>org.apache.poi</groupId>
587       <artifactId>poi</artifactId>
588       <version>${apache-poi.version}</version>
589     </dependency>
590
591     <!-- Temporary, till building the populate task which adding all components
592       to cache. We will use Serialization Utils. -->
593     <dependency>
594       <groupId>de.ruedigermoeller</groupId>
595       <artifactId>fst</artifactId>
596       <version>2.47</version>
597       <exclusions>
598         <exclusion>
599           <groupId>com.fasterxml.jackson.core</groupId>
600           <artifactId>jackson-core</artifactId>
601         </exclusion>
602       </exclusions>
603     </dependency>
604
605     <!-- testing -->
606     <dependency>
607       <groupId>org.hamcrest</groupId>
608       <artifactId>hamcrest-all</artifactId>
609       <version>${hamcrest-all.version}</version>
610       <scope>test</scope>
611     </dependency>
612
613     <dependency>
614       <groupId>org.junit.jupiter</groupId>
615       <artifactId>junit-jupiter</artifactId>
616       <version>${junitJupiter.version}</version>
617       <scope>test</scope>
618     </dependency>
619
620     <dependency>
621       <groupId>org.mockito</groupId>
622       <artifactId>mockito-junit-jupiter</artifactId>
623       <version>${mockitoJupiter.version}</version>
624       <scope>test</scope>
625     </dependency>
626
627     <dependency>
628       <groupId>org.assertj</groupId>
629       <artifactId>assertj-core</artifactId>
630       <scope>test</scope>
631     </dependency>
632
633     <dependency>
634       <groupId>com.google.code.bean-matchers</groupId>
635       <artifactId>bean-matchers</artifactId>
636       <version>${bean-matchers.version}</version>
637       <scope>test</scope>
638     </dependency>
639     <!-- testing end -->
640
641     <dependency>
642       <groupId>io.netty</groupId>
643       <artifactId>netty-all</artifactId>
644     </dependency>
645
646     <dependency>
647       <groupId>io.netty</groupId>
648       <artifactId>netty-handler</artifactId>
649     </dependency>
650   </dependencies>
651
652   <build>
653     <finalName>${project.artifactId}-${project.version}-jar-with-dependencies</finalName>
654     <plugins>
655       <plugin>
656         <groupId>org.apache.maven.plugins</groupId>
657         <artifactId>maven-deploy-plugin</artifactId>
658         <configuration>
659           <skip>true</skip>
660         </configuration>
661       </plugin>
662
663       <plugin>
664         <groupId>org.apache.maven.plugins</groupId>
665         <artifactId>maven-assembly-plugin</artifactId>
666         <version>${mvn.assembly.version}</version>
667         <executions>
668           <execution>
669             <configuration>
670               <finalName>sdctool</finalName>
671               <appendAssemblyId>false</appendAssemblyId>
672               <descriptors>
673                 <descriptor>${project.basedir}/tarball.xml</descriptor>
674               </descriptors>
675             </configuration>
676             <id>assemble-file</id>
677             <phase>verify</phase>
678             <goals>
679               <goal>single</goal>
680             </goals>
681           </execution>
682         </executions>
683       </plugin>
684       <plugin>
685         <groupId>org.apache.maven.plugins</groupId>
686         <artifactId>maven-shade-plugin</artifactId>
687         <executions>
688           <execution>
689             <phase>package</phase>
690             <goals>
691               <goal>shade</goal>
692             </goals>
693             <configuration>
694               <filters>
695                 <filter>
696                   <artifact>org.openecomp.sdc:*</artifact>
697                   <excludes>
698                     <exclude>**/elasticsearch.yml</exclude>
699                   </excludes>
700                 </filter>
701                 <filter>
702                   <artifact>*:*</artifact>
703                   <excludes>
704                     <exclude>META-INF/*.SF</exclude>
705                     <exclude>META-INF/*.DSA</exclude>
706                     <exclude>META-INF/*.RSA</exclude>
707                   </excludes>
708                 </filter>
709               </filters>
710               <transformers>
711                 <transformer
712                   implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
713               </transformers>
714             </configuration>
715           </execution>
716         </executions>
717       </plugin>
718       <plugin>
719         <groupId>ru.yaal.maven</groupId>
720         <artifactId>write-text-files-maven-plugin</artifactId>
721         <configuration>
722           <charset>UTF-8</charset>
723           <files>
724             <file>
725               <path>
726                 ${project.basedir}\sdc-cassandra-init\chef-repo\cookbooks\cassandra-actions\attributes\version.rb
727               </path>
728               <lines>
729                 <line>
730                   normal['version']="${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}"
731                 </line>
732               </lines>
733             </file>
734           </files>
735         </configuration>
736         <executions>
737           <execution>
738             <id>write-text-files</id>
739             <phase>prepare-package</phase>
740             <goals>
741               <goal>write-text-files</goal>
742             </goals>
743           </execution>
744         </executions>
745       </plugin>
746       <plugin>
747         <groupId>org.apache.maven.plugins</groupId>
748         <artifactId>maven-resources-plugin</artifactId>
749         <executions>
750           <execution>
751             <id>copy-tosca-folder</id>
752             <!-- here the phase you need -->
753             <phase>compile</phase>
754             <goals>
755               <goal>copy-resources</goal>
756             </goals>
757             <configuration>
758               <outputDirectory>${project.parent.basedir}/asdctool/tosca</outputDirectory>
759               <resources>
760                 <resource>
761                   <directory>${project.parent.basedir}/catalog-be/src/main/resources/import/tosca
762                   </directory>
763                 </resource>
764               </resources>
765             </configuration>
766           </execution>
767         </executions>
768       </plugin>
769       <plugin>
770         <groupId>com.github.sylvainlaurent.maven</groupId>
771         <artifactId>yaml-json-validator-maven-plugin</artifactId>
772         <executions>
773           <execution>
774             <id>validate</id>
775             <phase>validate</phase>
776             <goals>
777               <goal>validate</goal>
778             </goals>
779             <configuration>
780               <validationSets>
781                 <validationSet>
782                   <includes>
783                     <include>src/main/resources/**/*.y*ml</include>
784                     <include>src/test/resources/**/*.y*ml</include>
785                   </includes>
786                 </validationSet>
787                 <validationSet>
788                   <includes>
789                     <include>src/main/resources/**/*.json</include>
790                     <include>src/test/resources/**/*.json</include>
791                   </includes>
792                   <excludes>
793                     <exclude>src/test/resources/graphError.json</exclude>
794                   </excludes>
795                 </validationSet>
796               </validationSets>
797               <skip>${skipYamlJsonValidator}</skip>
798             </configuration>
799           </execution>
800         </executions>
801       </plugin>
802     </plugins>
803   </build>
804   <profiles>
805     <profile>
806       <id>docker</id>
807       <activation>
808         <activeByDefault>false</activeByDefault>
809       </activation>
810       <build>
811         <plugins>
812           <plugin>
813             <groupId>org.apache.maven.plugins</groupId>
814             <artifactId>maven-clean-plugin</artifactId>
815             <executions>
816               <execution>
817                 <id>clean.sdctool.tar</id>
818                 <phase>initialize</phase>
819                 <goals>
820                   <goal>clean</goal>
821                 </goals>
822                 <configuration>
823                   <filesets>
824                     <fileset>
825                       <directory>${basedir}/sdc-cassandra-init/chef-repo/cookbooks/cassandra-actions/files/default</directory>
826                       <includes>
827                         <include>sdctool.tar</include>
828                       </includes>
829                     </fileset>
830                   </filesets>
831                 </configuration>
832               </execution>
833             </executions>
834           </plugin>
835           <plugin>
836             <groupId>org.apache.maven.plugins</groupId>
837             <artifactId>maven-resources-plugin</artifactId>
838             <executions>
839               <execution>
840                 <id>copy-sdctool</id>
841                 <phase>verify</phase>
842                 <goals>
843                   <goal>copy-resources</goal>
844                 </goals>
845                 <configuration>
846                   <outputDirectory>
847                     ${basedir}/sdc-cassandra-init/chef-repo/cookbooks/cassandra-actions/files/default
848                   </outputDirectory>
849                   <overwrite>true</overwrite>
850                   <resources>
851                     <resource>
852                       <directory>${project.parent.basedir}/asdctool/target</directory>
853                       <includes>
854                         <include>sdctool.tar</include>
855                       </includes>
856                     </resource>
857                   </resources>
858                 </configuration>
859               </execution>
860             </executions>
861           </plugin>
862           <plugin>
863             <groupId>io.fabric8</groupId>
864             <artifactId>docker-maven-plugin</artifactId>
865             <configuration>
866               <verbose>${verbose}</verbose>
867               <apiVersion>${docker.api.version}</apiVersion>
868               <registry>${docker.registry}</registry>
869               <authConfig>
870                 <pull>
871                   <username>${docker.username}</username>
872                   <password>${docker.password}</password>
873                 </pull>
874               </authConfig>
875               <images>
876                 <!-- Build cassandra-init image -->
877                 <image>
878                   <name>${docker.namespace}/sdc-cassandra-init</name>
879                   <alias>sdc-cassandra-init</alias>
880                   <build>
881                     <cleanup>try</cleanup>
882                     <dockerFileDir>${project.basedir}/sdc-cassandra-init</dockerFileDir>
883                     <tags>
884                       <tag>latest</tag>
885                       <tag>
886                         ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest
887                       </tag>
888                       <tag>
889                         ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-${maven.build.timestamp}
890                       </tag>
891                     </tags>
892                   </build>
893                 </image>
894               </images>
895             </configuration>
896             <executions>
897               <execution>
898                 <id>clean-images</id>
899                 <phase>pre-clean</phase>
900                 <goals>
901                   <goal>remove</goal>
902                 </goals>
903                 <configuration>
904                   <removeAll>true</removeAll>
905                   <image>${docker.namespace}/sdc-cassandra-init</image>
906                 </configuration>
907               </execution>
908
909               <execution>
910                 <id>generate-images</id>
911                 <phase>install</phase>
912                 <goals>
913                   <goal>build</goal>
914                 </goals>
915               </execution>
916
917               <execution>
918                 <id>push-images</id>
919                 <phase>deploy</phase>
920                 <goals>
921                   <goal>push</goal>
922                 </goals>
923                 <configuration>
924                   <image>${docker.namespace}/sdc-cassandra-init</image>
925                 </configuration>
926               </execution>
927             </executions>
928           </plugin>
929         </plugins>
930       </build>
931     </profile>
932   </profiles>
933 </project>