Upgrade to java 11
[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.1-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.onap.sdc.sdc-be-common</groupId>
731       <artifactId>security-util-lib</artifactId>
732       <version>${security.util.lib.version}</version>
733     </dependency>
734     <dependency>
735       <groupId>org.openecomp.sdc.core</groupId>
736       <artifactId>openecomp-tosca-lib</artifactId>
737       <version>${project.version}</version>
738       <exclusions>
739         <exclusion>
740           <groupId>com.fasterxml.jackson.core</groupId>
741           <artifactId>jackson-core</artifactId>
742         </exclusion>
743       </exclusions>
744     </dependency>
745   </dependencies>
746
747   <build>
748     <finalName>${project.artifactId}-${project.version}</finalName>
749     <plugins>
750       <plugin>
751         <groupId>org.apache.maven.plugins</groupId>
752         <artifactId>maven-surefire-plugin</artifactId>
753         <configuration>
754           <forkCount>1</forkCount>
755         </configuration>
756       </plugin>
757       <plugin>
758         <!-- Download Swagger UI webjar. -->
759         <artifactId>maven-dependency-plugin</artifactId>
760         <version>${maven-dependency-plugin.version}</version>
761         <executions>
762           <execution>
763             <phase>prepare-package</phase>
764             <goals>
765               <goal>unpack</goal>
766             </goals>
767             <configuration>
768               <artifactItems>
769                 <artifactItem>
770                   <groupId>org.webjars</groupId>
771                   <artifactId>swagger-ui</artifactId>
772                   <version>${swagger-ui.version}</version>
773                 </artifactItem>
774               </artifactItems>
775               <outputDirectory>${project.build.directory}/swagger-ui</outputDirectory>
776             </configuration>
777           </execution>
778         </executions>
779       </plugin>
780       <plugin>
781         <!-- Replace the OpenAPI specification example URL with the local one. -->
782         <groupId>com.google.code.maven-replacer-plugin</groupId>
783         <artifactId>replacer</artifactId>
784         <version>${replacer.plugin.version}</version>
785         <executions>
786           <execution>
787             <phase>prepare-package</phase>
788             <goals>
789               <goal>replace</goal>
790             </goals>
791           </execution>
792         </executions>
793         <configuration>
794           <file>
795             ${project.build.directory}/swagger-ui/META-INF/resources/webjars/swagger-ui/${swagger-ui.version}/index.html
796           </file>
797           <replacements>
798             <replacement>
799               <token>https://petstore.swagger.io/v2/swagger.json</token>
800               <value>/sdc/openapi.json</value>
801             </replacement>
802           </replacements>
803         </configuration>
804       </plugin>
805       <plugin>
806         <groupId>org.apache.maven.plugins</groupId>
807         <artifactId>maven-war-plugin</artifactId>
808         <configuration>
809           <packagingExcludes>WEB-INF\lib\slf4j-log4j*.jar,
810             WEB-INF/classes/elasticsearch.yml,
811             WEB-INF/classes/portal.properties
812           </packagingExcludes>
813           <archive>
814             <manifestEntries>
815               <SDC-Version>${project.version}</SDC-Version>
816             </manifestEntries>
817             <manifest>
818               <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
819               <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
820             </manifest>
821           </archive>
822           <attachClasses>true</attachClasses>
823           <webResources combine.children="append">
824             <resource>
825               <directory>
826                 ${project.build.directory}/swagger-ui/META-INF/resources/webjars/swagger-ui/${swagger-ui.version}
827               </directory>
828               <includes>
829                 <include>**/*.*</include>
830               </includes>
831               <targetPath>swagger-ui</targetPath>
832             </resource>
833           </webResources>
834         </configuration>
835       </plugin>
836       <plugin>
837         <groupId>com.github.sylvainlaurent.maven</groupId>
838         <artifactId>yaml-json-validator-maven-plugin</artifactId>
839         <executions>
840           <execution>
841             <id>validate</id>
842             <phase>validate</phase>
843             <goals>
844               <goal>validate</goal>
845             </goals>
846             <configuration>
847               <validationSets>
848                 <validationSet>
849                   <includes>
850                     <include>src/main/resources/**/*.y*ml</include>
851                     <include>src/test/resources/**/*.y*ml</include>
852                   </includes>
853                   <excludes>
854                     <exclude>src/test/resources/artifacts/pnfSoftwareInformation/**</exclude>
855                   </excludes>
856                 </validationSet>
857                 <validationSet>
858                   <includes>
859                     <include>src/main/resources/**/*.json</include>
860                     <include>src/test/resources/**/*.json</include>
861                   </includes>
862                 </validationSet>
863               </validationSets>
864               <skip>${skipYamlJsonValidator}</skip>
865             </configuration>
866           </execution>
867         </executions>
868       </plugin>
869       <plugin>
870         <groupId>com.jcabi</groupId>
871         <artifactId>jcabi-maven-plugin</artifactId>
872         <version>${jcabi.maven.plugin.version}</version>
873         <dependencies>
874           <dependency>
875             <groupId>org.aspectj</groupId>
876             <artifactId>aspectjtools</artifactId>
877             <version>1.9.2</version>
878           </dependency>
879           <dependency>
880             <groupId>org.aspectj</groupId>
881             <artifactId>aspectjweaver</artifactId>
882             <version>1.9.2</version>
883           </dependency>
884         </dependencies>
885         <executions>
886           <execution>
887             <goals>
888               <goal>ajc</goal>
889             </goals>
890           </execution>
891         </executions>
892       </plugin>
893       <plugin>
894         <groupId>org.apache.maven.plugins</groupId>
895         <artifactId>maven-assembly-plugin</artifactId>
896         <executions>
897           <execution>
898             <id>normatives</id>
899             <phase>prepare-package</phase>
900             <goals>
901               <goal>single</goal>
902             </goals>
903             <configuration>
904               <finalName>normatives</finalName>
905               <appendAssemblyId>false</appendAssemblyId>
906               <descriptors>
907                 <descriptor>src/main/assembly/normatives.xml</descriptor>
908               </descriptors>
909             </configuration>
910           </execution>
911         </executions>
912       </plugin>
913       <plugin>
914         <groupId>org.apache.maven.plugins</groupId>
915         <artifactId>maven-clean-plugin</artifactId>
916         <executions>
917           <execution>
918             <id>clean.sdc.backend.folder</id>
919             <phase>clean</phase>
920             <goals>
921               <goal>clean</goal>
922             </goals>
923             <configuration>
924               <filesets>
925                 <!-- static configuration files -->
926                 <fileset>
927                   <directory>
928                     ${project.parent.basedir}/catalog-be/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/files/default
929                   </directory>
930                   <followSymlinks>false</followSymlinks>
931                   <includes>
932                     <include>Artifact-Generator.properties</include>
933                     <include>error-configuration.yaml</include>
934                     <include>ecomp-error-configuration.yaml</include>
935                     <include>logback.xml</include>
936                   </includes>
937                 </fileset>
938                 <!-- BE WAR's -->
939                 <fileset>
940                   <directory>${project.parent.basedir}/catalog-be/sdc-backend</directory>
941                   <followSymlinks>false</followSymlinks>
942                   <includes>
943                     <include>*.war</include>
944                     <include>context.xml</include>
945                   </includes>
946                 </fileset>
947                 <fileset>
948                   <directory>sdc-backend-init/chef-repo/cookbooks/sdc-catalog-be-setup/files/default</directory>
949                   <followSymlinks>false</followSymlinks>
950                   <includes>
951                     <include>normatives.tar.gz</include>
952                   </includes>
953                 </fileset>
954               </filesets>
955             </configuration>
956           </execution>
957           <execution>
958             <id>clean-static-files</id>
959             <phase>clean</phase>
960             <goals>
961               <goal>clean</goal>
962             </goals>
963             <configuration>
964               <filesets>
965                 <!-- tosca files -->
966                 <fileset>
967                   <directory>${project.parent.basedir}/asdctool/tosca</directory>
968                   <followSymlinks>false</followSymlinks>
969                 </fileset>
970               </filesets>
971             </configuration>
972           </execution>
973         </executions>
974       </plugin>
975       <plugin>
976         <groupId>org.apache.maven.plugins</groupId>
977         <artifactId>maven-resources-plugin</artifactId>
978         <executions>
979           <execution>
980             <id>copy-static-configuration-files</id>
981             <phase>verify</phase>
982             <goals>
983               <goal>copy-resources</goal>
984             </goals>
985             <configuration>
986               <outputDirectory>
987                 ${project.parent.basedir}/catalog-be/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/files/default
988               </outputDirectory>
989               <resources>
990                 <resource>
991                   <directory>${project.parent.basedir}/catalog-be/src/main/resources/config
992                   </directory>
993                   <includes>
994                     <include>Artifact-Generator.properties</include>
995                     <include>error-configuration.yaml</include>
996                     <include>ecomp-error-configuration.yaml</include>
997                     <include>logback.xml</include>
998                   </includes>
999                 </resource>
1000               </resources>
1001             </configuration>
1002           </execution>
1003           <execution>
1004             <id>copy-tosca-folder</id>
1005             <!-- here the phase you need -->
1006             <phase>install</phase>
1007             <goals>
1008               <goal>copy-resources</goal>
1009             </goals>
1010             <configuration>
1011               <outputDirectory>${project.parent.basedir}/asdctool/tosca</outputDirectory>
1012               <resources>
1013                 <resource>
1014                   <directory>${project.parent.basedir}/catalog-be/src/main/resources/import/tosca
1015                   </directory>
1016                   <filtering>true</filtering>
1017                 </resource>
1018               </resources>
1019             </configuration>
1020           </execution>
1021         </executions>
1022       </plugin>
1023     </plugins>
1024
1025     <pluginManagement>
1026       <plugins>
1027         <!--This plugin's configuration is used to store Eclipse m2e settings
1028             only. It has no influence on the Maven build itself. -->
1029         <plugin>
1030           <groupId>org.eclipse.m2e</groupId>
1031           <artifactId>lifecycle-mapping</artifactId>
1032           <version>1.0.0</version>
1033           <configuration>
1034             <lifecycleMappingMetadata>
1035               <pluginExecutions>
1036                 <pluginExecution>
1037                   <pluginExecutionFilter>
1038                     <groupId>com.googlecode.maven-download-plugin</groupId>
1039                     <artifactId>download-maven-plugin</artifactId>
1040                     <versionRange>[1.2.1,)</versionRange>
1041                     <goals>
1042                       <goal>wget</goal>
1043                     </goals>
1044                   </pluginExecutionFilter>
1045                 </pluginExecution>
1046
1047                 <pluginExecution>
1048                   <pluginExecutionFilter>
1049                     <groupId>com.jcabi</groupId>
1050                     <artifactId>jcabi-maven-plugin</artifactId>
1051                     <versionRange>[0.0,)</versionRange>
1052                     <goals>
1053                       <goal>ajc</goal>
1054                     </goals>
1055                   </pluginExecutionFilter>
1056                   <action>
1057                     <execute/>
1058                   </action>
1059                 </pluginExecution>
1060
1061               </pluginExecutions>
1062             </lifecycleMappingMetadata>
1063           </configuration>
1064         </plugin>
1065       </plugins>
1066     </pluginManagement>
1067     <!-- Swagger Plugins End -->
1068   </build>
1069
1070   <profiles>
1071     <profile>
1072       <id>docker-staging</id>
1073       <properties>
1074         <docker.tag>${project.version}-STAGING-${maven.build.timestamp}</docker.tag>
1075         <docker.latest.tag>${project.version}-STAGING-latest</docker.latest.tag>
1076       </properties>
1077     </profile>
1078
1079     <profile>
1080       <id>docker</id>
1081       <activation>
1082         <activeByDefault>false</activeByDefault>
1083       </activation>
1084       <build>
1085         <plugins>
1086           <plugin>
1087             <artifactId>maven-antrun-plugin</artifactId>
1088             <version>1.8</version>
1089             <executions>
1090               <execution>
1091                 <id>copy-context-file</id>
1092                 <phase>validate</phase>
1093                 <configuration>
1094                   <target>
1095                     <copy file="sdc-backend/context.xml.template" tofile="sdc-backend/context.xml"
1096                       overwrite="true"/>
1097                   </target>
1098                 </configuration>
1099                 <goals>
1100                   <goal>run</goal>
1101                 </goals>
1102               </execution>
1103               <execution>
1104                 <id>set-version-in-context-file</id>
1105                 <phase>generate-resources</phase>
1106                 <configuration>
1107                   <target>
1108                     <replace file="sdc-backend/context.xml">
1109                       <replacetoken>projectversion</replacetoken>
1110                       <replacevalue>${project.version}</replacevalue>
1111                     </replace>
1112                   </target>
1113                 </configuration>
1114                 <goals>
1115                   <goal>run</goal>
1116                 </goals>
1117               </execution>
1118             </executions>
1119           </plugin>
1120           <plugin>
1121             <groupId>org.apache.maven.plugins</groupId>
1122             <artifactId>maven-resources-plugin</artifactId>
1123             <executions>
1124               <execution>
1125                 <id>copy-resources-be</id>
1126                 <phase>verify</phase>
1127                 <goals>
1128                   <goal>copy-resources</goal>
1129                 </goals>
1130                 <configuration>
1131                   <outputDirectory>${basedir}/sdc-backend</outputDirectory>
1132                   <resources>
1133                     <resource>
1134                       <directory>${project.parent.basedir}/catalog-be/target</directory>
1135                       <includes>
1136                         <include>catalog-be-${project.version}.war</include>
1137                       </includes>
1138                     </resource>
1139                   </resources>
1140                 </configuration>
1141               </execution>
1142               <execution>
1143                 <id>copy-normatives</id>
1144                 <phase>package</phase>
1145                 <goals>
1146                   <goal>copy-resources</goal>
1147                 </goals>
1148                 <configuration>
1149                   <outputDirectory>
1150                     sdc-backend-init/chef-repo/cookbooks/sdc-catalog-be-setup/files/default
1151                   </outputDirectory>
1152                   <resources>
1153                     <resource>
1154                       <directory>${project.parent.basedir}/catalog-be/target</directory>
1155                       <includes>
1156                         <include>normatives.tar.gz</include>
1157                       </includes>
1158                     </resource>
1159                   </resources>
1160                 </configuration>
1161               </execution>
1162               <execution>
1163                 <id>copy-sdc-be-py</id>
1164                 <phase>verify</phase>
1165                 <goals>
1166                   <goal>copy-resources</goal>
1167                 </goals>
1168                 <configuration>
1169                   <outputDirectory>
1170                     sdc-backend-init/
1171                   </outputDirectory>
1172                   <resources>
1173                     <resource>
1174                       <directory>${project.parent.basedir}/catalog-be/src/main/resources/</directory>
1175                       <includes>
1176                         <include>scripts/sdcBePy/**</include>
1177                         <inculde>scripts/setup.py</inculde>
1178                       </includes>
1179                     </resource>
1180                   </resources>
1181                 </configuration>
1182               </execution>
1183             </executions>
1184           </plugin>
1185           <plugin>
1186             <groupId>io.fabric8</groupId>
1187             <artifactId>docker-maven-plugin</artifactId>
1188             <configuration>
1189               <apiVersion>1.23</apiVersion>
1190               <registry>nexus3.onap.org:10001</registry>
1191               <authConfig>
1192                 <pull>
1193                   <username>docker</username>
1194                   <password>docker</password>
1195                 </pull>
1196               </authConfig>
1197               <images>
1198
1199                 <!-- Build backend image -->
1200                 <image>
1201                   <name>onap/sdc-backend</name>
1202                   <alias>sdc-backend</alias>
1203                   <build>
1204                     <cleanup>try</cleanup>
1205                     <dockerFileDir>${project.basedir}/sdc-backend</dockerFileDir>
1206                     <tags>
1207                       <tag>${docker.tag}</tag>
1208                       <tag>
1209                         ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest
1210                       </tag>
1211                     </tags>
1212                   </build>
1213                 </image>
1214                 <!-- Build backend-init image -->
1215                 <image>
1216                   <name>onap/sdc-backend-init</name>
1217                   <alias>sdc-backend-init</alias>
1218                   <build>
1219                     <cleanup>try</cleanup>
1220                     <dockerFileDir>${project.basedir}/sdc-backend-init</dockerFileDir>
1221                     <tags>
1222                       <tag>${docker.tag}</tag>
1223                       <tag>
1224                         ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest
1225                       </tag>
1226                     </tags>
1227                   </build>
1228                 </image>
1229               </images>
1230             </configuration>
1231             <executions>
1232               <execution>
1233                 <id>clean-images</id>
1234                 <phase>pre-clean</phase>
1235                 <goals>
1236                   <goal>remove</goal>
1237                 </goals>
1238                 <configuration>
1239                   <removeAll>true</removeAll>
1240                   <image>onap/sdc-backend,onap/sdc-backend-init</image>
1241                 </configuration>
1242               </execution>
1243
1244               <execution>
1245                 <id>generate-images</id>
1246                 <phase>install</phase>
1247                 <goals>
1248                   <goal>build</goal>
1249                 </goals>
1250               </execution>
1251
1252               <execution>
1253                 <id>push-images</id>
1254                 <phase>deploy</phase>
1255                 <goals>
1256                   <goal>push</goal>
1257                 </goals>
1258                 <configuration>
1259                   <image>onap/sdc-backend,onap/sdc-backend-init</image>
1260                 </configuration>
1261               </execution>
1262             </executions>
1263           </plugin>
1264         </plugins>
1265       </build>
1266     </profile>
1267   </profiles>
1268 </project>