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