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         <exclusion>
424           <groupId>dom4j</groupId>
425           <artifactId>dom4j</artifactId>
426         </exclusion>
427       </exclusions>
428     </dependency>
429
430     <dependency>
431       <groupId>org.janusgraph</groupId>
432       <artifactId>janusgraph-cql</artifactId>
433       <version>${janusgraph.version}</version>
434       <scope>compile</scope>
435       <exclusions>
436         <exclusion>
437           <groupId>org.slf4j</groupId>
438           <artifactId>slf4j-log4j12</artifactId>
439         </exclusion>
440         <exclusion>
441           <groupId>org.json</groupId>
442           <artifactId>json</artifactId>
443         </exclusion>
444         <exclusion>
445           <artifactId>commons-collections</artifactId>
446           <groupId>commons-collections</groupId>
447         </exclusion>
448         <exclusion>
449           <artifactId>groovy</artifactId>
450           <groupId>org.codehaus.groovy</groupId>
451         </exclusion>
452         <exclusion>
453           <groupId>io.netty</groupId>
454           <artifactId>netty-all</artifactId>
455         </exclusion>
456       </exclusions>
457     </dependency>
458
459     <dependency>
460       <groupId>org.apache.commons</groupId>
461       <artifactId>commons-lang3</artifactId>
462       <version>${lang3.version}</version>
463       <scope>compile</scope>
464     </dependency>
465
466     <dependency>
467       <groupId>com.googlecode.json-simple</groupId>
468       <artifactId>json-simple</artifactId>
469       <version>${json-simple.version}</version>
470       <scope>compile</scope>
471
472     </dependency>
473
474     <!-- functional java -->
475     <dependency>
476       <groupId>org.functionaljava</groupId>
477       <artifactId>functionaljava</artifactId>
478       <version>${functionaljava.version}</version>
479       <scope>compile</scope>
480     </dependency>
481
482     <!-- Aspects -->
483     <dependency>
484       <groupId>com.jcabi</groupId>
485       <artifactId>jcabi-aspects</artifactId>
486       <version>${jcabi.version}</version>
487       <scope>compile</scope>
488     </dependency>
489
490     <dependency>
491       <groupId>org.aspectj</groupId>
492       <artifactId>aspectjrt</artifactId>
493       <version>${aspectjrt.version}</version>
494       <scope>compile</scope>
495     </dependency>
496
497
498     <!-- CAMBRIA CLIENT for U-EB -->
499     <dependency>
500       <groupId>com.att.nsa</groupId>
501       <artifactId>cambriaClient</artifactId>
502       <version>1.2.1-oss</version>
503       <scope>compile</scope>
504       <exclusions>
505         <exclusion>
506           <groupId>com.att.nsa</groupId>
507           <artifactId>saClientLibrary</artifactId>
508         </exclusion>
509       </exclusions>
510     </dependency>
511
512     <dependency>
513       <groupId>org.json</groupId>
514       <artifactId>json</artifactId>
515       <version>20131018</version>
516       <scope>compile</scope>
517     </dependency>
518
519     <!-- CASSANDRA -->
520     <dependency>
521       <groupId>com.datastax.cassandra</groupId>
522       <artifactId>cassandra-driver-core</artifactId>
523       <version>${cassandra.driver.version}</version>
524       <scope>compile</scope>
525     </dependency>
526     <dependency>
527       <groupId>com.datastax.cassandra</groupId>
528       <artifactId>cassandra-driver-mapping</artifactId>
529       <version>${cassandra.driver.version}</version>
530       <scope>compile</scope>
531     </dependency>
532     <!-- CASSANDRA END -->
533
534     <!-- Inserted for ECOMP Portal Integration -->
535     <dependency>
536       <groupId>org.owasp.esapi</groupId>
537       <artifactId>esapi</artifactId>
538       <version>${org.owasp.esapi.version}</version>
539       <exclusions>
540         <exclusion>
541           <groupId>xerces</groupId>
542           <artifactId>xercesImpl</artifactId>
543         </exclusion>
544         <exclusion>
545           <groupId>log4j</groupId>
546           <artifactId>log4j</artifactId>
547         </exclusion>
548         <exclusion>
549           <groupId>commons-fileupload</groupId>
550           <artifactId>commons-fileupload</artifactId>
551         </exclusion>
552         <exclusion>
553           <groupId>org.apache.xmlgraphics</groupId>
554           <artifactId>xmlgraphics-commons</artifactId>
555         </exclusion>
556       </exclusions>
557     </dependency>
558     <dependency>
559       <groupId>org.onap.portal.sdk</groupId>
560       <artifactId>epsdk-fw</artifactId>
561       <version>${ecomp.version}</version>
562       <scope>compile</scope>
563       <exclusions>
564         <exclusion>
565           <groupId>com.att.nsa</groupId>
566           <artifactId>cambriaClient</artifactId>
567         </exclusion>
568         <exclusion>
569           <artifactId>slf4j-log4j12</artifactId>
570           <groupId>org.slf4j</groupId>
571         </exclusion>
572         <exclusion>
573           <groupId>org.onap.aaf.authz</groupId>
574           <artifactId>aaf-cadi-aaf</artifactId>
575         </exclusion>
576         <exclusion>
577           <artifactId>aaf-cadi-core</artifactId>
578           <groupId>org.onap.aaf.authz</groupId>
579         </exclusion>
580         <exclusion>
581           <artifactId>commons-codec</artifactId>
582           <groupId>commons-codec</groupId>
583         </exclusion>
584         <exclusion>
585           <artifactId>log4j</artifactId>
586           <groupId>log4j</groupId>
587         </exclusion>
588       </exclusions>
589     </dependency>
590
591     <!--Jetty Proxy-->
592     <dependency>
593       <groupId>org.eclipse.jetty</groupId>
594       <artifactId>jetty-http</artifactId>
595       <version>${jetty.version}</version>
596       <scope>compile</scope>
597     </dependency>
598
599     <dependency>
600       <groupId>org.eclipse.jetty</groupId>
601       <artifactId>jetty-proxy</artifactId>
602       <version>${jetty.version}</version>
603       <scope>compile</scope>
604       <exclusions>
605         <exclusion>
606           <groupId>org.eclipse.jetty</groupId>
607           <artifactId>jetty-http</artifactId>
608         </exclusion>
609       </exclusions>
610     </dependency>
611
612     <dependency>
613       <groupId>org.eclipse.jetty</groupId>
614       <artifactId>jetty-servlets</artifactId>
615       <version>${jetty.version}</version>
616       <scope>compile</scope>
617       <exclusions>
618         <exclusion>
619           <groupId>org.eclipse.jetty</groupId>
620           <artifactId>jetty-http</artifactId>
621         </exclusion>
622         <exclusion>
623           <groupId>org.eclipse.jetty</groupId>
624           <artifactId>jetty-continuation</artifactId>
625         </exclusion>
626       </exclusions>
627     </dependency>
628     <!-- System metrics -->
629     <dependency>
630       <groupId>org.fusesource</groupId>
631       <artifactId>sigar</artifactId>
632       <version>${sigar.version}</version>
633       <scope>compile</scope>
634       <exclusions>
635         <exclusion>
636           <groupId>log4j</groupId>
637           <artifactId>log4j</artifactId>
638         </exclusion>
639       </exclusions>
640     </dependency>
641     <dependency>
642       <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
643       <artifactId>dmaapClient</artifactId>
644       <version>1.1.3</version>
645       <scope>compile</scope>
646       <exclusions>
647         <exclusion>
648           <groupId>com.att.aft</groupId>
649           <artifactId>dme2</artifactId>
650         </exclusion>
651         <exclusion>
652           <groupId>com.fasterxml.jackson.core</groupId>
653           <artifactId>jackson-core</artifactId>
654         </exclusion>
655         <exclusion>
656           <artifactId>log4j</artifactId>
657           <groupId>log4j</groupId>
658         </exclusion>
659         <exclusion>
660           <artifactId>apache-log4j-extras</artifactId>
661           <groupId>log4j</groupId>
662         </exclusion>
663       </exclusions>
664     </dependency>
665     <dependency>
666       <groupId>com.att.aft</groupId>
667       <artifactId>dme2</artifactId>
668       <version>3.1.200-oss</version>
669     </dependency>
670
671     <dependency>
672       <groupId>javax.jms</groupId>
673       <artifactId>jms</artifactId>
674       <version>1.1</version>
675       <scope>provided</scope>
676     </dependency>
677
678     <!-- CADI -->
679     <dependency>
680       <groupId>org.onap.aaf.authz</groupId>
681       <artifactId>aaf-cadi-aaf</artifactId>
682       <version>${cadi.version}</version>
683       <exclusions>
684         <exclusion>
685           <groupId>com.datastax.cassandra</groupId>
686           <artifactId>cassandra-driver-core</artifactId>
687         </exclusion>
688         <exclusion>
689           <groupId>org.slf4j</groupId>
690           <artifactId>slf4j-log4j12</artifactId>
691         </exclusion>
692         <exclusion>
693           <artifactId>log4j</artifactId>
694           <groupId>log4j</groupId>
695         </exclusion>
696       </exclusions>
697     </dependency>
698
699     <!-- TEST -->
700     <dependency>
701       <groupId>org.assertj</groupId>
702       <artifactId>assertj-core</artifactId>
703       <scope>test</scope>
704     </dependency>
705
706     <dependency>
707       <groupId>org.glassfish.jersey.test-framework.providers</groupId>
708       <artifactId>jersey-test-framework-provider-bundle</artifactId>
709       <version>${jersey-bom.version}</version>
710       <type>pom</type>
711       <scope>test</scope>
712       <exclusions>
713         <exclusion>
714           <groupId>org.eclipse.jetty</groupId>
715           <artifactId>jetty-server</artifactId>
716         </exclusion>
717         <exclusion>
718           <groupId>org.eclipse.jetty</groupId>
719           <artifactId>jetty-continuation</artifactId>
720         </exclusion>
721       </exclusions>
722     </dependency>
723
724     <dependency>
725       <groupId>org.glassfish.jersey.core</groupId>
726       <artifactId>jersey-client</artifactId>
727       <version>${jersey-bom.version}</version>
728     </dependency>
729
730     <dependency>
731       <groupId>org.eclipse.jetty</groupId>
732       <artifactId>jetty-webapp</artifactId>
733       <version>${jetty.version}</version>
734       <scope>test</scope>
735       <exclusions>
736         <exclusion>
737           <groupId>org.eclipse.jetty</groupId>
738           <artifactId>jetty-servlet</artifactId>
739         </exclusion>
740       </exclusions>
741     </dependency>
742
743     <dependency>
744       <groupId>org.hamcrest</groupId>
745       <artifactId>hamcrest</artifactId>
746       <version>${hamcrest.version}</version>
747       <scope>test</scope>
748     </dependency>
749
750     <dependency>
751       <groupId>org.hamcrest</groupId>
752       <artifactId>hamcrest-library</artifactId>
753       <version>${hamcrest.version}</version>
754       <scope>test</scope>
755     </dependency>
756
757     <dependency>
758       <groupId>org.junit.jupiter</groupId>
759       <artifactId>junit-jupiter-api</artifactId>
760       <version>${junitJupiter.version}</version>
761       <scope>test</scope>
762     </dependency>
763
764     <dependency>
765       <groupId>org.junit.jupiter</groupId>
766       <artifactId>junit-jupiter</artifactId>
767       <version>${junitJupiter.version}</version>
768       <scope>test</scope>
769     </dependency>
770
771     <dependency>
772       <groupId>org.junit.platform</groupId>
773       <artifactId>junit-platform-commons</artifactId>
774       <version>${junit.platform.version}</version>
775       <scope>test</scope>
776     </dependency>
777     <dependency>
778       <groupId>org.junit.platform</groupId>
779       <artifactId>junit-platform-engine</artifactId>
780       <version>${junit.platform.version}</version>
781       <scope>test</scope>
782     </dependency>
783     <dependency>
784       <groupId>org.mockito</groupId>
785       <artifactId>mockito-junit-jupiter</artifactId>
786       <version>${mockitoJupiter.version}</version>
787       <scope>test</scope>
788     </dependency>
789
790     <dependency>
791       <groupId>org.springframework</groupId>
792       <artifactId>spring-test</artifactId>
793       <version>${spring.version}</version>
794       <scope>test</scope>
795     </dependency>
796
797     <dependency>
798       <groupId>org.springframework</groupId>
799       <artifactId>spring-tx</artifactId>
800       <version>${spring.version}</version>
801     </dependency>
802
803     <dependency>
804       <groupId>io.cucumber</groupId>
805       <artifactId>cucumber-java</artifactId>
806       <version>${cucumber.version}</version>
807       <scope>test</scope>
808     </dependency>
809
810     <dependency>
811       <groupId>io.cucumber</groupId>
812       <artifactId>cucumber-junit</artifactId>
813       <version>${cucumber.version}</version>
814       <scope>test</scope>
815     </dependency>
816
817     <dependency>
818       <groupId>org.jmockit</groupId>
819       <artifactId>jmockit</artifactId>
820       <version>${jmockit.version}</version>
821       <scope>test</scope>
822     </dependency>
823
824     <dependency>
825       <groupId>com.google.code.bean-matchers</groupId>
826       <artifactId>bean-matchers</artifactId>
827       <version>0.11</version>
828       <scope>test</scope>
829     </dependency>
830
831     <dependency>
832       <groupId>org.codehaus.groovy</groupId>
833       <artifactId>groovy</artifactId>
834       <version>${groovy.version}</version>
835     </dependency>
836
837     <dependency>
838       <groupId>io.netty</groupId>
839       <artifactId>netty-handler</artifactId>
840     </dependency>
841     <dependency>
842       <groupId>org.onap.sdc.common</groupId>
843       <artifactId>onap-tosca-datatype</artifactId>
844       <version>${project.version}</version>
845       <exclusions>
846         <exclusion>
847           <groupId>com.fasterxml.jackson.core</groupId>
848           <artifactId>jackson-core</artifactId>
849         </exclusion>
850       </exclusions>
851     </dependency>
852     <dependency>
853       <groupId>org.apache.commons</groupId>
854       <artifactId>commons-collections4</artifactId>
855       <version>${commons.collections.version}</version>
856     </dependency>
857     <dependency>
858       <groupId>org.onap.sdc.sdc-be-common</groupId>
859       <artifactId>security-util-lib</artifactId>
860       <version>${security.util.lib.version}</version>
861       <exclusions>
862         <exclusion>
863           <groupId>org.springframework.boot</groupId>
864           <artifactId>spring-boot-starter-logging</artifactId>
865         </exclusion>
866       </exclusions>
867     </dependency>
868     <dependency>
869       <groupId>org.openecomp.sdc.core</groupId>
870       <artifactId>openecomp-tosca-lib</artifactId>
871       <version>${project.version}</version>
872       <exclusions>
873         <exclusion>
874           <groupId>com.fasterxml.jackson.core</groupId>
875           <artifactId>jackson-core</artifactId>
876         </exclusion>
877       </exclusions>
878     </dependency>
879     <dependency>
880       <groupId>org.onap.vnfsdk.validation</groupId>
881       <artifactId>validation-pmdictionary</artifactId>
882       <version>${onap.vnfsdk.validation.pmdictionary.version}</version>
883       <exclusions>
884         <exclusion>
885           <groupId>org.apache.logging.log4j</groupId>
886           <artifactId>log4j-slf4j-impl</artifactId>
887         </exclusion>
888       </exclusions>
889     </dependency>
890
891     <dependency>
892       <groupId>com.googlecode.jmapper-framework</groupId>
893       <artifactId>jmapper-core</artifactId>
894       <version>${jMapper.version}</version>
895       <exclusions>
896         <exclusion>
897           <groupId>com.thoughtworks.xstream</groupId>
898           <artifactId>xstream</artifactId>
899         </exclusion>
900       </exclusions>
901     </dependency>
902
903   </dependencies>
904
905   <build>
906     <finalName>catalog-be</finalName>
907     <plugins>
908       <plugin>
909         <groupId>org.apache.maven.plugins</groupId>
910         <artifactId>maven-surefire-plugin</artifactId>
911         <configuration>
912           <forkCount>1C</forkCount>
913           <reuseForks>false</reuseForks>
914         </configuration>
915       </plugin>
916       <plugin>
917         <!-- Download Swagger UI webjar. -->
918         <artifactId>maven-dependency-plugin</artifactId>
919         <version>${maven-dependency-plugin.version}</version>
920         <executions>
921           <execution>
922             <phase>prepare-package</phase>
923             <goals>
924               <goal>unpack</goal>
925             </goals>
926             <configuration>
927               <artifactItems>
928                 <artifactItem>
929                   <groupId>org.webjars</groupId>
930                   <artifactId>swagger-ui</artifactId>
931                   <version>${swagger-ui.version}</version>
932                 </artifactItem>
933               </artifactItems>
934               <outputDirectory>${project.build.directory}/swagger-ui</outputDirectory>
935             </configuration>
936           </execution>
937         </executions>
938       </plugin>
939       <plugin>
940         <!-- Replace the OpenAPI specification example URL with the local one. -->
941         <groupId>com.google.code.maven-replacer-plugin</groupId>
942         <artifactId>replacer</artifactId>
943         <version>${replacer.plugin.version}</version>
944         <executions>
945           <execution>
946             <phase>prepare-package</phase>
947             <goals>
948               <goal>replace</goal>
949             </goals>
950           </execution>
951         </executions>
952         <configuration>
953           <file>
954             ${project.build.directory}/swagger-ui/META-INF/resources/webjars/swagger-ui/${swagger-ui.version}/index.html
955           </file>
956           <replacements>
957             <replacement>
958               <token>https://petstore.swagger.io/v2/swagger.json</token>
959               <value>/sdc/openapi.json</value>
960             </replacement>
961           </replacements>
962         </configuration>
963       </plugin>
964       <plugin>
965         <groupId>org.apache.maven.plugins</groupId>
966         <artifactId>maven-war-plugin</artifactId>
967         <configuration>
968           <packagingExcludes>WEB-INF\lib\slf4j-log4j*.jar,
969             WEB-INF/classes/elasticsearch.yml,
970             WEB-INF/classes/portal.properties
971           </packagingExcludes>
972           <archive>
973             <manifestEntries>
974               <SDC-Version>${project.version}</SDC-Version>
975             </manifestEntries>
976             <manifest>
977               <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
978               <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
979             </manifest>
980           </archive>
981           <attachClasses>true</attachClasses>
982           <webResources combine.children="append">
983             <resource>
984               <directory>
985                 ${project.build.directory}/swagger-ui/META-INF/resources/webjars/swagger-ui/${swagger-ui.version}
986               </directory>
987               <includes>
988                 <include>**/*.*</include>
989               </includes>
990               <targetPath>swagger-ui</targetPath>
991             </resource>
992           </webResources>
993         </configuration>
994       </plugin>
995       <plugin>
996         <groupId>com.github.sylvainlaurent.maven</groupId>
997         <artifactId>yaml-json-validator-maven-plugin</artifactId>
998         <executions>
999           <execution>
1000             <id>validate</id>
1001             <phase>validate</phase>
1002             <goals>
1003               <goal>validate</goal>
1004             </goals>
1005             <configuration>
1006               <validationSets>
1007                 <validationSet>
1008                   <includes>
1009                     <include>src/main/resources/**/*.y*ml</include>
1010                     <include>src/test/resources/**/*.y*ml</include>
1011                   </includes>
1012                   <excludes>
1013                     <exclude>
1014                       src/test/resources/artifacts/pnfSoftwareInformation/**
1015                     </exclude>
1016                   </excludes>
1017                 </validationSet>
1018                 <validationSet>
1019                   <includes>
1020                     <include>src/main/resources/**/*.json</include>
1021                     <include>src/test/resources/**/*.json</include>
1022                   </includes>
1023                 </validationSet>
1024               </validationSets>
1025               <skip>${skipYamlJsonValidator}</skip>
1026             </configuration>
1027           </execution>
1028         </executions>
1029       </plugin>
1030       <plugin>
1031         <groupId>com.jcabi</groupId>
1032         <artifactId>jcabi-maven-plugin</artifactId>
1033         <version>${jcabi.maven.plugin.version}</version>
1034         <dependencies>
1035           <dependency>
1036             <groupId>org.aspectj</groupId>
1037             <artifactId>aspectjtools</artifactId>
1038             <version>1.9.2</version>
1039           </dependency>
1040           <dependency>
1041             <groupId>org.aspectj</groupId>
1042             <artifactId>aspectjweaver</artifactId>
1043             <version>1.9.2</version>
1044           </dependency>
1045         </dependencies>
1046         <executions>
1047           <execution>
1048             <goals>
1049               <goal>ajc</goal>
1050             </goals>
1051           </execution>
1052         </executions>
1053       </plugin>
1054       <plugin>
1055         <groupId>org.apache.maven.plugins</groupId>
1056         <artifactId>maven-assembly-plugin</artifactId>
1057         <executions>
1058           <execution>
1059             <id>normatives</id>
1060             <phase>prepare-package</phase>
1061             <goals>
1062               <goal>single</goal>
1063             </goals>
1064             <configuration>
1065               <finalName>normatives</finalName>
1066               <appendAssemblyId>false</appendAssemblyId>
1067               <descriptors>
1068                 <descriptor>src/main/assembly/normatives.xml</descriptor>
1069               </descriptors>
1070             </configuration>
1071           </execution>
1072         </executions>
1073       </plugin>
1074       <plugin>
1075         <groupId>org.apache.maven.plugins</groupId>
1076         <artifactId>maven-clean-plugin</artifactId>
1077         <executions>
1078           <execution>
1079             <id>clean.sdc.backend.folder</id>
1080             <phase>clean</phase>
1081             <goals>
1082               <goal>clean</goal>
1083             </goals>
1084             <configuration>
1085               <filesets>
1086                 <fileset>
1087                   <directory>
1088                     sdc-backend-init/chef-repo/cookbooks/sdc-catalog-be-setup/files/default
1089                   </directory>
1090                   <followSymlinks>false</followSymlinks>
1091                   <includes>
1092                     <include>normatives.tar.gz</include>
1093                   </includes>
1094                 </fileset>
1095               </filesets>
1096             </configuration>
1097           </execution>
1098         </executions>
1099       </plugin>
1100       <plugin>
1101         <groupId>io.swagger.core.v3</groupId>
1102         <artifactId>swagger-maven-plugin</artifactId>
1103         <version>${swagger-core-mvn-plugin.version}</version>
1104         <executions>
1105           <execution>
1106             <id>sdce-2-sdce-5</id>
1107             <phase>compile</phase>
1108             <goals>
1109               <goal>resolve</goal>
1110             </goals>
1111             <configuration>
1112               <contextId>sdce-2-sdce-5</contextId>
1113               <outputPath>${project.build.directory}/generated/swagger</outputPath>
1114               <outputFileName>swagger-sdce-2-sdce-5</outputFileName>
1115               <outputFormat>JSON</outputFormat>
1116               <configurationFilePath>
1117                 ${project.basedir}/src/main/resources/swagger-config/sdce-2-sdce-5.yaml
1118               </configurationFilePath>
1119               <skip>${swagger.skip}</skip>
1120             </configuration>
1121           </execution>
1122           <execution>
1123             <id>sdce-4</id>
1124             <phase>compile</phase>
1125             <goals>
1126               <goal>resolve</goal>
1127             </goals>
1128             <configuration>
1129               <contextId>sdce-4</contextId>
1130               <outputPath>${project.build.directory}/generated/swagger</outputPath>
1131               <outputFileName>swagger-sdce-4</outputFileName>
1132               <outputFormat>JSON</outputFormat>
1133               <configurationFilePath>
1134                 ${project.basedir}/src/main/resources/swagger-config/sdce-4.yaml
1135               </configurationFilePath>
1136               <skip>${swagger.skip}</skip>
1137             </configuration>
1138           </execution>
1139           <execution>
1140             <id>sdce-6</id>
1141             <phase>compile</phase>
1142             <goals>
1143               <goal>resolve</goal>
1144             </goals>
1145             <configuration>
1146               <contextId>sdce-6</contextId>
1147               <outputPath>${project.build.directory}/generated/swagger</outputPath>
1148               <outputFileName>swagger-sdce-6</outputFileName>
1149               <outputFormat>JSON</outputFormat>
1150               <configurationFilePath>
1151                 ${project.basedir}/src/main/resources/swagger-config/sdce-6.yaml
1152               </configurationFilePath>
1153               <skip>${swagger.skip}</skip>
1154             </configuration>
1155           </execution>
1156           <execution>
1157             <id>sdce-7</id>
1158             <phase>compile</phase>
1159             <goals>
1160               <goal>resolve</goal>
1161             </goals>
1162             <configuration>
1163               <contextId>sdce-7</contextId>
1164               <outputPath>${project.build.directory}/generated/swagger</outputPath>
1165               <outputFileName>swagger-sdce-7</outputFileName>
1166               <outputFormat>JSON</outputFormat>
1167               <configurationFilePath>
1168                 ${project.basedir}/src/main/resources/swagger-config/sdce-7.yaml
1169               </configurationFilePath>
1170               <skip>${swagger.skip}</skip>
1171             </configuration>
1172           </execution>
1173         </executions>
1174       </plugin>
1175     </plugins>
1176
1177     <pluginManagement>
1178       <plugins>
1179         <!--This plugin's configuration is used to store Eclipse m2e settings
1180             only. It has no influence on the Maven build itself. -->
1181         <plugin>
1182           <groupId>org.eclipse.m2e</groupId>
1183           <artifactId>lifecycle-mapping</artifactId>
1184           <version>1.0.0</version>
1185           <configuration>
1186             <lifecycleMappingMetadata>
1187               <pluginExecutions>
1188                 <pluginExecution>
1189                   <pluginExecutionFilter>
1190                     <groupId>com.googlecode.maven-download-plugin</groupId>
1191                     <artifactId>download-maven-plugin</artifactId>
1192                     <versionRange>[1.2.1,)</versionRange>
1193                     <goals>
1194                       <goal>wget</goal>
1195                     </goals>
1196                   </pluginExecutionFilter>
1197                 </pluginExecution>
1198
1199                 <pluginExecution>
1200                   <pluginExecutionFilter>
1201                     <groupId>com.jcabi</groupId>
1202                     <artifactId>jcabi-maven-plugin</artifactId>
1203                     <versionRange>[0.0,)</versionRange>
1204                     <goals>
1205                       <goal>ajc</goal>
1206                     </goals>
1207                   </pluginExecutionFilter>
1208                   <action>
1209                     <execute/>
1210                   </action>
1211                 </pluginExecution>
1212
1213               </pluginExecutions>
1214             </lifecycleMappingMetadata>
1215           </configuration>
1216         </plugin>
1217       </plugins>
1218     </pluginManagement>
1219     <!-- Swagger Plugins End -->
1220   </build>
1221
1222   <profiles>
1223     <profile>
1224       <id>docker</id>
1225       <activation>
1226         <activeByDefault>false</activeByDefault>
1227       </activation>
1228       <build>
1229         <plugins>
1230           <plugin>
1231             <groupId>org.apache.maven.plugins</groupId>
1232             <artifactId>maven-resources-plugin</artifactId>
1233             <executions>
1234               <execution>
1235                 <id>copy-normatives</id>
1236                 <phase>package</phase>
1237                 <goals>
1238                   <goal>copy-resources</goal>
1239                 </goals>
1240                 <configuration>
1241                   <outputDirectory>
1242                     sdc-backend-init/chef-repo/cookbooks/sdc-catalog-be-setup/files/default
1243                   </outputDirectory>
1244                   <resources>
1245                     <resource>
1246                       <directory>${project.build.directory}</directory>
1247                       <includes>
1248                         <include>normatives.tar.gz</include>
1249                       </includes>
1250                     </resource>
1251                   </resources>
1252                 </configuration>
1253               </execution>
1254               <execution>
1255                 <id>copy-sdc-be-py</id>
1256                 <phase>verify</phase>
1257                 <goals>
1258                   <goal>copy-resources</goal>
1259                 </goals>
1260                 <configuration>
1261                   <outputDirectory>
1262                     sdc-backend-init/
1263                   </outputDirectory>
1264                   <resources>
1265                     <resource>
1266                       <directory>
1267                         ${project.parent.basedir}/catalog-be/src/main/resources/
1268                       </directory>
1269                       <includes>
1270                         <include>scripts/sdcBePy/**</include>
1271                         <inculde>scripts/setup.py</inculde>
1272                       </includes>
1273                     </resource>
1274                   </resources>
1275                 </configuration>
1276               </execution>
1277             </executions>
1278           </plugin>
1279           <plugin>
1280             <groupId>io.fabric8</groupId>
1281             <artifactId>docker-maven-plugin</artifactId>
1282             <configuration>
1283               <verbose>${verbose}</verbose>
1284               <apiVersion>${docker.api.version}</apiVersion>
1285               <registry>nexus3.onap.org:10001</registry>
1286               <authConfig>
1287                 <pull>
1288                   <username>docker</username>
1289                   <password>docker</password>
1290                 </pull>
1291               </authConfig>
1292               <images>
1293
1294                 <!-- Build backend image -->
1295                 <image>
1296                   <name>onap/sdc-backend</name>
1297                   <alias>sdc-backend</alias>
1298                   <build>
1299                     <cleanup>try</cleanup>
1300                     <dockerFileDir>backend</dockerFileDir>
1301                     <tags>
1302                       <tag>latest</tag>
1303                       <tag>
1304                         ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest
1305                       </tag>
1306                       <tag>
1307                         ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-${maven.build.timestamp}
1308                       </tag>
1309                     </tags>
1310                     <assembly>
1311                       <descriptor>backend/backend-files.xml</descriptor>
1312                       <name>onap-sdc-backend</name>
1313                     </assembly>
1314                   </build>
1315                 </image>
1316                 <!-- Build backend-init image -->
1317                 <image>
1318                   <name>onap/sdc-backend-init</name>
1319                   <alias>sdc-backend-init</alias>
1320                   <build>
1321                     <cleanup>try</cleanup>
1322                     <dockerFileDir>${project.basedir}/sdc-backend-init
1323                     </dockerFileDir>
1324                     <tags>
1325                       <tag>latest</tag>
1326                       <tag>
1327                         ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest
1328                       </tag>
1329                       <tag>
1330                         ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-${maven.build.timestamp}
1331                       </tag>
1332                     </tags>
1333                   </build>
1334                 </image>
1335               </images>
1336             </configuration>
1337             <executions>
1338               <execution>
1339                 <id>clean-images</id>
1340                 <phase>pre-clean</phase>
1341                 <goals>
1342                   <goal>remove</goal>
1343                 </goals>
1344                 <configuration>
1345                   <removeAll>true</removeAll>
1346                   <image>onap/sdc-backend,onap/sdc-backend-init</image>
1347                 </configuration>
1348               </execution>
1349
1350               <execution>
1351                 <id>generate-images</id>
1352                 <phase>install</phase>
1353                 <goals>
1354                   <goal>build</goal>
1355                 </goals>
1356               </execution>
1357
1358               <execution>
1359                 <id>push-images</id>
1360                 <phase>deploy</phase>
1361                 <goals>
1362                   <goal>push</goal>
1363                 </goals>
1364                 <configuration>
1365                   <image>onap/sdc-backend,onap/sdc-backend-init</image>
1366                 </configuration>
1367               </execution>
1368             </executions>
1369           </plugin>
1370         </plugins>
1371       </build>
1372     </profile>
1373   </profiles>
1374 </project>