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