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