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