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