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