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