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