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