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