Fix Critical security vulnerability
[sdc.git] / catalog-be / pom.xml
1 <project xmlns="http://maven.apache.org/POM/4.0.0"
2   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4   <modelVersion>4.0.0</modelVersion>
5
6   <artifactId>catalog-be</artifactId>
7   <packaging>war</packaging>
8
9   <parent>
10     <groupId>org.openecomp.sdc</groupId>
11     <artifactId>sdc-main</artifactId>
12     <version>1.7.0-SNAPSHOT</version>
13   </parent>
14
15   <properties>
16     <java-hamcrest.version>2.0.0.0</java-hamcrest.version>
17     <swagger.version>2.1.1</swagger.version>
18     <swagger-ui.version>3.25.0</swagger-ui.version>
19     <maven-dependency-plugin.version>3.1.1</maven-dependency-plugin.version>
20     <replacer.plugin.version>1.5.3</replacer.plugin.version>
21   </properties>
22
23   <dependencies>
24     <!--JUnit Jupiter Engine to depend on the JUnit5 engine and JUnit 5 API -->
25     <dependency>
26       <groupId>org.junit.jupiter</groupId>
27       <artifactId>junit-jupiter-engine</artifactId>
28       <version>${junitJupiter.version}</version>
29       <scope>test</scope>
30     </dependency>
31     <!--JUnit Jupiter Engine to depend on the JUnit4 engine and JUnit 4 API  -->
32     <dependency>
33       <groupId>org.junit.vintage</groupId>
34       <artifactId>junit-vintage-engine</artifactId>
35       <version>${junitJupiter.version}</version>
36       <scope>test</scope>
37     </dependency>
38
39     <!--JSON and YAML Parsing-->
40     <dependency>
41       <groupId>com.fasterxml.jackson.core</groupId>
42       <artifactId>jackson-core</artifactId>
43       <version>${jackson.version}</version>
44     </dependency>
45     <dependency>
46       <groupId>com.fasterxml.jackson.dataformat</groupId>
47       <artifactId>jackson-dataformat-yaml</artifactId>
48       <version>${jackson.version}</version>
49       <exclusions>
50         <exclusion>
51           <groupId>com.fasterxml.jackson.core</groupId>
52           <artifactId>jackson-core</artifactId>
53         </exclusion>
54       </exclusions>
55     </dependency>
56
57     <dependency>
58       <groupId>com.fasterxml.jackson.core</groupId>
59       <artifactId>jackson-databind</artifactId>
60       <version>${jackson.version}</version>
61       <exclusions>
62         <exclusion>
63           <groupId>com.fasterxml.jackson.core</groupId>
64           <artifactId>jackson-core</artifactId>
65         </exclusion>
66       </exclusions>
67     </dependency>
68
69     <dependency>
70       <groupId>org.onap.sdc.common</groupId>
71       <artifactId>onap-generic-artifact-browser-service</artifactId>
72       <version>${project.version}</version>
73       <scope>compile</scope>
74     </dependency>
75
76     <!-- Swagger Dependencies Start -->
77     <dependency>
78       <groupId>io.swagger.core.v3</groupId>
79       <artifactId>swagger-jaxrs2</artifactId>
80       <version>${swagger.version}</version>
81       <exclusions>
82         <exclusion>
83           <groupId>com.fasterxml.jackson.core</groupId>
84           <artifactId>jackson-core</artifactId>
85         </exclusion>
86       </exclusions>
87     </dependency>
88     <dependency>
89       <groupId>io.swagger.core.v3</groupId>
90       <artifactId>swagger-annotations</artifactId>
91       <version>${swagger.version}</version>
92     </dependency>
93     <!-- Swagger Dependencies End -->
94
95     <dependency>
96       <groupId>org.openecomp.sdc</groupId>
97       <artifactId>common-app-api</artifactId>
98       <version>${project.version}</version>
99       <exclusions>
100         <exclusion>
101           <groupId>com.fasterxml.jackson.core</groupId>
102           <artifactId>jackson-core</artifactId>
103         </exclusion>
104       </exclusions>
105     </dependency>
106
107     <dependency>
108       <groupId>org.openecomp.sdc.be</groupId>
109       <artifactId>common-be</artifactId>
110       <version>${project.version}</version>
111       <scope>compile</scope>
112     </dependency>
113     <dependency>
114       <groupId>org.openecomp.sdc.be</groupId>
115       <artifactId>common-be</artifactId>
116       <version>${project.version}</version>
117       <type>test-jar</type>
118       <scope>test</scope>
119     </dependency>
120     <dependency>
121       <groupId>org.openecomp.sdc.be</groupId>
122       <artifactId>catalog-dao</artifactId>
123       <version>${project.version}</version>
124       <exclusions>
125         <exclusion>
126           <groupId>com.fasterxml.jackson.core</groupId>
127           <artifactId>jackson-core</artifactId>
128         </exclusion>
129       </exclusions>
130     </dependency>
131
132     <dependency>
133       <groupId>org.openecomp.sdc.be</groupId>
134       <artifactId>catalog-model</artifactId>
135       <version>${project.version}</version>
136       <exclusions>
137         <exclusion>
138           <groupId>com.fasterxml.jackson.core</groupId>
139           <artifactId>jackson-core</artifactId>
140         </exclusion>
141       </exclusions>
142     </dependency>
143
144     <dependency>
145       <groupId>ch.qos.logback</groupId>
146       <artifactId>logback-classic</artifactId>
147       <version>${logback.version}</version>
148       <scope>compile</scope>
149     </dependency>
150
151     <!-- Snake Yaml -->
152     <dependency>
153       <groupId>org.yaml</groupId>
154       <artifactId>snakeyaml</artifactId>
155       <version>${snakeyaml.version}</version>
156       <scope>compile</scope>
157     </dependency>
158
159     <!-- File changes listener -->
160     <dependency>
161       <groupId>org.apache.commons</groupId>
162       <artifactId>commons-jci-core</artifactId>
163       <version>${commons-jci-core.version}</version>
164       <scope>compile</scope>
165     </dependency>
166
167     <!-- Gson -->
168     <dependency>
169       <groupId>com.google.code.gson</groupId>
170       <artifactId>gson</artifactId>
171       <version>${gson.version}</version>
172       <scope>compile</scope>
173     </dependency>
174
175     <!-- jersey -->
176     <dependency>
177       <groupId>org.glassfish.jersey.media</groupId>
178       <artifactId>jersey-media-json-jackson</artifactId>
179       <version>${jersey-bom.version}</version>
180       <exclusions>
181         <exclusion>
182           <groupId>com.fasterxml.jackson.core</groupId>
183           <artifactId>jackson-core</artifactId>
184         </exclusion>
185       </exclusions>
186     </dependency>
187
188     <dependency>
189       <groupId>org.glassfish.jersey.containers</groupId>
190       <artifactId>jersey-container-servlet-core</artifactId>
191       <version>${jersey-bom.version}</version>
192       <scope>compile</scope>
193     </dependency>
194
195     <dependency>
196       <groupId>org.glassfish.jersey.media</groupId>
197       <artifactId>jersey-media-multipart</artifactId>
198       <version>${jersey-bom.version}</version>
199       <scope>compile</scope>
200     </dependency>
201     <dependency>
202       <groupId>org.glassfish.jersey.ext</groupId>
203       <artifactId>jersey-spring4</artifactId>
204       <version>${jersey-bom.version}</version>
205       <exclusions>
206         <exclusion>
207           <groupId>org.springframework</groupId>
208           <artifactId>spring-web</artifactId>
209         </exclusion>
210         <exclusion>
211           <groupId>org.springframework</groupId>
212           <artifactId>spring-beans</artifactId>
213         </exclusion>
214         <exclusion>
215           <groupId>org.springframework</groupId>
216           <artifactId>spring-core</artifactId>
217         </exclusion>
218         <exclusion>
219           <groupId>org.springframework</groupId>
220           <artifactId>spring-aop</artifactId>
221         </exclusion>
222         <!-- Transitive dependency of spring-bridge -->
223         <exclusion>
224           <groupId>org.springframework</groupId>
225           <artifactId>spring-context</artifactId>
226         </exclusion>
227       </exclusions>
228
229     </dependency>
230
231     <!--asm-all-repackaged is a jersey dependency. in current version jersey depends on a version that was compiled using java 9 compiler
232         currently our jetty (v9.3.6) does not support java 9. as soon as jetty gets upgraded we will remove this dependency-->
233     <dependency>
234       <groupId>org.glassfish.hk2.external</groupId>
235       <artifactId>asm-all-repackaged</artifactId>
236     </dependency>
237
238     <dependency>
239       <groupId>org.glassfish.jersey.ext</groupId>
240       <artifactId>jersey-bean-validation</artifactId>
241     </dependency>
242
243     <!-- http client -->
244     <dependency>
245       <groupId>org.apache.httpcomponents</groupId>
246       <artifactId>httpclient</artifactId>
247       <version>${httpclient.version}</version>
248       <scope>compile</scope>
249     </dependency>
250
251     <dependency>
252       <groupId>org.apache.httpcomponents</groupId>
253       <artifactId>httpcore</artifactId>
254       <version>${httpcore.version}</version>
255       <scope>compile</scope>
256     </dependency>
257
258     <dependency>
259       <groupId>commons-logging</groupId>
260       <artifactId>commons-logging</artifactId>
261       <version>${commons-logging}</version>
262       <scope>compile</scope>
263     </dependency>
264
265     <dependency>
266       <groupId>commons-codec</groupId>
267       <artifactId>commons-codec</artifactId>
268       <version>${commons-codec}</version>
269       <scope>compile</scope>
270     </dependency>
271     <!-- http client END -->
272
273     <dependency>
274       <groupId>javax.servlet</groupId>
275       <artifactId>javax.servlet-api</artifactId>
276       <version>${servlet-api.version}</version>
277       <scope>provided</scope>
278     </dependency>
279
280     <dependency>
281       <groupId>org.eclipse.jgit</groupId>
282       <artifactId>org.eclipse.jgit</artifactId>
283       <version>3.4.1.201406201815-r</version>
284     </dependency>
285
286     <!-- spring - used by A4C -->
287     <dependency>
288       <groupId>org.springframework</groupId>
289       <artifactId>spring-core</artifactId>
290       <version>${spring.version}</version>
291       <scope>compile</scope>
292     </dependency>
293
294     <dependency>
295       <groupId>org.springframework</groupId>
296       <artifactId>spring-context</artifactId>
297       <version>${spring.version}</version>
298       <scope>compile</scope>
299     </dependency>
300
301     <dependency>
302       <groupId>org.springframework</groupId>
303       <artifactId>spring-web</artifactId>
304       <version>${spring.version}</version>
305       <scope>compile</scope>
306     </dependency>
307
308     <dependency>
309       <groupId>org.springframework</groupId>
310       <artifactId>spring-webmvc</artifactId>
311       <version>${spring.version}</version>
312       <scope>compile</scope>
313     </dependency>
314
315     <dependency>
316       <groupId>org.springframework</groupId>
317       <artifactId>spring-aop</artifactId>
318       <version>${spring.version}</version>
319       <scope>compile</scope>
320     </dependency>
321
322     <dependency>
323       <groupId>org.springframework</groupId>
324       <artifactId>spring-beans</artifactId>
325       <version>${spring.version}</version>
326       <scope>compile</scope>
327     </dependency>
328
329     <dependency>
330       <groupId>org.springframework</groupId>
331       <artifactId>spring-expression</artifactId>
332       <version>${spring.version}</version>
333       <scope>compile</scope>
334     </dependency>
335
336     <!-- Spring integration (optional) -->
337     <dependency>
338       <groupId>org.togglz</groupId>
339       <artifactId>togglz-spring-web</artifactId>
340       <version>${togglz.version}</version>
341     </dependency>
342
343     <dependency>
344       <groupId>org.codehaus.janino</groupId>
345       <artifactId>janino</artifactId>
346       <version>${janino.version}</version>
347       <scope>compile</scope>
348     </dependency>
349
350     <dependency>
351       <groupId>org.codehaus.janino</groupId>
352       <artifactId>commons-compiler</artifactId>
353       <version>${janino.version}</version>
354       <scope>compile</scope>
355     </dependency>
356
357     <dependency>
358       <groupId>com.google.guava</groupId>
359       <artifactId>guava</artifactId>
360       <version>${guava.version}</version>
361       <scope>compile</scope>
362     </dependency>
363
364     <dependency>
365       <groupId>org.janusgraph</groupId>
366       <artifactId>janusgraph-core</artifactId>
367       <version>${janusgraph.version}</version>
368       <scope>compile</scope>
369       <exclusions>
370         <exclusion>
371           <groupId>org.json</groupId>
372           <artifactId>json</artifactId>
373         </exclusion>
374         <exclusion>
375           <artifactId>slf4j-log4j12</artifactId>
376           <groupId>org.slf4j</groupId>
377         </exclusion>
378         <exclusion>
379           <artifactId>commons-collections</artifactId>
380           <groupId>commons-collections</groupId>
381         </exclusion>
382         <exclusion>
383           <groupId>org.apache.thrift</groupId>
384           <artifactId>libthrift</artifactId>
385         </exclusion>
386       </exclusions>
387     </dependency>
388
389     <dependency>
390       <groupId>org.janusgraph</groupId>
391       <artifactId>janusgraph-cql</artifactId>
392       <version>${janusgraph.version}</version>
393       <scope>compile</scope>
394       <exclusions>
395         <exclusion>
396           <groupId>org.slf4j</groupId>
397           <artifactId>slf4j-log4j12</artifactId>
398         </exclusion>
399         <exclusion>
400           <groupId>org.json</groupId>
401           <artifactId>json</artifactId>
402         </exclusion>
403         <exclusion>
404           <artifactId>commons-collections</artifactId>
405           <groupId>commons-collections</groupId>
406         </exclusion>
407         <exclusion>
408           <artifactId>groovy</artifactId>
409           <groupId>org.codehaus.groovy</groupId>
410         </exclusion>
411         <exclusion>
412           <groupId>io.netty</groupId>
413           <artifactId>netty-all</artifactId>
414         </exclusion>
415       </exclusions>
416     </dependency>
417
418     <dependency>
419       <groupId>org.apache.commons</groupId>
420       <artifactId>commons-lang3</artifactId>
421       <version>${lang3.version}</version>
422       <scope>compile</scope>
423     </dependency>
424
425     <dependency>
426       <groupId>com.googlecode.json-simple</groupId>
427       <artifactId>json-simple</artifactId>
428       <version>${json-simple.version}</version>
429       <scope>compile</scope>
430
431     </dependency>
432
433     <!-- functional java -->
434     <dependency>
435       <groupId>org.functionaljava</groupId>
436       <artifactId>functionaljava</artifactId>
437       <version>${functionaljava.version}</version>
438       <scope>compile</scope>
439     </dependency>
440
441     <!-- Aspects -->
442     <dependency>
443       <groupId>com.jcabi</groupId>
444       <artifactId>jcabi-aspects</artifactId>
445       <version>${jcabi.version}</version>
446       <scope>compile</scope>
447     </dependency>
448
449     <dependency>
450       <groupId>org.aspectj</groupId>
451       <artifactId>aspectjrt</artifactId>
452       <version>${aspectjrt.version}</version>
453       <scope>compile</scope>
454     </dependency>
455
456
457     <!-- CAMBRIA CLIENT for U-EB -->
458     <dependency>
459       <groupId>com.att.nsa</groupId>
460       <artifactId>cambriaClient</artifactId>
461       <version>1.2.1-oss</version>
462       <scope>compile</scope>
463       <exclusions>
464         <exclusion>
465           <groupId>com.att.nsa</groupId>
466           <artifactId>saClientLibrary</artifactId>
467         </exclusion>
468       </exclusions>
469     </dependency>
470
471     <dependency>
472       <groupId>org.json</groupId>
473       <artifactId>json</artifactId>
474       <version>20131018</version>
475       <scope>compile</scope>
476     </dependency>
477
478     <!-- CASSANDRA -->
479     <dependency>
480       <groupId>com.datastax.cassandra</groupId>
481       <artifactId>cassandra-driver-core</artifactId>
482       <version>${cassandra.driver.version}</version>
483       <scope>compile</scope>
484     </dependency>
485     <dependency>
486       <groupId>com.datastax.cassandra</groupId>
487       <artifactId>cassandra-driver-mapping</artifactId>
488       <version>${cassandra.driver.version}</version>
489       <scope>compile</scope>
490     </dependency>
491     <!-- CASSANDRA END -->
492
493     <!-- Inserted for ECOMP Portal Integration -->
494     <dependency>
495       <groupId>org.onap.portal.sdk</groupId>
496       <artifactId>epsdk-fw</artifactId>
497       <version>${ecomp.version}</version>
498       <scope>compile</scope>
499       <exclusions>
500         <exclusion>
501           <groupId>com.att.nsa</groupId>
502           <artifactId>cambriaClient</artifactId>
503         </exclusion>
504         <exclusion>
505           <artifactId>slf4j-log4j12</artifactId>
506           <groupId>org.slf4j</groupId>
507         </exclusion>
508         <exclusion>
509           <groupId>org.onap.aaf.authz</groupId>
510           <artifactId>aaf-cadi-aaf</artifactId>
511         </exclusion>
512         <exclusion>
513           <artifactId>aaf-cadi-core</artifactId>
514           <groupId>org.onap.aaf.authz</groupId>
515         </exclusion>
516         <exclusion>
517           <artifactId>commons-codec</artifactId>
518           <groupId>commons-codec</groupId>
519         </exclusion>
520       </exclusions>
521     </dependency>
522
523     <!--Jetty Proxy-->
524     <dependency>
525       <groupId>org.eclipse.jetty</groupId>
526       <artifactId>jetty-proxy</artifactId>
527       <version>${jetty.version}</version>
528       <scope>compile</scope>
529     </dependency>
530
531     <dependency>
532       <groupId>org.eclipse.jetty</groupId>
533       <artifactId>jetty-servlets</artifactId>
534       <version>${jetty.version}</version>
535       <scope>compile</scope>
536     </dependency>
537     <!-- System metrics -->
538     <dependency>
539       <groupId>org.fusesource</groupId>
540       <artifactId>sigar</artifactId>
541       <version>${sigar.version}</version>
542       <scope>compile</scope>
543     </dependency>
544     <dependency>
545       <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
546       <artifactId>dmaapClient</artifactId>
547       <version>1.1.3</version>
548       <scope>compile</scope>
549       <exclusions>
550         <exclusion>
551           <groupId>com.att.aft</groupId>
552           <artifactId>dme2</artifactId>
553         </exclusion>
554         <exclusion>
555           <groupId>com.fasterxml.jackson.core</groupId>
556           <artifactId>jackson-core</artifactId>
557         </exclusion>
558       </exclusions>
559     </dependency>
560     <dependency>
561       <groupId>com.att.aft</groupId>
562       <artifactId>dme2</artifactId>
563       <version>3.1.200-oss</version>
564     </dependency>
565
566     <dependency>
567       <groupId>javax.jms</groupId>
568       <artifactId>jms</artifactId>
569       <version>1.1</version>
570       <scope>provided</scope>
571     </dependency>
572
573     <!-- CADI -->
574     <dependency>
575       <groupId>org.onap.aaf.authz</groupId>
576       <artifactId>aaf-cadi-aaf</artifactId>
577       <version>${cadi.version}</version>
578       <exclusions>
579         <exclusion>
580           <groupId>com.datastax.cassandra</groupId>
581           <artifactId>cassandra-driver-core</artifactId>
582         </exclusion>
583         <exclusion>
584           <groupId>org.slf4j</groupId>
585           <artifactId>slf4j-log4j12</artifactId>
586         </exclusion>
587       </exclusions>
588     </dependency>
589
590     <!-- TEST -->
591     <dependency>
592       <groupId>org.assertj</groupId>
593       <artifactId>assertj-core</artifactId>
594       <scope>test</scope>
595     </dependency>
596
597     <dependency>
598       <groupId>org.glassfish.jersey.test-framework.providers</groupId>
599       <artifactId>jersey-test-framework-provider-bundle</artifactId>
600       <version>${jersey-bom.version}</version>
601       <type>pom</type>
602       <scope>test</scope>
603     </dependency>
604
605     <dependency>
606       <groupId>org.glassfish.jersey.core</groupId>
607       <artifactId>jersey-client</artifactId>
608       <version>${jersey-bom.version}</version>
609     </dependency>
610
611     <dependency>
612       <groupId>org.eclipse.jetty</groupId>
613       <artifactId>jetty-webapp</artifactId>
614       <version>${jetty.version}</version>
615       <scope>test</scope>
616     </dependency>
617
618     <dependency>
619       <groupId>org.hamcrest</groupId>
620       <artifactId>hamcrest</artifactId>
621       <version>${hamcrest.version}</version>
622       <scope>test</scope>
623     </dependency>
624
625     <dependency>
626       <groupId>org.hamcrest</groupId>
627       <artifactId>hamcrest-library</artifactId>
628       <version>${hamcrest.version}</version>
629       <scope>test</scope>
630     </dependency>
631
632     <dependency>
633       <groupId>org.junit.jupiter</groupId>
634       <artifactId>junit-jupiter-api</artifactId>
635       <version>${junitJupiter.version}</version>
636       <scope>test</scope>
637     </dependency>
638
639     <dependency>
640       <groupId>org.junit.jupiter</groupId>
641       <artifactId>junit-jupiter</artifactId>
642       <version>${junitJupiter.version}</version>
643       <scope>test</scope>
644     </dependency>
645
646     <dependency>
647       <groupId>org.junit.platform</groupId>
648       <artifactId>junit-platform-commons</artifactId>
649       <version>${junit.platform.version}</version>
650       <scope>test</scope>
651     </dependency>
652     <dependency>
653       <groupId>org.junit.platform</groupId>
654       <artifactId>junit-platform-engine</artifactId>
655       <version>${junit.platform.version}</version>
656       <scope>test</scope>
657     </dependency>
658     <dependency>
659       <groupId>org.mockito</groupId>
660       <artifactId>mockito-junit-jupiter</artifactId>
661       <version>${mockitoJupiter.version}</version>
662       <scope>test</scope>
663     </dependency>
664
665     <dependency>
666       <groupId>org.springframework</groupId>
667       <artifactId>spring-test</artifactId>
668       <version>${spring.version}</version>
669       <scope>test</scope>
670     </dependency>
671
672     <dependency>
673       <groupId>org.springframework</groupId>
674       <artifactId>spring-tx</artifactId>
675       <version>${spring.version}</version>
676     </dependency>
677
678     <dependency>
679       <groupId>io.cucumber</groupId>
680       <artifactId>cucumber-java</artifactId>
681       <version>${cucumber.version}</version>
682       <scope>test</scope>
683     </dependency>
684
685     <dependency>
686       <groupId>io.cucumber</groupId>
687       <artifactId>cucumber-junit</artifactId>
688       <version>${cucumber.version}</version>
689       <scope>test</scope>
690     </dependency>
691
692     <dependency>
693       <groupId>org.jmockit</groupId>
694       <artifactId>jmockit</artifactId>
695       <version>${jmockit.version}</version>
696       <scope>test</scope>
697     </dependency>
698
699     <dependency>
700       <groupId>com.google.code.bean-matchers</groupId>
701       <artifactId>bean-matchers</artifactId>
702       <version>0.11</version>
703       <scope>test</scope>
704     </dependency>
705
706     <dependency>
707       <groupId>org.codehaus.groovy</groupId>
708       <artifactId>groovy</artifactId>
709       <version>2.4.8</version>
710     </dependency>
711
712     <dependency>
713       <groupId>io.netty</groupId>
714       <artifactId>netty-handler</artifactId>
715     </dependency>
716     <dependency>
717       <groupId>org.onap.sdc.common</groupId>
718       <artifactId>onap-tosca-datatype</artifactId>
719       <version>${project.version}</version>
720       <exclusions>
721         <exclusion>
722           <groupId>com.fasterxml.jackson.core</groupId>
723           <artifactId>jackson-core</artifactId>
724         </exclusion>
725       </exclusions>
726     </dependency>
727     <dependency>
728       <groupId>org.apache.commons</groupId>
729       <artifactId>commons-collections4</artifactId>
730       <version>${commons.collections.version}</version>
731     </dependency>
732     <dependency>
733       <groupId>org.codehaus.jackson</groupId>
734       <artifactId>jackson-mapper-asl</artifactId>
735       <version>${jackson.mapper.version}</version>
736     </dependency>
737     <dependency>
738       <groupId>org.onap.sdc.sdc-be-common</groupId>
739       <artifactId>security-util-lib</artifactId>
740       <version>${security.util.lib.version}</version>
741     </dependency>
742     <dependency>
743       <groupId>org.openecomp.sdc.core</groupId>
744       <artifactId>openecomp-tosca-lib</artifactId>
745       <version>${project.version}</version>
746       <exclusions>
747         <exclusion>
748           <groupId>com.fasterxml.jackson.core</groupId>
749           <artifactId>jackson-core</artifactId>
750         </exclusion>
751       </exclusions>
752     </dependency>
753   </dependencies>
754
755   <build>
756     <finalName>${project.artifactId}-${project.version}</finalName>
757     <plugins>
758       <plugin>
759         <!-- Download Swagger UI webjar. -->
760         <artifactId>maven-dependency-plugin</artifactId>
761         <version>${maven-dependency-plugin.version}</version>
762         <executions>
763           <execution>
764             <phase>prepare-package</phase>
765             <goals>
766               <goal>unpack</goal>
767             </goals>
768             <configuration>
769               <artifactItems>
770                 <artifactItem>
771                   <groupId>org.webjars</groupId>
772                   <artifactId>swagger-ui</artifactId>
773                   <version>${swagger-ui.version}</version>
774                 </artifactItem>
775               </artifactItems>
776               <outputDirectory>${project.build.directory}/swagger-ui</outputDirectory>
777             </configuration>
778           </execution>
779         </executions>
780       </plugin>
781       <plugin>
782         <!-- Replace the OpenAPI specification example URL with the local one. -->
783         <groupId>com.google.code.maven-replacer-plugin</groupId>
784         <artifactId>replacer</artifactId>
785         <version>${replacer.plugin.version}</version>
786         <executions>
787           <execution>
788             <phase>prepare-package</phase>
789             <goals>
790               <goal>replace</goal>
791             </goals>
792           </execution>
793         </executions>
794         <configuration>
795           <file>
796             ${project.build.directory}/swagger-ui/META-INF/resources/webjars/swagger-ui/${swagger-ui.version}/index.html
797           </file>
798           <replacements>
799             <replacement>
800               <token>https://petstore.swagger.io/v2/swagger.json</token>
801               <value>/sdc/openapi.json</value>
802             </replacement>
803           </replacements>
804         </configuration>
805       </plugin>
806       <plugin>
807         <groupId>org.apache.maven.plugins</groupId>
808         <artifactId>maven-war-plugin</artifactId>
809         <configuration>
810           <packagingExcludes>WEB-INF\lib\slf4j-log4j*.jar,
811             WEB-INF/classes/elasticsearch.yml,
812             WEB-INF/classes/portal.properties
813           </packagingExcludes>
814           <archive>
815             <manifestEntries>
816               <SDC-Version>${project.version}</SDC-Version>
817             </manifestEntries>
818             <manifest>
819               <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
820               <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
821             </manifest>
822           </archive>
823           <attachClasses>true</attachClasses>
824           <webResources combine.children="append">
825             <resource>
826               <directory>
827                 ${project.build.directory}/swagger-ui/META-INF/resources/webjars/swagger-ui/${swagger-ui.version}
828               </directory>
829               <includes>
830                 <include>**/*.*</include>
831               </includes>
832               <targetPath>swagger-ui</targetPath>
833             </resource>
834           </webResources>
835         </configuration>
836       </plugin>
837       <plugin>
838         <groupId>com.github.sylvainlaurent.maven</groupId>
839         <artifactId>yaml-json-validator-maven-plugin</artifactId>
840         <executions>
841           <execution>
842             <id>validate</id>
843             <phase>validate</phase>
844             <goals>
845               <goal>validate</goal>
846             </goals>
847             <configuration>
848               <validationSets>
849                 <validationSet>
850                   <includes>
851                     <include>src/main/resources/**/*.y*ml</include>
852                     <include>src/test/resources/**/*.y*ml</include>
853                   </includes>
854                   <excludes>
855                     <exclude>src/test/resources/artifacts/pnfSoftwareInformation/**</exclude>
856                   </excludes>
857                 </validationSet>
858                 <validationSet>
859                   <includes>
860                     <include>src/main/resources/**/*.json</include>
861                     <include>src/test/resources/**/*.json</include>
862                   </includes>
863                 </validationSet>
864               </validationSets>
865             </configuration>
866           </execution>
867         </executions>
868       </plugin>
869       <plugin>
870         <groupId>com.jcabi</groupId>
871         <artifactId>jcabi-maven-plugin</artifactId>
872         <version>${jcabi.maven.plugin.version}</version>
873         <executions>
874           <execution>
875             <goals>
876               <goal>ajc</goal>
877             </goals>
878           </execution>
879         </executions>
880       </plugin>
881       <plugin>
882         <groupId>org.apache.maven.plugins</groupId>
883         <artifactId>maven-assembly-plugin</artifactId>
884         <executions>
885           <execution>
886             <id>normatives</id>
887             <phase>prepare-package</phase>
888             <goals>
889               <goal>single</goal>
890             </goals>
891             <configuration>
892               <finalName>normatives</finalName>
893               <appendAssemblyId>false</appendAssemblyId>
894               <descriptors>
895                 <descriptor>src/main/assembly/normatives.xml</descriptor>
896               </descriptors>
897             </configuration>
898           </execution>
899         </executions>
900       </plugin>
901       <plugin>
902         <groupId>org.apache.maven.plugins</groupId>
903         <artifactId>maven-clean-plugin</artifactId>
904         <executions>
905           <execution>
906             <id>clean.sdc.backend.folder</id>
907             <phase>clean</phase>
908             <goals>
909               <goal>clean</goal>
910             </goals>
911             <configuration>
912               <filesets>
913                 <!-- static configuration files -->
914                 <fileset>
915                   <directory>
916                     ${project.parent.basedir}/catalog-be/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/files/default
917                   </directory>
918                   <followSymlinks>false</followSymlinks>
919                   <includes>
920                     <include>Artifact-Generator.properties</include>
921                     <include>error-configuration.yaml</include>
922                     <include>ecomp-error-configuration.yaml</include>
923                     <include>logback.xml</include>
924                   </includes>
925                 </fileset>
926                 <!-- BE WAR's -->
927                 <fileset>
928                   <directory>${project.parent.basedir}/catalog-be/sdc-backend</directory>
929                   <followSymlinks>false</followSymlinks>
930                   <includes>
931                     <include>*.war</include>
932                     <include>context.xml</include>
933                   </includes>
934                 </fileset>
935                 <fileset>
936                   <directory>sdc-backend-init/chef-repo/cookbooks/sdc-catalog-be-setup/files/default</directory>
937                   <followSymlinks>false</followSymlinks>
938                   <includes>
939                     <include>normatives.tar.gz</include>
940                   </includes>
941                 </fileset>
942               </filesets>
943             </configuration>
944           </execution>
945           <execution>
946             <id>clean-static-files</id>
947             <phase>clean</phase>
948             <goals>
949               <goal>clean</goal>
950             </goals>
951             <configuration>
952               <filesets>
953                 <!-- tosca files -->
954                 <fileset>
955                   <directory>${project.parent.basedir}/asdctool/tosca</directory>
956                   <followSymlinks>false</followSymlinks>
957                 </fileset>
958               </filesets>
959             </configuration>
960           </execution>
961         </executions>
962       </plugin>
963       <plugin>
964         <groupId>org.apache.maven.plugins</groupId>
965         <artifactId>maven-resources-plugin</artifactId>
966         <executions>
967           <execution>
968             <id>copy-static-configuration-files</id>
969             <phase>verify</phase>
970             <goals>
971               <goal>copy-resources</goal>
972             </goals>
973             <configuration>
974               <outputDirectory>
975                 ${project.parent.basedir}/catalog-be/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/files/default
976               </outputDirectory>
977               <resources>
978                 <resource>
979                   <directory>${project.parent.basedir}/catalog-be/src/main/resources/config
980                   </directory>
981                   <includes>
982                     <include>Artifact-Generator.properties</include>
983                     <include>error-configuration.yaml</include>
984                     <include>ecomp-error-configuration.yaml</include>
985                     <include>logback.xml</include>
986                   </includes>
987                 </resource>
988               </resources>
989             </configuration>
990           </execution>
991           <execution>
992             <id>copy-tosca-folder</id>
993             <!-- here the phase you need -->
994             <phase>install</phase>
995             <goals>
996               <goal>copy-resources</goal>
997             </goals>
998             <configuration>
999               <outputDirectory>${project.parent.basedir}/asdctool/tosca</outputDirectory>
1000               <resources>
1001                 <resource>
1002                   <directory>${project.parent.basedir}/catalog-be/src/main/resources/import/tosca
1003                   </directory>
1004                   <filtering>true</filtering>
1005                 </resource>
1006               </resources>
1007             </configuration>
1008           </execution>
1009         </executions>
1010       </plugin>
1011     </plugins>
1012
1013     <pluginManagement>
1014       <plugins>
1015         <!--This plugin's configuration is used to store Eclipse m2e settings
1016             only. It has no influence on the Maven build itself. -->
1017         <plugin>
1018           <groupId>org.eclipse.m2e</groupId>
1019           <artifactId>lifecycle-mapping</artifactId>
1020           <version>1.0.0</version>
1021           <configuration>
1022             <lifecycleMappingMetadata>
1023               <pluginExecutions>
1024                 <pluginExecution>
1025                   <pluginExecutionFilter>
1026                     <groupId>com.googlecode.maven-download-plugin</groupId>
1027                     <artifactId>download-maven-plugin</artifactId>
1028                     <versionRange>[1.2.1,)</versionRange>
1029                     <goals>
1030                       <goal>wget</goal>
1031                     </goals>
1032                   </pluginExecutionFilter>
1033                 </pluginExecution>
1034
1035                 <pluginExecution>
1036                   <pluginExecutionFilter>
1037                     <groupId>com.jcabi</groupId>
1038                     <artifactId>jcabi-maven-plugin</artifactId>
1039                     <versionRange>[0.0,)</versionRange>
1040                     <goals>
1041                       <goal>ajc</goal>
1042                     </goals>
1043                   </pluginExecutionFilter>
1044                   <action>
1045                     <execute/>
1046                   </action>
1047                 </pluginExecution>
1048
1049               </pluginExecutions>
1050             </lifecycleMappingMetadata>
1051           </configuration>
1052         </plugin>
1053       </plugins>
1054     </pluginManagement>
1055     <!-- Swagger Plugins End -->
1056   </build>
1057
1058   <profiles>
1059     <profile>
1060       <id>docker-staging</id>
1061       <properties>
1062         <docker.tag>${project.version}-STAGING-${maven.build.timestamp}</docker.tag>
1063         <docker.latest.tag>${project.version}-STAGING-latest</docker.latest.tag>
1064       </properties>
1065     </profile>
1066
1067     <profile>
1068       <id>docker</id>
1069       <activation>
1070         <activeByDefault>false</activeByDefault>
1071       </activation>
1072       <build>
1073         <plugins>
1074           <plugin>
1075             <artifactId>maven-antrun-plugin</artifactId>
1076             <version>1.8</version>
1077             <executions>
1078               <execution>
1079                 <id>copy-context-file</id>
1080                 <phase>validate</phase>
1081                 <configuration>
1082                   <target>
1083                     <copy file="sdc-backend/context.xml.template" tofile="sdc-backend/context.xml"
1084                       overwrite="true"/>
1085                   </target>
1086                 </configuration>
1087                 <goals>
1088                   <goal>run</goal>
1089                 </goals>
1090               </execution>
1091               <execution>
1092                 <id>set-version-in-context-file</id>
1093                 <phase>generate-resources</phase>
1094                 <configuration>
1095                   <target>
1096                     <replace file="sdc-backend/context.xml">
1097                       <replacetoken>projectversion</replacetoken>
1098                       <replacevalue>${project.version}</replacevalue>
1099                     </replace>
1100                   </target>
1101                 </configuration>
1102                 <goals>
1103                   <goal>run</goal>
1104                 </goals>
1105               </execution>
1106             </executions>
1107           </plugin>
1108           <plugin>
1109             <groupId>org.apache.maven.plugins</groupId>
1110             <artifactId>maven-resources-plugin</artifactId>
1111             <executions>
1112               <execution>
1113                 <id>copy-resources-be</id>
1114                 <phase>verify</phase>
1115                 <goals>
1116                   <goal>copy-resources</goal>
1117                 </goals>
1118                 <configuration>
1119                   <outputDirectory>${basedir}/sdc-backend</outputDirectory>
1120                   <resources>
1121                     <resource>
1122                       <directory>${project.parent.basedir}/catalog-be/target</directory>
1123                       <includes>
1124                         <include>catalog-be-${project.version}.war</include>
1125                       </includes>
1126                     </resource>
1127                   </resources>
1128                 </configuration>
1129               </execution>
1130               <execution>
1131                 <id>copy-normatives</id>
1132                 <phase>package</phase>
1133                 <goals>
1134                   <goal>copy-resources</goal>
1135                 </goals>
1136                 <configuration>
1137                   <outputDirectory>
1138                     sdc-backend-init/chef-repo/cookbooks/sdc-catalog-be-setup/files/default
1139                   </outputDirectory>
1140                   <resources>
1141                     <resource>
1142                       <directory>${project.parent.basedir}/catalog-be/target</directory>
1143                       <includes>
1144                         <include>normatives.tar.gz</include>
1145                       </includes>
1146                     </resource>
1147                   </resources>
1148                 </configuration>
1149               </execution>
1150             </executions>
1151           </plugin>
1152           <plugin>
1153             <groupId>io.fabric8</groupId>
1154             <artifactId>docker-maven-plugin</artifactId>
1155             <configuration>
1156               <apiVersion>1.23</apiVersion>
1157               <registry>nexus3.onap.org:10001</registry>
1158               <authConfig>
1159                 <pull>
1160                   <username>docker</username>
1161                   <password>docker</password>
1162                 </pull>
1163               </authConfig>
1164               <images>
1165
1166                 <!-- Build backend image -->
1167                 <image>
1168                   <name>onap/sdc-backend</name>
1169                   <alias>sdc-backend</alias>
1170                   <build>
1171                     <cleanup>try</cleanup>
1172                     <dockerFileDir>${project.basedir}/sdc-backend</dockerFileDir>
1173                     <tags>
1174                       <tag>${docker.tag}</tag>
1175                       <tag>
1176                         ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest
1177                       </tag>
1178                     </tags>
1179                   </build>
1180                 </image>
1181                 <!-- Build backend-init image -->
1182                 <image>
1183                   <name>onap/sdc-backend-init</name>
1184                   <alias>sdc-backend-init</alias>
1185                   <build>
1186                     <cleanup>try</cleanup>
1187                     <dockerFileDir>${project.basedir}/sdc-backend-init</dockerFileDir>
1188                     <tags>
1189                       <tag>${docker.tag}</tag>
1190                       <tag>
1191                         ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest
1192                       </tag>
1193                     </tags>
1194                   </build>
1195                 </image>
1196               </images>
1197             </configuration>
1198             <executions>
1199               <execution>
1200                 <id>clean-images</id>
1201                 <phase>pre-clean</phase>
1202                 <goals>
1203                   <goal>remove</goal>
1204                 </goals>
1205                 <configuration>
1206                   <removeAll>true</removeAll>
1207                   <image>onap/sdc-backend,onap/sdc-backend-init</image>
1208                 </configuration>
1209               </execution>
1210
1211               <execution>
1212                 <id>generate-images</id>
1213                 <phase>install</phase>
1214                 <goals>
1215                   <goal>build</goal>
1216                 </goals>
1217               </execution>
1218
1219               <execution>
1220                 <id>push-images</id>
1221                 <phase>deploy</phase>
1222                 <goals>
1223                   <goal>push</goal>
1224                 </goals>
1225                 <configuration>
1226                   <image>onap/sdc-backend,onap/sdc-backend-init</image>
1227                 </configuration>
1228               </execution>
1229             </executions>
1230           </plugin>
1231         </plugins>
1232       </build>
1233     </profile>
1234   </profiles>
1235 </project>