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