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