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