maven improvements and clean up
[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                 <configuration>
623                     <packagingExcludes>WEB-INF\lib\slf4j-log4j*.jar,
624                         WEB-INF/classes/elasticsearch.yml,
625                         WEB-INF/classes/portal.properties
626                     </packagingExcludes>
627                     <archive>
628                         <manifestEntries>
629                             <SDC-Version>${project.version}</SDC-Version>
630                         </manifestEntries>
631                         <manifest>
632                             <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
633                             <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
634                         </manifest>
635                     </archive>
636
637                     <webResources>
638                         <resource>
639                             <directory>src/main/resources</directory>
640                             <directory>src/main/resources/swagger</directory>
641                         </resource>
642                     </webResources>
643                     <attachClasses>true</attachClasses>
644                 </configuration>
645             </plugin>
646             <plugin>
647                 <groupId>com.jcabi</groupId>
648                 <artifactId>jcabi-maven-plugin</artifactId>
649                 <version>${jcabi.maven.plugin.version}</version>
650                 <executions>
651                     <execution>
652                         <goals>
653                             <goal>ajc</goal>
654                         </goals>
655                     </execution>
656                 </executions>
657             </plugin>
658
659             <plugin>
660                 <groupId>org.apache.maven.plugins</groupId>
661                 <artifactId>maven-assembly-plugin</artifactId>
662                 <executions>
663                     <execution>
664                         <id>normatives</id>
665                         <phase>package</phase>
666                         <goals>
667                             <goal>single</goal>
668                         </goals>
669                         <configuration>
670                             <finalName>normatives</finalName>
671                             <appendAssemblyId>false</appendAssemblyId>
672                             <descriptors>
673                                 <descriptor>${project.basedir}/normatives.xml</descriptor>
674                             </descriptors>
675                         </configuration>
676                     </execution>
677                 </executions>
678             </plugin>
679             <plugin>
680                 <groupId>org.apache.maven.plugins</groupId>
681                 <artifactId>maven-clean-plugin</artifactId>
682                 <executions>
683                     <execution>
684                         <id>clean.sdc.backend.folder</id>
685                         <phase>clean</phase>
686                         <goals>
687                             <goal>clean</goal>
688                         </goals>
689                         <configuration>
690                             <filesets>
691                                 <!-- static configuration files -->
692                                 <fileset>
693                                     <directory>
694                                         ${project.parent.basedir}/catalog-be/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/files/default
695                                     </directory>
696                                     <followSymlinks>false</followSymlinks>
697                                     <includes>
698                                         <include>Artifact-Generator.properties</include>
699                                         <include>error-configuration.yaml</include>
700                                         <include>ecomp-error-configuration.yaml</include>
701                                         <include>logback.xml</include>
702                                     </includes>
703                                 </fileset>
704                                 <!-- BE WAR's -->
705                                 <fileset>
706                                     <directory>${project.parent.basedir}/catalog-be/sdc-backend</directory>
707                                     <followSymlinks>false</followSymlinks>
708                                     <includes>
709                                         <include>*.war</include>
710                                     </includes>
711                                 </fileset>
712                                 <fileset>
713                                     <directory>
714                                         ${project.basedir}/sdc-backend-init/chef-repo/cookbooks/sdc-normatives/files/default
715                                     </directory>
716                                     <followSymlinks>false</followSymlinks>
717                                     <includes>
718                                         <include>normatives.tar.gz</include>
719                                     </includes>
720                                 </fileset>
721
722
723                             </filesets>
724                         </configuration>
725                     </execution>
726
727                     <execution>
728                         <id>clean-static-files</id>
729                         <phase>clean</phase>
730                         <goals>
731                             <goal>clean</goal>
732                         </goals>
733                         <configuration>
734                             <filesets>
735                                 <!-- tosca files -->
736                                 <fileset>
737                                     <directory>${project.parent.basedir}/asdctool/tosca</directory>
738                                     <followSymlinks>false</followSymlinks>
739                                 </fileset>
740                             </filesets>
741                         </configuration>
742                     </execution>
743                 </executions>
744             </plugin>
745
746
747             <plugin>
748                 <groupId>org.apache.maven.plugins</groupId>
749                 <artifactId>maven-resources-plugin</artifactId>
750                 <executions>
751                     <execution>
752                         <id>copy-static-configuration-files</id>
753                         <phase>verify</phase>
754                         <goals>
755                             <goal>copy-resources</goal>
756                         </goals>
757                         <configuration>
758                             <outputDirectory>${project.parent.basedir}/catalog-be/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/files/default</outputDirectory>
759                             <resources>
760                                 <resource>
761                                     <directory>${project.parent.basedir}/catalog-be/src/main/resources/config</directory>
762                                     <includes>
763                                         <include>Artifact-Generator.properties</include>
764                                         <include>error-configuration.yaml</include>
765                                         <include>ecomp-error-configuration.yaml</include>
766                                         <include>logback.xml</include>
767                                     </includes>
768                                 </resource>
769                             </resources>
770                         </configuration>
771                     </execution>
772                     <execution>
773                         <id>copy-tosca-folder</id>
774                         <!-- here the phase you need -->
775                         <phase>install</phase>
776                         <goals>
777                             <goal>copy-resources</goal>
778                         </goals>
779                         <configuration>
780                             <outputDirectory>${project.parent.basedir}/asdctool/tosca</outputDirectory>
781                             <resources>
782                                 <resource>
783                                     <directory>${project.parent.basedir}/catalog-be/src/main/resources/import/tosca</directory>
784                                     <filtering>true</filtering>
785                                 </resource>
786                             </resources>
787                         </configuration>
788                     </execution>
789                 </executions>
790             </plugin>
791         </plugins>
792
793         <pluginManagement>
794             <plugins>
795                 <!--This plugin's configuration is used to store Eclipse m2e settings
796                     only. It has no influence on the Maven build itself. -->
797                 <plugin>
798                     <groupId>org.eclipse.m2e</groupId>
799                     <artifactId>lifecycle-mapping</artifactId>
800                     <version>1.0.0</version>
801                     <configuration>
802                         <lifecycleMappingMetadata>
803                             <pluginExecutions>
804                                 <pluginExecution>
805                                     <pluginExecutionFilter>
806                                         <groupId>com.googlecode.maven-download-plugin</groupId>
807                                         <artifactId>download-maven-plugin</artifactId>
808                                         <versionRange>[1.2.1,)</versionRange>
809                                         <goals>
810                                             <goal>wget</goal>
811                                         </goals>
812                                     </pluginExecutionFilter>
813                                     <action>
814                                         <ignore></ignore>
815                                     </action>
816                                 </pluginExecution>
817
818                                 <pluginExecution>
819                                     <pluginExecutionFilter>
820                                         <groupId>com.jcabi</groupId>
821                                         <artifactId>jcabi-maven-plugin</artifactId>
822                                         <versionRange>[0.0,)</versionRange>
823                                         <goals>
824                                             <goal>ajc</goal>
825                                         </goals>
826                                     </pluginExecutionFilter>
827                                     <action>
828                                         <execute/>
829                                     </action>
830                                 </pluginExecution>
831
832                             </pluginExecutions>
833                         </lifecycleMappingMetadata>
834                     </configuration>
835                 </plugin>
836             </plugins>
837         </pluginManagement>
838         <!-- Swagger Plugins End -->
839     </build>
840
841     <profiles>
842         <profile>
843             <id>docker-staging</id>
844             <properties>
845                 <docker.tag>${project.version}-STAGING-${maven.build.timestamp}</docker.tag>
846                 <docker.latest.tag>${project.version}-STAGING-latest</docker.latest.tag>
847             </properties>
848         </profile>
849
850         <profile>
851             <id>docker</id>
852             <activation>
853                 <activeByDefault>false</activeByDefault>
854             </activation>
855             <build>
856                 <plugins>
857                     <plugin>
858                         <groupId>org.apache.maven.plugins</groupId>
859                         <artifactId>maven-resources-plugin</artifactId>
860                         <executions>
861                             <execution>
862                                 <id>copy-resources-apidocs</id>
863                                 <phase>verify</phase>
864                                 <goals>
865                                     <goal>copy-resources</goal>
866                                 </goals>
867                                 <configuration>
868                                     <outputDirectory>${basedir}/sdc-backend</outputDirectory>
869                                     <resources>
870                                         <resource>
871                                             <directory>
872                                                 ${project.parent.basedir}/openecomp-be/tools/swagger-ui/target/api-docs
873                                             </directory>
874                                             <includes>
875                                                 <include>api-docs.war</include>
876                                             </includes>
877                                         </resource>
878                                     </resources>
879                                 </configuration>
880                             </execution>
881
882                             <execution>
883                                 <id>copy-resources-be</id>
884                                 <phase>verify</phase>
885                                 <goals>
886                                     <goal>copy-resources</goal>
887                                 </goals>
888                                 <configuration>
889                                     <outputDirectory>${basedir}/sdc-backend</outputDirectory>
890                                     <resources>
891                                         <resource>
892                                             <directory>${project.parent.basedir}/catalog-be/target</directory>
893                                             <includes>
894                                                 <include>catalog-be-${project.version}.war</include>
895                                             </includes>
896                                         </resource>
897                                         <resource>
898                                             <directory>
899                                                 ${project.parent.basedir}/openecomp-be/api/openecomp-sdc-rest-webapp/onboarding-rest-war/target
900                                             </directory>
901                                             <includes>
902                                                 <include>onboarding-be-${project.version}.war</include>
903                                             </includes>
904                                         </resource>
905                                     </resources>
906                                 </configuration>
907                             </execution>
908                             <execution>
909                                 <id>copy-normatives</id>
910                                 <phase>verify</phase>
911                                 <goals>
912                                     <goal>copy-resources</goal>
913                                 </goals>
914                                 <configuration>
915                                     <outputDirectory>sdc-backend-init/chef-repo/cookbooks/sdc-catalog-be-setup/files/default</outputDirectory>
916                                     <resources>
917                                         <resource>
918                                             <directory>${project.parent.basedir}/catalog-be/target</directory>
919                                             <includes>
920                                                 <include>normatives.tar.gz</include>
921                                             </includes>
922                                         </resource>
923                                     </resources>
924                                 </configuration>
925                             </execution>
926                         </executions>
927                     </plugin>
928                     <plugin>
929                         <groupId>io.fabric8</groupId>
930                         <artifactId>docker-maven-plugin</artifactId>
931                         <configuration>
932                             <apiVersion>1.23</apiVersion>
933                             <registry>nexus3.onap.org:10001</registry>
934                             <authConfig>
935                                 <pull>
936                                     <username>docker</username>
937                                     <password>docker</password>
938                                 </pull>
939                             </authConfig>
940                             <images>
941
942                                 <!-- Build backend image -->
943                                 <image>
944                                     <name>onap/sdc-backend</name>
945                                     <alias>sdc-backend</alias>
946                                     <build>
947                                         <cleanup>try</cleanup>
948                                         <dockerFileDir>${project.basedir}/sdc-backend</dockerFileDir>
949                                         <tags>
950                                             <tag>${docker.tag}</tag>
951                                             <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag>
952                                         </tags>
953                                     </build>
954                                 </image>
955                                 <!-- Build backend-init image -->
956                                 <image>
957                                     <name>onap/sdc-backend-init</name>
958                                     <alias>sdc-backend-init</alias>
959                                     <build>
960                                         <cleanup>try</cleanup>
961                                         <dockerFileDir>${project.basedir}/sdc-backend-init</dockerFileDir>
962                                         <tags>
963                                             <tag>${docker.tag}</tag>
964                                             <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag>
965                                         </tags>
966                                     </build>
967                                 </image>
968                             </images>
969                         </configuration>
970                         <executions>
971                             <execution>
972                                 <id>clean-images</id>
973                                 <phase>pre-clean</phase>
974                                 <goals>
975                                     <goal>remove</goal>
976                                 </goals>
977                                 <configuration>
978                                     <removeAll>true</removeAll>
979                                     <image>onap/sdc-backend,onap/sdc-backend-init</image>
980                                 </configuration>
981                             </execution>
982
983                             <execution>
984                                 <id>generate-images</id>
985                                 <phase>install</phase>
986                                 <goals>
987                                     <goal>build</goal>
988                                 </goals>
989                             </execution>
990
991                             <execution>
992                                 <id>push-images</id>
993                                 <phase>deploy</phase>
994                                 <goals>
995                                     <goal>push</goal>
996                                 </goals>
997                                 <configuration>
998                                     <image>onap/sdc-backend,onap/sdc-backend-init</image>
999                                 </configuration>
1000                             </execution>
1001                         </executions>
1002                     </plugin>
1003                 </plugins>
1004             </build>
1005         </profile>
1006
1007
1008     </profiles>
1009 </project>