Reduce scope from 'compile' to 'test' for 'junit-vintage-engine'
[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       <scope>test</scope>
37     </dependency>
38
39     <!--JSON and YAML Parsing-->
40     <dependency>
41       <groupId>com.fasterxml.jackson.dataformat</groupId>
42       <artifactId>jackson-dataformat-yaml</artifactId>
43       <version>${jackson.version}</version>
44       <scope>compile</scope>
45     </dependency>
46
47     <dependency>
48       <groupId>com.fasterxml.jackson.core</groupId>
49       <artifactId>jackson-databind</artifactId>
50       <version>${jackson.version}</version>
51       <scope>compile</scope>
52     </dependency>
53
54     <dependency>
55       <groupId>org.onap.sdc.common</groupId>
56       <artifactId>onap-generic-artifact-browser-service</artifactId>
57       <version>${project.version}</version>
58       <scope>compile</scope>
59     </dependency>
60
61     <!-- Swagger Dependencies Start -->
62     <dependency>
63       <groupId>io.swagger.core.v3</groupId>
64       <artifactId>swagger-jaxrs2</artifactId>
65       <version>${swagger.version}</version>
66     </dependency>
67     <dependency>
68       <groupId>io.swagger.core.v3</groupId>
69       <artifactId>swagger-annotations</artifactId>
70       <version>${swagger.version}</version>
71     </dependency>
72     <!-- Swagger Dependencies End -->
73
74     <dependency>
75       <groupId>org.openecomp.sdc</groupId>
76       <artifactId>common-app-api</artifactId>
77       <version>${project.version}</version>
78       <scope>compile</scope>
79     </dependency>
80
81     <dependency>
82       <groupId>org.openecomp.sdc.be</groupId>
83       <artifactId>common-be</artifactId>
84       <version>${project.version}</version>
85       <scope>compile</scope>
86     </dependency>
87     <dependency>
88       <groupId>org.openecomp.sdc.be</groupId>
89       <artifactId>common-be</artifactId>
90       <version>${project.version}</version>
91       <type>test-jar</type>
92       <scope>test</scope>
93     </dependency>
94     <dependency>
95       <groupId>org.openecomp.sdc.be</groupId>
96       <artifactId>catalog-dao</artifactId>
97       <version>${project.version}</version>
98       <scope>compile</scope>
99     </dependency>
100
101     <dependency>
102       <groupId>org.openecomp.sdc.be</groupId>
103       <artifactId>catalog-model</artifactId>
104       <version>${project.version}</version>
105       <scope>compile</scope>
106     </dependency>
107
108     <dependency>
109       <groupId>ch.qos.logback</groupId>
110       <artifactId>logback-classic</artifactId>
111       <version>${logback.version}</version>
112       <scope>compile</scope>
113     </dependency>
114
115     <!-- Snake Yaml -->
116     <dependency>
117       <groupId>org.yaml</groupId>
118       <artifactId>snakeyaml</artifactId>
119       <version>${snakeyaml.version}</version>
120       <scope>compile</scope>
121     </dependency>
122
123     <!-- File changes listener -->
124     <dependency>
125       <groupId>org.apache.commons</groupId>
126       <artifactId>commons-jci-core</artifactId>
127       <version>${commons-jci-core.version}</version>
128       <scope>compile</scope>
129     </dependency>
130
131     <!-- Gson -->
132     <dependency>
133       <groupId>com.google.code.gson</groupId>
134       <artifactId>gson</artifactId>
135       <version>${gson.version}</version>
136       <scope>compile</scope>
137     </dependency>
138
139     <!-- jersey -->
140     <dependency>
141       <groupId>org.glassfish.jersey.media</groupId>
142       <artifactId>jersey-media-json-jackson</artifactId>
143       <version>${jersey-bom.version}</version>
144       <scope>compile</scope>
145     </dependency>
146
147     <dependency>
148       <groupId>org.glassfish.jersey.containers</groupId>
149       <artifactId>jersey-container-servlet-core</artifactId>
150       <version>${jersey-bom.version}</version>
151       <scope>compile</scope>
152     </dependency>
153
154     <dependency>
155       <groupId>org.glassfish.jersey.media</groupId>
156       <artifactId>jersey-media-multipart</artifactId>
157       <version>${jersey-bom.version}</version>
158       <scope>compile</scope>
159     </dependency>
160     <dependency>
161       <groupId>org.glassfish.jersey.ext</groupId>
162       <artifactId>jersey-spring4</artifactId>
163       <version>${jersey-bom.version}</version>
164       <exclusions>
165         <exclusion>
166           <groupId>org.springframework</groupId>
167           <artifactId>spring-web</artifactId>
168         </exclusion>
169         <exclusion>
170           <groupId>org.springframework</groupId>
171           <artifactId>spring-beans</artifactId>
172         </exclusion>
173         <exclusion>
174           <groupId>org.springframework</groupId>
175           <artifactId>spring-core</artifactId>
176         </exclusion>
177         <exclusion>
178           <groupId>org.springframework</groupId>
179           <artifactId>spring-aop</artifactId>
180         </exclusion>
181         <!-- Transitive dependency of spring-bridge -->
182         <exclusion>
183           <groupId>org.springframework</groupId>
184           <artifactId>spring-context</artifactId>
185         </exclusion>
186       </exclusions>
187
188     </dependency>
189
190     <!--asm-all-repackaged is a jersey dependency. in current version jersey depends on a version that was compiled using java 9 compiler
191         currently our jetty (v9.3.6) does not support java 9. as soon as jetty gets upgraded we will remove this dependency-->
192     <dependency>
193       <groupId>org.glassfish.hk2.external</groupId>
194       <artifactId>asm-all-repackaged</artifactId>
195     </dependency>
196
197     <dependency>
198       <groupId>org.glassfish.jersey.ext</groupId>
199       <artifactId>jersey-bean-validation</artifactId>
200     </dependency>
201
202     <!-- http client -->
203     <dependency>
204       <groupId>org.apache.httpcomponents</groupId>
205       <artifactId>httpclient</artifactId>
206       <version>${httpclient.version}</version>
207       <scope>compile</scope>
208     </dependency>
209
210     <dependency>
211       <groupId>org.apache.httpcomponents</groupId>
212       <artifactId>httpcore</artifactId>
213       <version>${httpcore.version}</version>
214       <scope>compile</scope>
215     </dependency>
216
217     <dependency>
218       <groupId>commons-logging</groupId>
219       <artifactId>commons-logging</artifactId>
220       <version>${commons-logging}</version>
221       <scope>compile</scope>
222     </dependency>
223
224     <dependency>
225       <groupId>commons-codec</groupId>
226       <artifactId>commons-codec</artifactId>
227       <version>${commons-codec}</version>
228       <scope>compile</scope>
229     </dependency>
230     <!-- http client END -->
231
232     <dependency>
233       <groupId>javax.servlet</groupId>
234       <artifactId>javax.servlet-api</artifactId>
235       <version>${servlet-api.version}</version>
236       <scope>provided</scope>
237     </dependency>
238
239     <dependency>
240       <groupId>org.eclipse.jgit</groupId>
241       <artifactId>org.eclipse.jgit</artifactId>
242       <version>3.4.1.201406201815-r</version>
243     </dependency>
244
245     <!-- spring - used by A4C -->
246     <dependency>
247       <groupId>org.springframework</groupId>
248       <artifactId>spring-core</artifactId>
249       <version>${spring.version}</version>
250       <scope>compile</scope>
251     </dependency>
252
253     <dependency>
254       <groupId>org.springframework</groupId>
255       <artifactId>spring-context</artifactId>
256       <version>${spring.version}</version>
257       <scope>compile</scope>
258     </dependency>
259
260     <dependency>
261       <groupId>org.springframework</groupId>
262       <artifactId>spring-web</artifactId>
263       <version>${spring.version}</version>
264       <scope>compile</scope>
265     </dependency>
266
267     <dependency>
268       <groupId>org.springframework</groupId>
269       <artifactId>spring-webmvc</artifactId>
270       <version>${spring.version}</version>
271       <scope>compile</scope>
272     </dependency>
273
274     <dependency>
275       <groupId>org.springframework</groupId>
276       <artifactId>spring-aop</artifactId>
277       <version>${spring.version}</version>
278       <scope>compile</scope>
279     </dependency>
280
281     <dependency>
282       <groupId>org.springframework</groupId>
283       <artifactId>spring-beans</artifactId>
284       <version>${spring.version}</version>
285       <scope>compile</scope>
286     </dependency>
287
288     <dependency>
289       <groupId>org.springframework</groupId>
290       <artifactId>spring-expression</artifactId>
291       <version>${spring.version}</version>
292       <scope>compile</scope>
293     </dependency>
294
295     <!-- Spring integration (optional) -->
296     <dependency>
297       <groupId>org.togglz</groupId>
298       <artifactId>togglz-spring-web</artifactId>
299       <version>${togglz.version}</version>
300     </dependency>
301
302     <dependency>
303       <groupId>org.codehaus.janino</groupId>
304       <artifactId>janino</artifactId>
305       <version>${janino.version}</version>
306       <scope>compile</scope>
307     </dependency>
308
309     <dependency>
310       <groupId>org.codehaus.janino</groupId>
311       <artifactId>commons-compiler</artifactId>
312       <version>${janino.version}</version>
313       <scope>compile</scope>
314     </dependency>
315
316     <dependency>
317       <groupId>com.google.guava</groupId>
318       <artifactId>guava</artifactId>
319       <version>${guava.version}</version>
320       <scope>compile</scope>
321     </dependency>
322
323     <dependency>
324       <groupId>org.janusgraph</groupId>
325       <artifactId>janusgraph-core</artifactId>
326       <version>${janusgraph.version}</version>
327       <scope>compile</scope>
328       <exclusions>
329         <exclusion>
330           <groupId>org.json</groupId>
331           <artifactId>json</artifactId>
332         </exclusion>
333         <exclusion>
334           <artifactId>slf4j-log4j12</artifactId>
335           <groupId>org.slf4j</groupId>
336         </exclusion>
337         <exclusion>
338           <artifactId>commons-collections</artifactId>
339           <groupId>commons-collections</groupId>
340         </exclusion>
341         <exclusion>
342           <groupId>org.apache.thrift</groupId>
343           <artifactId>libthrift</artifactId>
344         </exclusion>
345       </exclusions>
346     </dependency>
347
348     <dependency>
349       <groupId>org.janusgraph</groupId>
350       <artifactId>janusgraph-cql</artifactId>
351       <version>${janusgraph.version}</version>
352       <scope>compile</scope>
353       <exclusions>
354         <exclusion>
355           <groupId>org.slf4j</groupId>
356           <artifactId>slf4j-log4j12</artifactId>
357         </exclusion>
358         <exclusion>
359           <groupId>org.json</groupId>
360           <artifactId>json</artifactId>
361         </exclusion>
362         <exclusion>
363           <artifactId>commons-collections</artifactId>
364           <groupId>commons-collections</groupId>
365         </exclusion>
366         <exclusion>
367           <artifactId>groovy</artifactId>
368           <groupId>org.codehaus.groovy</groupId>
369         </exclusion>
370         <exclusion>
371           <groupId>io.netty</groupId>
372           <artifactId>netty-all</artifactId>
373         </exclusion>
374       </exclusions>
375     </dependency>
376
377     <dependency>
378       <groupId>org.apache.commons</groupId>
379       <artifactId>commons-lang3</artifactId>
380       <version>${lang3.version}</version>
381       <scope>compile</scope>
382     </dependency>
383
384     <dependency>
385       <groupId>com.googlecode.json-simple</groupId>
386       <artifactId>json-simple</artifactId>
387       <version>${json-simple.version}</version>
388       <scope>compile</scope>
389
390     </dependency>
391
392     <!-- functional java -->
393     <dependency>
394       <groupId>org.functionaljava</groupId>
395       <artifactId>functionaljava</artifactId>
396       <version>${functionaljava.version}</version>
397       <scope>compile</scope>
398     </dependency>
399
400     <!-- Aspects -->
401     <dependency>
402       <groupId>com.jcabi</groupId>
403       <artifactId>jcabi-aspects</artifactId>
404       <version>${jcabi.version}</version>
405       <scope>compile</scope>
406     </dependency>
407
408     <dependency>
409       <groupId>org.aspectj</groupId>
410       <artifactId>aspectjrt</artifactId>
411       <version>${aspectjrt.version}</version>
412       <scope>compile</scope>
413     </dependency>
414
415
416     <!-- CAMBRIA CLIENT for U-EB -->
417     <dependency>
418       <groupId>com.att.nsa</groupId>
419       <artifactId>cambriaClient</artifactId>
420       <version>1.2.1-oss</version>
421       <scope>compile</scope>
422       <exclusions>
423         <exclusion>
424           <groupId>com.att.nsa</groupId>
425           <artifactId>saClientLibrary</artifactId>
426         </exclusion>
427       </exclusions>
428     </dependency>
429
430     <dependency>
431       <groupId>org.json</groupId>
432       <artifactId>json</artifactId>
433       <version>20131018</version>
434       <scope>compile</scope>
435     </dependency>
436
437     <!-- CASSANDRA -->
438     <dependency>
439       <groupId>com.datastax.cassandra</groupId>
440       <artifactId>cassandra-driver-core</artifactId>
441       <version>${cassandra.driver.version}</version>
442       <scope>compile</scope>
443     </dependency>
444     <dependency>
445       <groupId>com.datastax.cassandra</groupId>
446       <artifactId>cassandra-driver-mapping</artifactId>
447       <version>${cassandra.driver.version}</version>
448       <scope>compile</scope>
449     </dependency>
450     <!-- CASSANDRA END -->
451
452     <!-- Inserted for ECOMP Portal Integration -->
453     <dependency>
454       <groupId>org.onap.portal.sdk</groupId>
455       <artifactId>epsdk-fw</artifactId>
456       <version>${ecomp.version}</version>
457       <scope>compile</scope>
458       <exclusions>
459         <exclusion>
460           <groupId>com.att.nsa</groupId>
461           <artifactId>cambriaClient</artifactId>
462         </exclusion>
463         <exclusion>
464           <artifactId>slf4j-log4j12</artifactId>
465           <groupId>org.slf4j</groupId>
466         </exclusion>
467         <exclusion>
468           <artifactId>powermock-api-mockito</artifactId>
469           <groupId>org.powermock</groupId>
470         </exclusion>
471         <exclusion>
472           <groupId>org.onap.aaf.authz</groupId>
473           <artifactId>aaf-cadi-aaf</artifactId>
474         </exclusion>
475         <exclusion>
476           <artifactId>aaf-cadi-core</artifactId>
477           <groupId>org.onap.aaf.authz</groupId>
478         </exclusion>
479         <exclusion>
480           <artifactId>commons-codec</artifactId>
481           <groupId>commons-codec</groupId>
482         </exclusion>
483       </exclusions>
484     </dependency>
485
486     <!--Jetty Proxy-->
487     <dependency>
488       <groupId>org.eclipse.jetty</groupId>
489       <artifactId>jetty-proxy</artifactId>
490       <version>${jetty.version}</version>
491       <scope>compile</scope>
492     </dependency>
493
494     <dependency>
495       <groupId>org.eclipse.jetty</groupId>
496       <artifactId>jetty-servlets</artifactId>
497       <version>${jetty.version}</version>
498       <scope>compile</scope>
499     </dependency>
500     <!-- System metrics -->
501     <dependency>
502       <groupId>org.fusesource</groupId>
503       <artifactId>sigar</artifactId>
504       <version>${sigar.version}</version>
505       <scope>compile</scope>
506     </dependency>
507     <dependency>
508       <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
509       <artifactId>dmaapClient</artifactId>
510       <version>1.1.3</version>
511       <scope>compile</scope>
512       <exclusions>
513         <exclusion>
514           <groupId>com.att.aft</groupId>
515           <artifactId>dme2</artifactId>
516         </exclusion>
517       </exclusions>
518     </dependency>
519     <dependency>
520       <groupId>com.att.aft</groupId>
521       <artifactId>dme2</artifactId>
522       <version>3.1.200-oss</version>
523     </dependency>
524
525     <dependency>
526       <groupId>javax.jms</groupId>
527       <artifactId>jms</artifactId>
528       <version>1.1</version>
529       <scope>provided</scope>
530     </dependency>
531
532     <!-- CADI -->
533     <dependency>
534       <groupId>org.onap.aaf.authz</groupId>
535       <artifactId>aaf-cadi-aaf</artifactId>
536       <version>${cadi.version}</version>
537       <exclusions>
538         <exclusion>
539           <groupId>com.datastax.cassandra</groupId>
540           <artifactId>cassandra-driver-core</artifactId>
541         </exclusion>
542         <exclusion>
543           <groupId>org.slf4j</groupId>
544           <artifactId>slf4j-log4j12</artifactId>
545         </exclusion>
546       </exclusions>
547     </dependency>
548
549     <!-- TEST -->
550     <dependency>
551       <groupId>org.assertj</groupId>
552       <artifactId>assertj-core</artifactId>
553       <scope>test</scope>
554     </dependency>
555
556     <dependency>
557       <groupId>org.glassfish.jersey.test-framework.providers</groupId>
558       <artifactId>jersey-test-framework-provider-bundle</artifactId>
559       <version>${jersey-bom.version}</version>
560       <type>pom</type>
561       <scope>test</scope>
562     </dependency>
563
564     <dependency>
565       <groupId>org.glassfish.jersey.core</groupId>
566       <artifactId>jersey-client</artifactId>
567       <version>${jersey-bom.version}</version>
568     </dependency>
569
570     <dependency>
571       <groupId>org.eclipse.jetty</groupId>
572       <artifactId>jetty-webapp</artifactId>
573       <version>${jetty.version}</version>
574       <scope>test</scope>
575     </dependency>
576
577     <dependency>
578       <groupId>org.hamcrest</groupId>
579       <artifactId>hamcrest</artifactId>
580       <version>${hamcrest.version}</version>
581       <scope>test</scope>
582     </dependency>
583
584     <dependency>
585       <groupId>org.hamcrest</groupId>
586       <artifactId>hamcrest-library</artifactId>
587       <version>${hamcrest.version}</version>
588       <scope>test</scope>
589     </dependency>
590
591     <dependency>
592       <groupId>org.junit.jupiter</groupId>
593       <artifactId>junit-jupiter-api</artifactId>
594       <version>${junitJupiter.version}</version>
595       <scope>test</scope>
596     </dependency>
597
598     <dependency>
599       <groupId>org.junit.jupiter</groupId>
600       <artifactId>junit-jupiter</artifactId>
601       <version>${junitJupiter.version}</version>
602       <scope>test</scope>
603     </dependency>
604
605     <dependency>
606       <groupId>org.junit.platform</groupId>
607       <artifactId>junit-platform-commons</artifactId>
608       <version>${junit.platform.version}</version>
609       <scope>test</scope>
610     </dependency>
611     <dependency>
612       <groupId>org.junit.platform</groupId>
613       <artifactId>junit-platform-engine</artifactId>
614       <version>${junit.platform.version}</version>
615       <scope>test</scope>
616     </dependency>
617     <dependency>
618       <groupId>org.mockito</groupId>
619       <artifactId>mockito-junit-jupiter</artifactId>
620       <version>${mockitoJupiter.version}</version>
621       <scope>test</scope>
622     </dependency>
623
624     <dependency>
625       <groupId>org.springframework</groupId>
626       <artifactId>spring-test</artifactId>
627       <version>${spring.version}</version>
628       <scope>test</scope>
629     </dependency>
630
631     <dependency>
632       <groupId>org.springframework</groupId>
633       <artifactId>spring-tx</artifactId>
634       <version>${spring.version}</version>
635     </dependency>
636
637     <dependency>
638       <groupId>io.cucumber</groupId>
639       <artifactId>cucumber-java</artifactId>
640       <version>${cucumber.version}</version>
641       <scope>test</scope>
642     </dependency>
643
644     <dependency>
645       <groupId>io.cucumber</groupId>
646       <artifactId>cucumber-junit</artifactId>
647       <version>${cucumber.version}</version>
648       <scope>test</scope>
649     </dependency>
650
651     <dependency>
652       <groupId>org.jmockit</groupId>
653       <artifactId>jmockit</artifactId>
654       <version>${jmockit.version}</version>
655       <scope>test</scope>
656     </dependency>
657
658     <dependency>
659       <groupId>com.google.code.bean-matchers</groupId>
660       <artifactId>bean-matchers</artifactId>
661       <version>0.11</version>
662       <scope>test</scope>
663     </dependency>
664
665     <dependency>
666       <groupId>org.codehaus.groovy</groupId>
667       <artifactId>groovy</artifactId>
668       <version>2.4.8</version>
669     </dependency>
670
671     <dependency>
672       <groupId>io.netty</groupId>
673       <artifactId>netty-handler</artifactId>
674     </dependency>
675     <dependency>
676       <groupId>org.onap.sdc.common</groupId>
677       <artifactId>onap-tosca-datatype</artifactId>
678       <version>${project.version}</version>
679     </dependency>
680     <dependency>
681       <groupId>org.apache.commons</groupId>
682       <artifactId>commons-collections4</artifactId>
683       <version>${commons.collections.version}</version>
684     </dependency>
685     <dependency>
686       <groupId>org.codehaus.jackson</groupId>
687       <artifactId>jackson-mapper-asl</artifactId>
688       <version>${jackson.mapper.version}</version>
689     </dependency>
690     <dependency>
691       <groupId>org.onap.sdc.sdc-be-common</groupId>
692       <artifactId>security-util-lib</artifactId>
693       <version>${security.util.lib.version}</version>
694     </dependency>
695         <dependency>
696             <groupId>org.openecomp.sdc.core</groupId>
697             <artifactId>openecomp-tosca-lib</artifactId>
698             <version>${project.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>