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