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