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