fix security vilation SONATYPE-2015-0002
[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                 <dependency>
438                         <groupId>org.elasticsearch.plugin</groupId>
439                         <artifactId>shield</artifactId>
440                         <version>${elastic-search.version}</version>
441                         <scope>compile</scope>
442                 </dependency>
443
444                 <!-- CASSANDRA -->
445                 <dependency>
446                         <groupId>com.datastax.cassandra</groupId>
447                         <artifactId>cassandra-driver-core</artifactId>
448                         <version>${cassandra.driver.version}</version>
449                         <scope>compile</scope>
450                 </dependency>
451
452                 <dependency>
453                         <groupId>com.datastax.cassandra</groupId>
454                         <artifactId>cassandra-driver-mapping</artifactId>
455                         <version>${cassandra.driver.version}</version>
456                         <scope>compile</scope>
457                 </dependency>
458
459                 <!-- CASSANDRA END -->
460
461                 <!-- OPEN CSV -->
462                 <dependency>
463                         <groupId>com.opencsv</groupId>
464                         <artifactId>opencsv</artifactId>
465                         <version>4.0</version>
466                         <scope>compile</scope>
467                 </dependency>
468
469                 <dependency>
470                         <groupId>org.apache.poi</groupId>
471                         <artifactId>com.springsource.org.apache.poi</artifactId>
472                         <version>3.9.0.FINAL</version>
473                         <scope>compile</scope>
474                 </dependency>
475
476                 <dependency>
477                         <groupId>org.jdom</groupId>
478                         <artifactId>jdom</artifactId>
479                         <version>2.0.2</version>
480                         <scope>compile</scope>
481                 </dependency>
482
483                 <!-- Temporary, till building the populate task which adding all components
484                         to cache. We will use Serialization Utils. -->
485                 <dependency>
486                         <groupId>de.ruedigermoeller</groupId>
487                         <artifactId>fst</artifactId>
488                         <version>2.47</version>
489                         <scope>compile</scope>
490                 </dependency>
491
492                 <!-- testing -->
493                 <dependency>
494                         <groupId>junit</groupId>
495                         <artifactId>junit</artifactId>
496                         <version>${junit.version}</version>
497                         <scope>test</scope>
498                 </dependency>
499
500                 <dependency>
501                         <groupId>org.testng</groupId>
502                         <artifactId>testng</artifactId>
503                         <version>${testng.version}</version>
504                         <scope>test</scope>
505                 </dependency>
506
507                 <dependency>
508                         <groupId>org.mockito</groupId>
509                         <artifactId>mockito-core</artifactId>
510                         <scope>test</scope>
511                 </dependency>
512         <dependency>
513             <groupId>org.assertj</groupId>
514             <artifactId>assertj-core</artifactId>
515             <scope>test</scope>
516         </dependency>
517         <!-- testing end -->
518
519         </dependencies>
520
521         <build>
522                 <finalName>${project.artifactId}-${project.version}-jar-with-dependencies</finalName>
523                 <plugins>
524                         <plugin>
525                                 <groupId>org.apache.maven.plugins</groupId>
526                                 <artifactId>maven-clean-plugin</artifactId>
527                                 <executions>
528                                         <execution>
529                                                 <id>clean-static-files</id>
530                                                 <phase>clean</phase>
531                                                 <goals>
532                                                         <goal>clean</goal>
533                                                 </goals>
534                                                 <configuration>
535                                                         <filesets>
536                                                                 <!-- tosca files -->
537                                                                 <fileset>
538                                                                         <directory>${project.parent.basedir}/asdctool/tosca</directory>
539                                                                         <followSymlinks>false</followSymlinks>
540                                                                 </fileset>
541                                                                 <fileset>
542                                                                         <directory>${project.basedir}/sdc-cassandra-init/chef-repo/cookbooks/cassandra-actions/attributes/</directory>
543                                                                         <followSymlinks>false</followSymlinks>
544                                                                         <includes>
545                                                                                 <include>**/default.rb</include>
546                                                                         </includes>
547                                                                 </fileset>
548                                                                 <fileset>
549                                                                         <directory>${project.basedir}/sdc-cassandra-init/chef-repo/cookbooks/cassandra-actions/files/default/tools</directory>
550                                                                         <followSymlinks>false</followSymlinks>
551                                                                 </fileset>
552                                                                 <fileset>
553                                                                         <directory>${project.basedir}/sdc-cassandra-init/chef-repo/cookbooks/cassandra-actions/files/default</directory>
554                                                                         <followSymlinks>false</followSymlinks>
555                                                                         <includes>
556                                                                                 <include>**/sdctool.tar</include>
557                                                                         </includes>
558                                                                 </fileset>
559                                                         </filesets>
560                                                 </configuration>
561                                         </execution>
562                                 </executions>
563                         </plugin>
564
565                         <plugin>
566                                 <groupId>org.apache.maven.plugins</groupId>
567                                 <artifactId>maven-deploy-plugin</artifactId>
568                                 <configuration>
569                                         <skip>true</skip>
570                                 </configuration>
571                         </plugin>
572
573                         <plugin>
574                                 <groupId>org.apache.maven.plugins</groupId>
575                                 <artifactId>maven-assembly-plugin</artifactId>
576                                 <executions>
577                                         <execution>
578                                                 <configuration>
579                                                         <finalName>sdctool</finalName>
580                                                         <appendAssemblyId>false</appendAssemblyId>
581                                                         <descriptors>
582                                                                 <descriptor>${project.basedir}/tarball.xml</descriptor>
583                                                         </descriptors>
584                                                 </configuration>
585                                                 <id>assemble-file</id>
586                                                 <phase>verify</phase>
587                                                 <goals>
588                                                         <goal>single</goal>
589                                                 </goals>
590                                         </execution>
591                                 </executions>
592                         </plugin>
593
594                         <plugin>
595                                 <groupId>org.apache.maven.plugins</groupId>
596                                 <artifactId>maven-shade-plugin</artifactId>
597                                 <executions>
598                                         <execution>
599                                                 <phase>package</phase>
600                                                 <goals>
601                                                         <goal>shade</goal>
602                                                 </goals>
603                                                 <configuration>
604                                                         <filters>
605                                                                 <filter>
606                                                                         <artifact>org.openecomp.sdc:*</artifact>
607                                                                         <excludes>
608                                                                                 <exclude>**/elasticsearch.yml</exclude>
609                                                                         </excludes>
610                                                                 </filter>
611                                                                 <filter>
612                                                                         <artifact>*:*</artifact>
613                                                                         <excludes>
614                                                                                 <exclude>META-INF/*.SF</exclude>
615                                                                                 <exclude>META-INF/*.DSA</exclude>
616                                                                                 <exclude>META-INF/*.RSA</exclude>
617                                                                         </excludes>
618                                                                 </filter>
619                                                         </filters>
620                                                         <transformers>
621                                                                 <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
622                                                         </transformers>
623                                                 </configuration>
624                                         </execution>
625                                 </executions>
626                         </plugin>
627                         <plugin>
628                                 <groupId>ru.yaal.maven</groupId>
629                                 <artifactId>write-text-files-maven-plugin</artifactId>
630                                 <configuration>
631                                         <charset>UTF-8</charset>
632                                         <files>
633                                                 <file>
634                                                         <path>
635                                                                 ${project.basedir}\sdc-cassandra-init\chef-repo\cookbooks\cassandra-actions\attributes\default.rb
636                                                         </path>
637                                                         <lines>
638                                                                 <line>normal['version'] ="${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}"</line>
639                                                         </lines>
640                                                 </file>
641                                         </files>
642                                 </configuration>
643                                 <executions>
644                                         <execution>
645                                                 <id>write-text-files</id>
646                                                 <phase>prepare-package</phase>
647                                                 <goals>
648                                                         <goal>write-text-files</goal>
649                                                 </goals>
650                                         </execution>
651                                 </executions>
652                         </plugin>
653                         <plugin>
654                                 <groupId>org.apache.maven.plugins</groupId>
655                                 <artifactId>maven-resources-plugin</artifactId>
656                                 <executions>
657                                         <execution>
658                                                 <id>copy-tosca-folder</id>
659                                                 <!-- here the phase you need -->
660                                                 <phase>compile</phase>
661                                                 <goals>
662                                                         <goal>copy-resources</goal>
663                                                 </goals>
664                                                 <configuration>
665                                                         <outputDirectory>${project.parent.basedir}/asdctool/tosca</outputDirectory>
666                                                         <resources>
667                                                                 <resource>
668                                                                         <directory>${project.parent.basedir}/catalog-be/src/main/resources/import/tosca</directory>
669                                                                         <filtering>true</filtering>
670                                                                 </resource>
671                                                         </resources>
672                                                 </configuration>
673                                         </execution>
674                                 </executions>
675                         </plugin>
676                         <plugin>
677                                 <groupId>com.github.sylvainlaurent.maven</groupId>
678                                 <artifactId>yaml-json-validator-maven-plugin</artifactId>
679                                 <executions>
680                                         <execution>
681                                                 <id>validate</id>
682                                                 <phase>validate</phase>
683                                                 <goals>
684                                                         <goal>validate</goal>
685                                                 </goals>
686                                                 <configuration>
687                                                         <validationSets>
688                                                                 <validationSet>
689                                                                         <includes>
690                                                                                 <include>src/main/resources/**/*.y*ml</include>
691                                                                                 <include>src/test/resources/**/*.y*ml</include>
692                                                                         </includes>
693                                                                 </validationSet>
694                                                                 <validationSet>
695                                                                         <includes>
696                                                                                 <include>src/main/resources/**/*.json</include>
697                                                                                 <include>src/test/resources/**/*.json</include>
698                                                                         </includes>
699                                                                 </validationSet>
700                                                         </validationSets>
701                                                 </configuration>
702                                         </execution>
703                                 </executions>
704                         </plugin>
705                 </plugins>
706         </build>
707         <profiles>
708                 <profile>
709                         <id>docker</id>
710                         <activation>
711                                 <activeByDefault>false</activeByDefault>
712                         </activation>
713                         <build>
714                                 <plugins>
715                                         <plugin>
716                                                 <groupId>org.apache.maven.plugins</groupId>
717                                                 <artifactId>maven-resources-plugin</artifactId>
718                                                 <executions>
719                                                         <execution>
720                                                                 <id>copy-sdctool</id>
721                                                                 <phase>verify</phase>
722                                                                 <goals>
723                                                                         <goal>copy-resources</goal>
724                                                                 </goals>
725                                                                 <configuration>
726                                                                         <outputDirectory>${basedir}/sdc-cassandra-init/chef-repo/cookbooks/cassandra-actions/files/default</outputDirectory>
727                                                                         <resources>
728                                                                                 <resource>
729                                                                                         <directory>${project.parent.basedir}/asdctool/target</directory>
730                                                                                         <includes>
731                                                                                                 <include>sdctool.tar</include>
732                                                                                         </includes>
733                                                                                 </resource>
734                                                                         </resources>
735                                                                 </configuration>
736                                                         </execution>
737                                                 </executions>
738                                         </plugin>
739                                         <plugin>
740                                                 <groupId>io.fabric8</groupId>
741                                                 <artifactId>docker-maven-plugin</artifactId>
742                                                 <configuration>
743                                                         <apiVersion>1.23</apiVersion>
744                                                         <registry>nexus3.onap.org:10001</registry>
745                                                         <authConfig>
746                                                                 <pull>
747                                                                         <username>docker</username>
748                                                                         <password>docker</password>
749                                                                 </pull>
750                                                         </authConfig>
751                                                         <images>
752                                                                 <!-- Build cassandra-init image -->
753                                                                 <image>
754                                                                         <name>onap/sdc-cassandra-init</name>
755                                                                         <alias>sdc-cassandra-init</alias>
756                                                                         <build>
757                                                                                 <cleanup>try</cleanup>
758                                                                                 <dockerFileDir>${project.basedir}/sdc-cassandra-init</dockerFileDir>
759                                                                                 <tags>
760                                                                                         <tag>${docker.tag}</tag>
761                                                                                         <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag>
762                                                                                 </tags>
763                                                                         </build>
764                                                                 </image>
765                                                         </images>
766                                                 </configuration>
767                                                 <executions>
768                                                         <execution>
769                                                                 <id>clean-images</id>
770                                                                 <phase>pre-clean</phase>
771                                                                 <goals>
772                                                                         <goal>remove</goal>
773                                                                 </goals>
774                                                                 <configuration>
775                                                                         <removeAll>true</removeAll>
776                                                                         <image>onap/sdc-cassandra-init</image>
777                                                                 </configuration>
778                                                         </execution>
779
780                                                         <execution>
781                                                                 <id>generate-images</id>
782                                                                 <phase>install</phase>
783                                                                 <goals>
784                                                                         <goal>build</goal>
785                                                                 </goals>
786                                                         </execution>
787
788                                                         <execution>
789                                                                 <id>push-images</id>
790                                                                 <phase>deploy</phase>
791                                                                 <goals>
792                                                                         <goal>push</goal>
793                                                                 </goals>
794                                                                 <configuration>
795                                                                         <image>onap/sdc-cassandra-init</image>
796                                                                 </configuration>
797                                                         </execution>
798                                                 </executions>
799                                         </plugin>
800                                 </plugins>
801                         </build>
802                 </profile>
803         </profiles>
804 </project>