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