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