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