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