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