Add dependent child service to service
[sdc.git] / catalog-be / 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>catalog-be</artifactId>
6     <packaging>war</packaging>
7
8     <parent>
9         <groupId>org.openecomp.sdc</groupId>
10         <artifactId>sdc-main</artifactId>
11         <version>1.4.0-SNAPSHOT</version>
12     </parent>
13
14     <properties>
15     </properties>
16
17     <dependencies>
18         <!--JSON and YAML Parsing-->
19         <dependency>
20             <groupId>com.fasterxml.jackson.dataformat</groupId>
21             <artifactId>jackson-dataformat-yaml</artifactId>
22             <version>${jackson.version}</version>
23             <scope>compile</scope>
24         </dependency>
25
26         <dependency>
27             <groupId>com.fasterxml.jackson.core</groupId>
28             <artifactId>jackson-databind</artifactId>
29             <version>${jackson.version}</version>
30             <scope>compile</scope>
31         </dependency>
32
33         <dependency>
34             <groupId>org.openecomp.sdc</groupId>
35             <artifactId>security-utils</artifactId>
36             <version>${project.version}</version>
37             <scope>compile</scope>
38         </dependency>
39         <dependency>
40             <groupId>org.onap.sdc.common</groupId>
41             <artifactId>onap-tosca-datatype</artifactId>
42             <version>${project.version}</version>
43             <scope>compile</scope>
44         </dependency>
45
46         <!-- Swagger Dependencies Start -->
47         <dependency>
48             <groupId>io.swagger</groupId>
49             <artifactId>swagger-jersey2-jaxrs</artifactId>
50             <scope>compile</scope>
51             <version>1.5.15</version>
52         </dependency>
53         <!-- Swagger Dependencies End -->
54
55         <dependency>
56             <groupId>org.openecomp.sdc</groupId>
57             <artifactId>common-app-api</artifactId>
58             <version>${project.version}</version>
59             <scope>compile</scope>
60         </dependency>
61
62         <dependency>
63             <groupId>org.openecomp.sdc.be</groupId>
64             <artifactId>common-be</artifactId>
65             <version>${project.version}</version>
66             <scope>compile</scope>
67         </dependency>
68         <dependency>
69             <groupId>org.openecomp.sdc.be</groupId>
70             <artifactId>catalog-dao</artifactId>
71             <version>${project.version}</version>
72             <scope>compile</scope>
73         </dependency>
74
75         <dependency>
76             <groupId>org.openecomp.sdc.be</groupId>
77             <artifactId>catalog-model</artifactId>
78             <version>${project.version}</version>
79             <scope>compile</scope>
80         </dependency>
81
82         <dependency>
83             <groupId>ch.qos.logback</groupId>
84             <artifactId>logback-classic</artifactId>
85             <version>${logback.version}</version>
86             <scope>compile</scope>
87         </dependency>
88
89         <!-- Snake Yaml -->
90         <dependency>
91             <groupId>org.yaml</groupId>
92             <artifactId>snakeyaml</artifactId>
93             <version>${snakeyaml.version}</version>
94             <scope>compile</scope>
95         </dependency>
96
97         <!-- File changes listener -->
98         <dependency>
99             <groupId>org.apache.commons</groupId>
100             <artifactId>commons-jci-core</artifactId>
101             <version>${commons-jci-core.version}</version>
102             <scope>compile</scope>
103         </dependency>
104
105         <!-- Gson -->
106         <dependency>
107             <groupId>com.google.code.gson</groupId>
108             <artifactId>gson</artifactId>
109             <version>${gson.version}</version>
110             <scope>compile</scope>
111         </dependency>
112
113         <!-- jersey -->
114         <dependency>
115             <groupId>org.glassfish.jersey.media</groupId>
116             <artifactId>jersey-media-json-jackson</artifactId>
117             <version>${jersey-bom.version}</version>
118             <scope>compile</scope>
119         </dependency>
120
121         <dependency>
122             <groupId>org.glassfish.jersey.containers</groupId>
123             <artifactId>jersey-container-servlet-core</artifactId>
124             <version>${jersey-bom.version}</version>
125             <scope>compile</scope>
126         </dependency>
127
128         <dependency>
129             <groupId>org.glassfish.jersey.media</groupId>
130             <artifactId>jersey-media-multipart</artifactId>
131             <version>${jersey-bom.version}</version>
132             <scope>compile</scope>
133         </dependency>
134         <dependency>
135             <groupId>org.glassfish.jersey.ext</groupId>
136             <artifactId>jersey-spring4</artifactId>
137             <version>${jersey-bom.version}</version>
138             <exclusions>
139                 <exclusion>
140                     <groupId>org.springframework</groupId>
141                     <artifactId>spring-web</artifactId>
142                 </exclusion>
143                 <exclusion>
144                     <groupId>org.springframework</groupId>
145                     <artifactId>spring-beans</artifactId>
146                 </exclusion>
147                 <exclusion>
148                     <groupId>org.springframework</groupId>
149                     <artifactId>spring-core</artifactId>
150                 </exclusion>
151                 <exclusion>
152                     <groupId>org.springframework</groupId>
153                     <artifactId>spring-aop</artifactId>
154                 </exclusion>
155                 <!-- Transitive dependency of spring-bridge -->
156                 <exclusion>
157                     <groupId>org.springframework</groupId>
158                     <artifactId>spring-context</artifactId>
159                 </exclusion>
160             </exclusions>
161
162         </dependency>
163
164         <!--asm-all-repackaged is a jersey dependency. in current version jersey depends on a version that was compiled using java 9 compiler
165             currently our jetty (v9.3.6) does not support java 9. as soon as jetty gets upgraded we will remove this dependency-->
166         <dependency>
167             <groupId>org.glassfish.hk2.external</groupId>
168             <artifactId>asm-all-repackaged</artifactId>
169         </dependency>
170
171         <dependency>
172             <groupId>org.glassfish.jersey.ext</groupId>
173             <artifactId>jersey-bean-validation</artifactId>
174         </dependency>
175
176         <!-- http client -->
177         <dependency>
178             <groupId>org.apache.httpcomponents</groupId>
179             <artifactId>httpclient</artifactId>
180             <version>${httpclient.version}</version>
181             <scope>compile</scope>
182         </dependency>
183
184         <dependency>
185             <groupId>org.apache.httpcomponents</groupId>
186             <artifactId>httpcore</artifactId>
187             <version>${httpcore.version}</version>
188             <scope>compile</scope>
189         </dependency>
190
191         <dependency>
192             <groupId>commons-logging</groupId>
193             <artifactId>commons-logging</artifactId>
194             <version>${commons-logging}</version>
195             <scope>compile</scope>
196         </dependency>
197
198         <dependency>
199             <groupId>commons-codec</groupId>
200             <artifactId>commons-codec</artifactId>
201             <version>${commons-codec}</version>
202             <scope>compile</scope>
203         </dependency>
204         <!-- http client END -->
205
206         <dependency>
207             <groupId>javax.servlet</groupId>
208             <artifactId>javax.servlet-api</artifactId>
209             <version>${servlet-api.version}</version>
210             <scope>provided</scope>
211         </dependency>
212
213         <dependency>
214             <groupId>org.eclipse.jgit</groupId>
215             <artifactId>org.eclipse.jgit</artifactId>
216             <version>3.4.1.201406201815-r</version>
217         </dependency>
218
219         <!-- spring - used by A4C -->
220         <dependency>
221             <groupId>org.springframework</groupId>
222             <artifactId>spring-core</artifactId>
223             <version>${spring.version}</version>
224             <scope>compile</scope>
225         </dependency>
226
227         <dependency>
228             <groupId>org.springframework</groupId>
229             <artifactId>spring-context</artifactId>
230             <version>${spring.version}</version>
231             <scope>compile</scope>
232         </dependency>
233
234         <dependency>
235             <groupId>org.springframework</groupId>
236             <artifactId>spring-web</artifactId>
237             <version>${spring.version}</version>
238             <scope>compile</scope>
239         </dependency>
240
241         <dependency>
242             <groupId>org.springframework</groupId>
243             <artifactId>spring-webmvc</artifactId>
244             <version>${spring.version}</version>
245             <scope>compile</scope>
246         </dependency>
247
248         <dependency>
249             <groupId>org.springframework</groupId>
250             <artifactId>spring-aop</artifactId>
251             <version>${spring.version}</version>
252             <scope>compile</scope>
253         </dependency>
254
255         <dependency>
256             <groupId>org.springframework</groupId>
257             <artifactId>spring-beans</artifactId>
258             <version>${spring.version}</version>
259             <scope>compile</scope>
260         </dependency>
261
262         <dependency>
263             <groupId>org.springframework</groupId>
264             <artifactId>spring-expression</artifactId>
265             <version>${spring.version}</version>
266             <scope>compile</scope>
267         </dependency>
268
269         <dependency>
270             <groupId>org.codehaus.groovy</groupId>
271             <artifactId>groovy</artifactId>
272             <scope>compile</scope>
273         </dependency>
274
275         <dependency>
276             <groupId>org.codehaus.janino</groupId>
277             <artifactId>janino</artifactId>
278             <version>${janino.version}</version>
279             <scope>compile</scope>
280         </dependency>
281
282         <dependency>
283             <groupId>org.codehaus.janino</groupId>
284             <artifactId>commons-compiler</artifactId>
285             <version>${janino.version}</version>
286             <scope>compile</scope>
287         </dependency>
288
289         <dependency>
290             <groupId>com.google.guava</groupId>
291             <artifactId>guava</artifactId>
292             <version>${guava.version}</version>
293             <scope>compile</scope>
294         </dependency>
295
296         <!-- TITAN -->
297         <dependency>
298             <groupId>com.thinkaurelius.titan</groupId>
299             <artifactId>titan-core</artifactId>
300             <version>${titan.version}</version>
301             <scope>compile</scope>
302             <exclusions>
303                 <exclusion>
304                     <groupId>org.json</groupId>
305                     <artifactId>json</artifactId>
306                 </exclusion>
307                 <exclusion>
308                     <artifactId>slf4j-log4j12</artifactId>
309                     <groupId>org.slf4j</groupId>
310                 </exclusion>
311                 <exclusion>
312                     <artifactId>commons-collections</artifactId>
313                     <groupId>commons-collections</groupId>
314                 </exclusion>
315             </exclusions>
316         </dependency>
317
318         <dependency>
319             <groupId>org.onap.sdc.sdc-titan-cassandra</groupId>
320             <artifactId>sdc-titan-cassandra</artifactId>
321             <version>${sdc.titan.version}</version>
322             <scope>compile</scope>
323             <exclusions>
324                 <exclusion>
325                     <groupId>org.slf4j</groupId>
326                     <artifactId>slf4j-log4j12</artifactId>
327                 </exclusion>
328                 <exclusion>
329                     <groupId>io.netty</groupId>
330                     <artifactId>netty-all</artifactId>
331                 </exclusion>
332             </exclusions>
333         </dependency>
334
335         <dependency>
336             <groupId>org.apache.commons</groupId>
337             <artifactId>commons-lang3</artifactId>
338             <version>${lang3.version}</version>
339             <scope>compile</scope>
340         </dependency>
341         <!-- TITAN END -->
342
343         <dependency>
344             <groupId>com.googlecode.json-simple</groupId>
345             <artifactId>json-simple</artifactId>
346             <version>${json-simple.version}</version>
347             <scope>compile</scope>
348
349         </dependency>
350
351         <dependency>
352             <groupId>org.elasticsearch</groupId>
353             <artifactId>elasticsearch</artifactId>
354             <version>${elastic-search.version}</version>
355             <scope>compile</scope>
356         </dependency>
357
358         <!-- functional java -->
359         <dependency>
360             <groupId>org.functionaljava</groupId>
361             <artifactId>functionaljava</artifactId>
362             <version>${functionaljava.version}</version>
363             <scope>compile</scope>
364         </dependency>
365
366         <!-- Aspects -->
367         <dependency>
368             <groupId>com.jcabi</groupId>
369             <artifactId>jcabi-aspects</artifactId>
370             <version>${jcabi.version}</version>
371             <scope>compile</scope>
372         </dependency>
373
374         <dependency>
375             <groupId>org.aspectj</groupId>
376             <artifactId>aspectjrt</artifactId>
377             <version>${aspectjrt.version}</version>
378             <scope>compile</scope>
379         </dependency>
380
381
382         <!-- CAMBRIA CLIENT for U-EB -->
383         <dependency>
384             <groupId>com.att.nsa</groupId>
385             <artifactId>cambriaClient</artifactId>
386             <version>1.2.1-oss</version>
387             <scope>compile</scope>
388             <exclusions>
389                 <exclusion>
390                     <groupId>com.att.nsa</groupId>
391                     <artifactId>saClientLibrary</artifactId>
392                 </exclusion>
393             </exclusions>
394         </dependency>
395
396         <dependency>
397             <groupId>org.json</groupId>
398             <artifactId>json</artifactId>
399             <version>20131018</version>
400             <scope>compile</scope>
401         </dependency>
402         <dependency>
403             <groupId>org.apache.tinkerpop</groupId>
404             <artifactId>tinkergraph-gremlin</artifactId>
405             <version>3.0.1-incubating</version>
406             <scope>compile</scope>
407         </dependency>
408
409         <dependency>
410             <groupId>org.apache.tinkerpop</groupId>
411             <artifactId>gremlin-groovy</artifactId>
412             <version>3.0.1-incubating</version>
413             <scope>compile</scope>
414             <exclusions>
415                 <exclusion>
416                     <artifactId>groovy</artifactId>
417                     <groupId>org.codehaus.groovy</groupId>
418                 </exclusion>
419             </exclusions>
420         </dependency>
421
422         <!-- CASSANDRA -->
423         <dependency>
424             <groupId>com.datastax.cassandra</groupId>
425             <artifactId>cassandra-driver-core</artifactId>
426             <version>${cassandra.driver.version}</version>
427             <scope>compile</scope>
428         </dependency>
429         <dependency>
430             <groupId>com.datastax.cassandra</groupId>
431             <artifactId>cassandra-driver-mapping</artifactId>
432             <version>${cassandra.driver.version}</version>
433             <scope>compile</scope>
434         </dependency>
435         <!-- CASSANDRA END -->
436
437         <!-- Inserted for ECOMP Portal Integration -->
438         <dependency>
439             <groupId>org.onap.portal.sdk</groupId>
440             <artifactId>epsdk-fw</artifactId>
441             <version>${ecomp.version}</version>
442             <scope>compile</scope>
443             <exclusions>
444                 <exclusion>
445                     <groupId>com.att.nsa</groupId>
446                     <artifactId>cambriaClient</artifactId>
447                 </exclusion>
448                 <exclusion>
449                     <artifactId>slf4j-log4j12</artifactId>
450                     <groupId>org.slf4j</groupId>
451                 </exclusion>
452             </exclusions>
453         </dependency>
454
455         <!--Jetty Proxy-->
456         <dependency>
457             <groupId>org.eclipse.jetty</groupId>
458             <artifactId>jetty-proxy</artifactId>
459             <version>${jetty.version}</version>
460             <scope>compile</scope>
461         </dependency>
462
463         <dependency>
464             <groupId>org.eclipse.jetty</groupId>
465             <artifactId>jetty-servlets</artifactId>
466             <version>${jetty.version}</version>
467             <scope>compile</scope>
468         </dependency>
469         <!-- System metrics -->
470         <dependency>
471             <groupId>org.fusesource</groupId>
472             <artifactId>sigar</artifactId>
473             <version>${sigar.version}</version>
474             <scope>compile</scope>
475         </dependency>
476         <dependency>
477             <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
478             <artifactId>dmaapClient</artifactId>
479             <version>1.1.3</version>
480             <scope>compile</scope>
481             <exclusions>
482                 <exclusion>
483                     <groupId>com.att.aft</groupId>
484                     <artifactId>dme2</artifactId>
485                 </exclusion>
486             </exclusions>
487         </dependency>
488         <dependency>
489             <groupId>com.att.aft</groupId>
490             <artifactId>dme2</artifactId>
491             <version>3.1.200-oss</version>
492         </dependency>
493
494         <dependency>
495             <groupId>javax.jms</groupId>
496             <artifactId>jms</artifactId>
497             <version>1.1</version>
498             <scope>provided</scope>
499         </dependency>
500
501         <!-- TEST -->
502         <dependency>
503             <groupId>org.assertj</groupId>
504             <artifactId>assertj-core</artifactId>
505             <scope>test</scope>
506         </dependency>
507
508         <dependency>
509             <groupId>org.glassfish.jersey.test-framework.providers</groupId>
510             <artifactId>jersey-test-framework-provider-bundle</artifactId>
511             <version>${jersey-bom.version}</version>
512             <type>pom</type>
513             <scope>test</scope>
514         </dependency>
515
516         <dependency>
517             <groupId>org.glassfish.jersey.core</groupId>
518             <artifactId>jersey-client</artifactId>
519             <version>${jersey-bom.version}</version>
520         </dependency>
521
522         <dependency>
523             <groupId>com.github.tomakehurst</groupId>
524             <artifactId>wiremock-standalone</artifactId>
525             <scope>test</scope>
526         </dependency>
527
528         <dependency>
529             <groupId>org.eclipse.jetty</groupId>
530             <artifactId>jetty-webapp</artifactId>
531             <version>${jetty.version}</version>
532             <scope>test</scope>
533         </dependency>
534
535         <dependency>
536             <groupId>junit</groupId>
537             <artifactId>junit</artifactId>
538             <version>${junit.version}</version>
539             <scope>test</scope>
540         </dependency>
541
542         <dependency>
543             <groupId>org.mockito</groupId>
544             <artifactId>mockito-core</artifactId>
545             <scope>test</scope>
546         </dependency>
547
548         <dependency>
549             <groupId>org.springframework</groupId>
550             <artifactId>spring-test</artifactId>
551             <version>${spring.version}</version>
552             <scope>test</scope>
553         </dependency>
554
555         <dependency>
556             <groupId>org.springframework</groupId>
557             <artifactId>spring-tx</artifactId>
558             <version>${spring.version}</version>
559         </dependency>
560
561         <dependency>
562             <groupId>io.cucumber</groupId>
563             <artifactId>cucumber-java</artifactId>
564             <scope>test</scope>
565         </dependency>
566
567         <dependency>
568             <groupId>io.cucumber</groupId>
569             <artifactId>cucumber-junit</artifactId>
570             <scope>test</scope>
571         </dependency>
572
573         <dependency>
574             <groupId>org.jmockit</groupId>
575             <artifactId>jmockit</artifactId>
576             <version>${jmockit.version}</version>
577             <scope>test</scope>
578         </dependency>
579
580         <dependency>
581             <groupId>com.google.code.bean-matchers</groupId>
582             <artifactId>bean-matchers</artifactId>
583             <version>0.11</version>
584             <scope>test</scope>
585         </dependency>
586
587         <dependency>
588             <groupId>org.codehaus.groovy</groupId>
589             <artifactId>groovy</artifactId>
590             <version>2.4.8</version>
591         </dependency>
592
593         <dependency>
594             <groupId>io.netty</groupId>
595             <artifactId>netty-handler</artifactId>
596         </dependency>
597         <dependency>
598             <groupId>org.onap.sdc.common</groupId>
599             <artifactId>onap-tosca-datatype</artifactId>
600             <version>${project.version}</version>
601         </dependency>
602         <dependency>
603             <groupId>org.apache.commons</groupId>
604             <artifactId>commons-collections4</artifactId>
605             <version>${commons.collections.version}</version>
606         </dependency>
607     </dependencies>
608
609     <build>
610
611         <finalName>${project.artifactId}-${project.version}</finalName>
612
613         <plugins>
614             <plugin>
615                 <groupId>org.apache.maven.plugins</groupId>
616                 <artifactId>maven-war-plugin</artifactId>
617                 <configuration>
618                     <packagingExcludes>WEB-INF\lib\slf4j-log4j*.jar,
619                         WEB-INF/classes/elasticsearch.yml,
620                         WEB-INF/classes/portal.properties
621                     </packagingExcludes>
622                     <archive>
623                         <manifestEntries>
624                             <SDC-Version>${project.version}</SDC-Version>
625                         </manifestEntries>
626                         <manifest>
627                             <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
628                             <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
629                         </manifest>
630                     </archive>
631
632                     <webResources>
633                         <resource>
634                             <directory>src/main/resources</directory>
635                             <directory>src/main/resources/swagger</directory>
636                         </resource>
637                     </webResources>
638                     <attachClasses>true</attachClasses>
639                 </configuration>
640             </plugin>
641             <plugin>
642                 <groupId>com.github.sylvainlaurent.maven</groupId>
643                 <artifactId>yaml-json-validator-maven-plugin</artifactId>
644                 <executions>
645                     <execution>
646                         <id>validate</id>
647                         <phase>validate</phase>
648                         <goals>
649                             <goal>validate</goal>
650                         </goals>
651                         <configuration>
652                             <validationSets>
653                                 <validationSet>
654                                     <includes>
655                                         <include>src/main/resources/**/*.y*ml</include>
656                                         <include>src/test/resources/**/*.y*ml</include>
657                                     </includes>
658                                 </validationSet>
659                                 <validationSet>
660                                     <includes>
661                                         <include>src/main/resources/**/*.json</include>
662                                         <include>src/test/resources/**/*.json</include>
663                                     </includes>
664                                 </validationSet>
665                             </validationSets>
666                         </configuration>
667                     </execution>
668                 </executions>
669             </plugin>
670             <plugin>
671                 <groupId>com.jcabi</groupId>
672                 <artifactId>jcabi-maven-plugin</artifactId>
673                 <version>${jcabi.maven.plugin.version}</version>
674                 <executions>
675                     <execution>
676                         <goals>
677                             <goal>ajc</goal>
678                         </goals>
679                     </execution>
680                 </executions>
681             </plugin>
682             <plugin>
683                 <groupId>org.apache.maven.plugins</groupId>
684                 <artifactId>maven-assembly-plugin</artifactId>
685                 <executions>
686                     <execution>
687                         <id>normatives</id>
688                         <phase>package</phase>
689                         <goals>
690                             <goal>single</goal>
691                         </goals>
692                         <configuration>
693                             <finalName>normatives</finalName>
694                             <appendAssemblyId>false</appendAssemblyId>
695                             <descriptors>
696                                 <descriptor>${project.basedir}/normatives.xml</descriptor>
697                             </descriptors>
698                         </configuration>
699                     </execution>
700                 </executions>
701             </plugin>
702             <plugin>
703                 <groupId>org.apache.maven.plugins</groupId>
704                 <artifactId>maven-clean-plugin</artifactId>
705                 <executions>
706                     <execution>
707                         <id>clean.sdc.backend.folder</id>
708                         <phase>clean</phase>
709                         <goals>
710                             <goal>clean</goal>
711                         </goals>
712                         <configuration>
713                             <filesets>
714                                 <!-- static configuration files -->
715                                 <fileset>
716                                     <directory>
717                                         ${project.parent.basedir}/catalog-be/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/files/default
718                                     </directory>
719                                     <followSymlinks>false</followSymlinks>
720                                     <includes>
721                                         <include>error-configuration.yaml</include>
722                                         <include>ecomp-error-configuration.yaml</include>
723                                         <include>logback.xml</include>
724                                     </includes>
725                                 </fileset>
726                                 <!-- BE WAR's -->
727                                 <fileset>
728                                     <directory>${project.parent.basedir}/catalog-be/sdc-backend</directory>
729                                     <followSymlinks>false</followSymlinks>
730                                     <includes>
731                                         <include>*.war</include>
732                                     </includes>
733                                 </fileset>
734                                 <fileset>
735                                     <directory>
736                                         ${project.basedir}/sdc-backend-init/chef-repo/cookbooks/sdc-normatives/files/default
737                                     </directory>
738                                     <followSymlinks>false</followSymlinks>
739                                     <includes>
740                                         <include>normatives.tar.gz</include>
741                                     </includes>
742                                 </fileset>
743
744
745                             </filesets>
746                         </configuration>
747                     </execution>
748
749                     <execution>
750                         <id>clean-static-files</id>
751                         <phase>clean</phase>
752                         <goals>
753                             <goal>clean</goal>
754                         </goals>
755                         <configuration>
756                             <filesets>
757                                 <!-- tosca files -->
758                                 <fileset>
759                                     <directory>${project.parent.basedir}/asdctool/tosca</directory>
760                                     <followSymlinks>false</followSymlinks>
761                                 </fileset>
762                             </filesets>
763                         </configuration>
764                     </execution>
765                 </executions>
766             </plugin>
767             <plugin>
768                 <groupId>org.apache.maven.plugins</groupId>
769                 <artifactId>maven-resources-plugin</artifactId>
770                 <executions>
771                     <execution>
772                         <id>copy-static-configuration-files</id>
773                         <phase>verify</phase>
774                         <goals>
775                             <goal>copy-resources</goal>
776                         </goals>
777                         <configuration>
778                             <outputDirectory>
779                                 ${project.parent.basedir}/catalog-be/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/files/default
780                             </outputDirectory>
781                             <resources>
782                                 <resource>
783                                     <directory>${project.parent.basedir}/catalog-be/src/main/resources/config
784                                     </directory>
785                                     <includes>
786                                         <include>error-configuration.yaml</include>
787                                         <include>ecomp-error-configuration.yaml</include>
788                                         <include>logback.xml</include>
789                                     </includes>
790                                 </resource>
791                             </resources>
792                         </configuration>
793                     </execution>
794                     <execution>
795                         <id>copy-tosca-folder</id>
796                         <!-- here the phase you need -->
797                         <phase>install</phase>
798                         <goals>
799                             <goal>copy-resources</goal>
800                         </goals>
801                         <configuration>
802                             <outputDirectory>${project.parent.basedir}/asdctool/tosca</outputDirectory>
803                             <resources>
804                                 <resource>
805                                     <directory>${project.parent.basedir}/catalog-be/src/main/resources/import/tosca
806                                     </directory>
807                                     <filtering>true</filtering>
808                                 </resource>
809                             </resources>
810                         </configuration>
811                     </execution>
812                 </executions>
813             </plugin>
814         </plugins>
815
816         <pluginManagement>
817             <plugins>
818                 <!--This plugin's configuration is used to store Eclipse m2e settings
819                     only. It has no influence on the Maven build itself. -->
820                 <plugin>
821                     <groupId>org.eclipse.m2e</groupId>
822                     <artifactId>lifecycle-mapping</artifactId>
823                     <version>1.0.0</version>
824                     <configuration>
825                         <lifecycleMappingMetadata>
826                             <pluginExecutions>
827                                 <pluginExecution>
828                                     <pluginExecutionFilter>
829                                         <groupId>com.googlecode.maven-download-plugin</groupId>
830                                         <artifactId>download-maven-plugin</artifactId>
831                                         <versionRange>[1.2.1,)</versionRange>
832                                         <goals>
833                                             <goal>wget</goal>
834                                         </goals>
835                                     </pluginExecutionFilter>
836                                     <action>
837                                         <ignore></ignore>
838                                     </action>
839                                 </pluginExecution>
840
841                                 <pluginExecution>
842                                     <pluginExecutionFilter>
843                                         <groupId>com.jcabi</groupId>
844                                         <artifactId>jcabi-maven-plugin</artifactId>
845                                         <versionRange>[0.0,)</versionRange>
846                                         <goals>
847                                             <goal>ajc</goal>
848                                         </goals>
849                                     </pluginExecutionFilter>
850                                     <action>
851                                         <execute/>
852                                     </action>
853                                 </pluginExecution>
854
855                             </pluginExecutions>
856                         </lifecycleMappingMetadata>
857                     </configuration>
858                 </plugin>
859             </plugins>
860         </pluginManagement>
861         <!-- Swagger Plugins End -->
862     </build>
863
864     <profiles>
865         <profile>
866             <id>docker-staging</id>
867             <properties>
868                 <docker.tag>${project.version}-STAGING-${maven.build.timestamp}</docker.tag>
869                 <docker.latest.tag>${project.version}-STAGING-latest</docker.latest.tag>
870             </properties>
871         </profile>
872
873         <profile>
874             <id>docker</id>
875             <activation>
876                 <activeByDefault>false</activeByDefault>
877             </activation>
878             <build>
879                 <plugins>
880                     <plugin>
881                         <groupId>org.apache.maven.plugins</groupId>
882                         <artifactId>maven-resources-plugin</artifactId>
883                         <executions>
884                             <execution>
885                                 <id>copy-resources-apidocs</id>
886                                 <phase>verify</phase>
887                                 <goals>
888                                     <goal>copy-resources</goal>
889                                 </goals>
890                                 <configuration>
891                                     <outputDirectory>${basedir}/sdc-backend</outputDirectory>
892                                     <resources>
893                                         <resource>
894                                             <directory>
895                                                 ${project.parent.basedir}/openecomp-be/tools/swagger-ui/target/api-docs
896                                             </directory>
897                                             <includes>
898                                                 <include>api-docs.war</include>
899                                             </includes>
900                                         </resource>
901                                     </resources>
902                                 </configuration>
903                             </execution>
904
905                             <execution>
906                                 <id>copy-resources-be</id>
907                                 <phase>verify</phase>
908                                 <goals>
909                                     <goal>copy-resources</goal>
910                                 </goals>
911                                 <configuration>
912                                     <outputDirectory>${basedir}/sdc-backend</outputDirectory>
913                                     <resources>
914                                         <resource>
915                                             <directory>${project.parent.basedir}/catalog-be/target</directory>
916                                             <includes>
917                                                 <include>catalog-be-${project.version}.war</include>
918                                             </includes>
919                                         </resource>
920                                         <resource>
921                                             <directory>
922                                                 ${project.parent.basedir}/openecomp-be/api/openecomp-sdc-rest-webapp/onboarding-rest-war/target
923                                             </directory>
924                                             <includes>
925                                                 <include>onboarding-be-${project.version}.war</include>
926                                             </includes>
927                                         </resource>
928                                     </resources>
929                                 </configuration>
930                             </execution>
931                             <execution>
932                                 <id>copy-normatives</id>
933                                 <phase>verify</phase>
934                                 <goals>
935                                     <goal>copy-resources</goal>
936                                 </goals>
937                                 <configuration>
938                                     <outputDirectory>
939                                         sdc-backend-init/chef-repo/cookbooks/sdc-catalog-be-setup/files/default
940                                     </outputDirectory>
941                                     <resources>
942                                         <resource>
943                                             <directory>${project.parent.basedir}/catalog-be/target</directory>
944                                             <includes>
945                                                 <include>normatives.tar.gz</include>
946                                             </includes>
947                                         </resource>
948                                     </resources>
949                                 </configuration>
950                             </execution>
951                         </executions>
952                     </plugin>
953                     <plugin>
954                         <groupId>io.fabric8</groupId>
955                         <artifactId>docker-maven-plugin</artifactId>
956                         <configuration>
957                             <apiVersion>1.23</apiVersion>
958                             <registry>nexus3.onap.org:10001</registry>
959                             <authConfig>
960                                 <pull>
961                                     <username>docker</username>
962                                     <password>docker</password>
963                                 </pull>
964                             </authConfig>
965                             <images>
966
967                                 <!-- Build backend image -->
968                                 <image>
969                                     <name>onap/sdc-backend</name>
970                                     <alias>sdc-backend</alias>
971                                     <build>
972                                         <cleanup>try</cleanup>
973                                         <dockerFileDir>${project.basedir}/sdc-backend</dockerFileDir>
974                                         <tags>
975                                             <tag>${docker.tag}</tag>
976                                             <tag>
977                                                 ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest
978                                             </tag>
979                                         </tags>
980                                     </build>
981                                 </image>
982                                 <!-- Build backend-init image -->
983                                 <image>
984                                     <name>onap/sdc-backend-init</name>
985                                     <alias>sdc-backend-init</alias>
986                                     <build>
987                                         <cleanup>try</cleanup>
988                                         <dockerFileDir>${project.basedir}/sdc-backend-init</dockerFileDir>
989                                         <tags>
990                                             <tag>${docker.tag}</tag>
991                                             <tag>
992                                                 ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest
993                                             </tag>
994                                         </tags>
995                                     </build>
996                                 </image>
997                             </images>
998                         </configuration>
999                         <executions>
1000                             <execution>
1001                                 <id>clean-images</id>
1002                                 <phase>pre-clean</phase>
1003                                 <goals>
1004                                     <goal>remove</goal>
1005                                 </goals>
1006                                 <configuration>
1007                                     <removeAll>true</removeAll>
1008                                     <image>onap/sdc-backend,onap/sdc-backend-init</image>
1009                                 </configuration>
1010                             </execution>
1011
1012                             <execution>
1013                                 <id>generate-images</id>
1014                                 <phase>install</phase>
1015                                 <goals>
1016                                     <goal>build</goal>
1017                                 </goals>
1018                             </execution>
1019
1020                             <execution>
1021                                 <id>push-images</id>
1022                                 <phase>deploy</phase>
1023                                 <goals>
1024                                     <goal>push</goal>
1025                                 </goals>
1026                                 <configuration>
1027                                     <image>onap/sdc-backend,onap/sdc-backend-init</image>
1028                                 </configuration>
1029                             </execution>
1030                         </executions>
1031                     </plugin>
1032                 </plugins>
1033             </build>
1034         </profile>
1035     </profiles>
1036 </project>