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