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