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