Configure a new Artifact Type
[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>org.hamcrest</groupId>
575             <artifactId>hamcrest</artifactId>
576             <version>${hamcrest.version}</version>
577             <scope>test</scope>
578         </dependency>
579
580         <dependency>
581             <groupId>org.hamcrest</groupId>
582             <artifactId>hamcrest-library</artifactId>
583             <version>${hamcrest.version}</version>
584             <scope>test</scope>
585         </dependency>
586
587         <dependency>
588             <groupId>junit</groupId>
589             <artifactId>junit</artifactId>
590             <version>${junit.version}</version>
591             <scope>test</scope>
592         </dependency>
593
594         <dependency>
595             <groupId>org.junit.jupiter</groupId>
596             <artifactId>junit-jupiter</artifactId>
597             <version>${junitJupiter.version}</version>
598             <scope>test</scope>
599         </dependency>
600
601         <dependency>
602             <groupId>org.mockito</groupId>
603             <artifactId>mockito-junit-jupiter</artifactId>
604             <version>${mockitoJupiter.version}</version>
605             <scope>test</scope>
606         </dependency>
607
608         <dependency>
609             <groupId>org.mockito</groupId>
610             <artifactId>mockito-core</artifactId>
611             <scope>test</scope>
612         </dependency>
613
614         <dependency>
615             <groupId>org.springframework</groupId>
616             <artifactId>spring-test</artifactId>
617             <version>${spring.version}</version>
618             <scope>test</scope>
619         </dependency>
620
621         <dependency>
622             <groupId>org.springframework</groupId>
623             <artifactId>spring-tx</artifactId>
624             <version>${spring.version}</version>
625         </dependency>
626
627         <dependency>
628             <groupId>io.cucumber</groupId>
629             <artifactId>cucumber-java</artifactId>
630             <scope>test</scope>
631         </dependency>
632
633         <dependency>
634             <groupId>io.cucumber</groupId>
635             <artifactId>cucumber-junit</artifactId>
636             <scope>test</scope>
637         </dependency>
638
639         <dependency>
640             <groupId>org.jmockit</groupId>
641             <artifactId>jmockit</artifactId>
642             <version>${jmockit.version}</version>
643             <scope>test</scope>
644         </dependency>
645
646         <dependency>
647             <groupId>com.google.code.bean-matchers</groupId>
648             <artifactId>bean-matchers</artifactId>
649             <version>0.11</version>
650             <scope>test</scope>
651         </dependency>
652
653         <dependency>
654             <groupId>org.codehaus.groovy</groupId>
655             <artifactId>groovy</artifactId>
656             <version>2.4.8</version>
657         </dependency>
658
659         <dependency>
660             <groupId>io.netty</groupId>
661             <artifactId>netty-handler</artifactId>
662         </dependency>
663         <dependency>
664             <groupId>org.onap.sdc.common</groupId>
665             <artifactId>onap-tosca-datatype</artifactId>
666             <version>${project.version}</version>
667         </dependency>
668         <dependency>
669             <groupId>org.apache.commons</groupId>
670             <artifactId>commons-collections4</artifactId>
671             <version>${commons.collections.version}</version>
672         </dependency>
673         <dependency>
674             <groupId>org.codehaus.jackson</groupId>
675             <artifactId>jackson-mapper-asl</artifactId>
676             <version>${jackson.mapper.version}</version>
677         </dependency>
678         <dependency>
679             <groupId>org.onap.sdc.sdc-be-common</groupId>
680             <artifactId>security-util-lib</artifactId>
681             <version>${security.util.lib.version}</version>
682         </dependency>
683     </dependencies>
684
685     <build>
686         <finalName>${project.artifactId}-${project.version}</finalName>
687         <plugins>
688             <plugin>
689                 <!-- Download Swagger UI webjar. -->
690                 <artifactId>maven-dependency-plugin</artifactId>
691                 <version>${maven-dependency-plugin.version}</version>
692                 <executions>
693                     <execution>
694                         <phase>prepare-package</phase>
695                         <goals>
696                             <goal>unpack</goal>
697                         </goals>
698                         <configuration>
699                             <artifactItems>
700                                 <artifactItem>
701                                     <groupId>org.webjars</groupId>
702                                     <artifactId>swagger-ui</artifactId>
703                                     <version>${swagger-ui.version}</version>
704                                 </artifactItem>
705                             </artifactItems>
706                             <outputDirectory>${project.build.directory}/swagger-ui</outputDirectory>
707                         </configuration>
708                     </execution>
709                 </executions>
710             </plugin>
711             <plugin>
712                 <!-- Replace the OpenAPI specification example URL with the local one. -->
713                 <groupId>com.google.code.maven-replacer-plugin</groupId>
714                 <artifactId>replacer</artifactId>
715                 <version>${replacer.plugin.version}</version>
716                 <executions>
717                     <execution>
718                         <phase>prepare-package</phase>
719                         <goals>
720                             <goal>replace</goal>
721                         </goals>
722                     </execution>
723                 </executions>
724                 <configuration>
725                     <file>${project.build.directory}/swagger-ui/META-INF/resources/webjars/swagger-ui/${swagger-ui.version}/index.html</file>
726                     <replacements>
727                         <replacement>
728                             <token>https://petstore.swagger.io/v2/swagger.json</token>
729                             <value>/sdc/openapi.json</value>
730                         </replacement>
731                     </replacements>
732                 </configuration>
733             </plugin>
734             <plugin>
735                 <groupId>org.apache.maven.plugins</groupId>
736                 <artifactId>maven-war-plugin</artifactId>
737                 <configuration>
738                     <packagingExcludes>WEB-INF\lib\slf4j-log4j*.jar,
739                         WEB-INF/classes/elasticsearch.yml,
740                         WEB-INF/classes/portal.properties
741                     </packagingExcludes>
742                     <archive>
743                         <manifestEntries>
744                             <SDC-Version>${project.version}</SDC-Version>
745                         </manifestEntries>
746                         <manifest>
747                             <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
748                             <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
749                         </manifest>
750                     </archive>
751                     <attachClasses>true</attachClasses>
752                     <webResources combine.children="append">
753                         <resource>
754                             <directory>${project.build.directory}/swagger-ui/META-INF/resources/webjars/swagger-ui/${swagger-ui.version}</directory>
755                             <includes>
756                                 <include>**/*.*</include>
757                             </includes>
758                             <targetPath>swagger-ui</targetPath>
759                         </resource>
760                     </webResources>
761                 </configuration>
762             </plugin>
763             <plugin>
764                 <groupId>com.github.sylvainlaurent.maven</groupId>
765                 <artifactId>yaml-json-validator-maven-plugin</artifactId>
766                 <executions>
767                     <execution>
768                         <id>validate</id>
769                         <phase>validate</phase>
770                         <goals>
771                             <goal>validate</goal>
772                         </goals>
773                         <configuration>
774                             <validationSets>
775                                 <validationSet>
776                                     <includes>
777                                         <include>src/main/resources/**/*.y*ml</include>
778                                         <include>src/test/resources/**/*.y*ml</include>
779                                     </includes>
780                                     <excludes>
781                                         <exclude>src/test/resources/artifacts/pnfSoftwareInformation/**</exclude>
782                                     </excludes>
783                                 </validationSet>
784                                 <validationSet>
785                                     <includes>
786                                         <include>src/main/resources/**/*.json</include>
787                                         <include>src/test/resources/**/*.json</include>
788                                     </includes>
789                                 </validationSet>
790                             </validationSets>
791                         </configuration>
792                     </execution>
793                 </executions>
794             </plugin>
795             <plugin>
796                 <groupId>com.jcabi</groupId>
797                 <artifactId>jcabi-maven-plugin</artifactId>
798                 <version>${jcabi.maven.plugin.version}</version>
799                 <executions>
800                     <execution>
801                         <goals>
802                             <goal>ajc</goal>
803                         </goals>
804                     </execution>
805                 </executions>
806             </plugin>
807             <plugin>
808                 <groupId>org.apache.maven.plugins</groupId>
809                 <artifactId>maven-assembly-plugin</artifactId>
810                 <executions>
811                     <execution>
812                         <id>normatives</id>
813                         <phase>prepare-package</phase>
814                         <goals>
815                             <goal>single</goal>
816                         </goals>
817                         <configuration>
818                             <finalName>normatives</finalName>
819                             <appendAssemblyId>false</appendAssemblyId>
820                             <descriptors>
821                                 <descriptor>src/main/assembly/normatives.xml</descriptor>
822                             </descriptors>
823                         </configuration>
824                     </execution>
825                 </executions>
826             </plugin>
827             <plugin>
828                 <groupId>org.apache.maven.plugins</groupId>
829                 <artifactId>maven-clean-plugin</artifactId>
830                 <executions>
831                     <execution>
832                         <id>clean.sdc.backend.folder</id>
833                         <phase>clean</phase>
834                         <goals>
835                             <goal>clean</goal>
836                         </goals>
837                         <configuration>
838                             <filesets>
839                                 <!-- static configuration files -->
840                                 <fileset>
841                                     <directory>
842                                         ${project.parent.basedir}/catalog-be/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/files/default
843                                     </directory>
844                                     <followSymlinks>false</followSymlinks>
845                                     <includes>
846                                         <include>Artifact-Generator.properties</include>
847                                         <include>error-configuration.yaml</include>
848                                         <include>ecomp-error-configuration.yaml</include>
849                                         <include>logback.xml</include>
850                                     </includes>
851                                 </fileset>
852                                 <!-- BE WAR's -->
853                                 <fileset>
854                                     <directory>${project.parent.basedir}/catalog-be/sdc-backend</directory>
855                                     <followSymlinks>false</followSymlinks>
856                                     <includes>
857                                         <include>*.war</include>
858                                         <include>context.xml</include>
859                                     </includes>
860                                 </fileset>
861                                 <fileset>
862                                     <directory>
863                                         ${project.basedir}/sdc-backend-init/chef-repo/cookbooks/sdc-normatives/files/default
864                                     </directory>
865                                     <followSymlinks>false</followSymlinks>
866                                     <includes>
867                                         <include>normatives.tar.gz</include>
868                                     </includes>
869                                 </fileset>
870                             </filesets>
871                         </configuration>
872                     </execution>
873                     <execution>
874                         <id>clean-static-files</id>
875                         <phase>clean</phase>
876                         <goals>
877                             <goal>clean</goal>
878                         </goals>
879                         <configuration>
880                             <filesets>
881                                 <!-- tosca files -->
882                                 <fileset>
883                                     <directory>${project.parent.basedir}/asdctool/tosca</directory>
884                                     <followSymlinks>false</followSymlinks>
885                                 </fileset>
886                             </filesets>
887                         </configuration>
888                     </execution>
889                 </executions>
890             </plugin>
891             <plugin>
892                 <groupId>org.apache.maven.plugins</groupId>
893                 <artifactId>maven-resources-plugin</artifactId>
894                 <executions>
895                     <execution>
896                         <id>copy-static-configuration-files</id>
897                         <phase>verify</phase>
898                         <goals>
899                             <goal>copy-resources</goal>
900                         </goals>
901                         <configuration>
902                             <outputDirectory>
903                                 ${project.parent.basedir}/catalog-be/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/files/default
904                             </outputDirectory>
905                             <resources>
906                                 <resource>
907                                     <directory>${project.parent.basedir}/catalog-be/src/main/resources/config
908                                     </directory>
909                                     <includes>
910                                         <include>Artifact-Generator.properties</include>
911                                         <include>error-configuration.yaml</include>
912                                         <include>ecomp-error-configuration.yaml</include>
913                                         <include>logback.xml</include>
914                                     </includes>
915                                 </resource>
916                             </resources>
917                         </configuration>
918                     </execution>
919                     <execution>
920                         <id>copy-tosca-folder</id>
921                         <!-- here the phase you need -->
922                         <phase>install</phase>
923                         <goals>
924                             <goal>copy-resources</goal>
925                         </goals>
926                         <configuration>
927                             <outputDirectory>${project.parent.basedir}/asdctool/tosca</outputDirectory>
928                             <resources>
929                                 <resource>
930                                     <directory>${project.parent.basedir}/catalog-be/src/main/resources/import/tosca
931                                     </directory>
932                                     <filtering>true</filtering>
933                                 </resource>
934                             </resources>
935                         </configuration>
936                     </execution>
937                 </executions>
938             </plugin>
939         </plugins>
940
941         <pluginManagement>
942             <plugins>
943                 <!--This plugin's configuration is used to store Eclipse m2e settings
944                     only. It has no influence on the Maven build itself. -->
945                 <plugin>
946                     <groupId>org.eclipse.m2e</groupId>
947                     <artifactId>lifecycle-mapping</artifactId>
948                     <version>1.0.0</version>
949                     <configuration>
950                         <lifecycleMappingMetadata>
951                             <pluginExecutions>
952                                 <pluginExecution>
953                                     <pluginExecutionFilter>
954                                         <groupId>com.googlecode.maven-download-plugin</groupId>
955                                         <artifactId>download-maven-plugin</artifactId>
956                                         <versionRange>[1.2.1,)</versionRange>
957                                         <goals>
958                                             <goal>wget</goal>
959                                         </goals>
960                                     </pluginExecutionFilter>
961                                     <action>
962                                         <ignore></ignore>
963                                     </action>
964                                 </pluginExecution>
965
966                                 <pluginExecution>
967                                     <pluginExecutionFilter>
968                                         <groupId>com.jcabi</groupId>
969                                         <artifactId>jcabi-maven-plugin</artifactId>
970                                         <versionRange>[0.0,)</versionRange>
971                                         <goals>
972                                             <goal>ajc</goal>
973                                         </goals>
974                                     </pluginExecutionFilter>
975                                     <action>
976                                         <execute/>
977                                     </action>
978                                 </pluginExecution>
979
980                             </pluginExecutions>
981                         </lifecycleMappingMetadata>
982                     </configuration>
983                 </plugin>
984             </plugins>
985         </pluginManagement>
986         <!-- Swagger Plugins End -->
987     </build>
988
989     <profiles>
990         <profile>
991             <id>docker-staging</id>
992             <properties>
993                 <docker.tag>${project.version}-STAGING-${maven.build.timestamp}</docker.tag>
994                 <docker.latest.tag>${project.version}-STAGING-latest</docker.latest.tag>
995             </properties>
996         </profile>
997
998         <profile>
999             <id>docker</id>
1000             <activation>
1001                 <activeByDefault>false</activeByDefault>
1002             </activation>
1003             <build>
1004                 <plugins>
1005                     <plugin>
1006                         <artifactId>maven-antrun-plugin</artifactId>
1007                         <version>1.8</version>
1008                         <executions>
1009                             <execution>
1010                                 <id>copy-context-file</id>
1011                                 <phase>validate</phase>
1012                                 <configuration>
1013                                     <target>
1014                                         <copy file="sdc-backend/context.xml.template" tofile="sdc-backend/context.xml" overwrite="true"/>
1015                                     </target>
1016                                 </configuration>
1017                                 <goals>
1018                                     <goal>run</goal>
1019                                 </goals>
1020                             </execution>
1021                             <execution>
1022                                 <id>set-version-in-context-file</id>
1023                                 <phase>generate-resources</phase>
1024                                 <configuration>
1025                                     <target>
1026                                         <replace file="sdc-backend/context.xml">
1027                                             <replacetoken>projectversion</replacetoken>
1028                                             <replacevalue>${project.version}</replacevalue>
1029                                         </replace>
1030                                     </target>
1031                                 </configuration>
1032                                 <goals>
1033                                     <goal>run</goal>
1034                                </goals>
1035                             </execution>
1036                         </executions>
1037                     </plugin>
1038                     <plugin>
1039                         <groupId>org.apache.maven.plugins</groupId>
1040                         <artifactId>maven-resources-plugin</artifactId>
1041                         <executions>
1042                             <execution>
1043                                 <id>copy-resources-be</id>
1044                                 <phase>verify</phase>
1045                                 <goals>
1046                                     <goal>copy-resources</goal>
1047                                 </goals>
1048                                 <configuration>
1049                                     <outputDirectory>${basedir}/sdc-backend</outputDirectory>
1050                                     <resources>
1051                                         <resource>
1052                                             <directory>${project.parent.basedir}/catalog-be/target</directory>
1053                                             <includes>
1054                                                 <include>catalog-be-${project.version}.war</include>
1055                                             </includes>
1056                                         </resource>
1057                                     </resources>
1058                                 </configuration>
1059                             </execution>
1060                             <execution>
1061                                 <id>copy-normatives</id>
1062                                 <phase>package</phase>
1063                                 <goals>
1064                                     <goal>copy-resources</goal>
1065                                 </goals>
1066                                 <configuration>
1067                                     <outputDirectory>
1068                                         sdc-backend-init/chef-repo/cookbooks/sdc-catalog-be-setup/files/default
1069                                     </outputDirectory>
1070                                     <resources>
1071                                         <resource>
1072                                             <directory>${project.parent.basedir}/catalog-be/target</directory>
1073                                             <includes>
1074                                                 <include>normatives.tar.gz</include>
1075                                             </includes>
1076                                         </resource>
1077                                     </resources>
1078                                 </configuration>
1079                             </execution>
1080                         </executions>
1081                     </plugin>
1082                     <plugin>
1083                         <groupId>io.fabric8</groupId>
1084                         <artifactId>docker-maven-plugin</artifactId>
1085                         <configuration>
1086                             <apiVersion>1.23</apiVersion>
1087                             <registry>nexus3.onap.org:10001</registry>
1088                             <authConfig>
1089                                 <pull>
1090                                     <username>docker</username>
1091                                     <password>docker</password>
1092                                 </pull>
1093                             </authConfig>
1094                             <images>
1095
1096                                 <!-- Build backend image -->
1097                                 <image>
1098                                     <name>onap/sdc-backend</name>
1099                                     <alias>sdc-backend</alias>
1100                                     <build>
1101                                         <cleanup>try</cleanup>
1102                                         <dockerFileDir>${project.basedir}/sdc-backend</dockerFileDir>
1103                                         <tags>
1104                                             <tag>${docker.tag}</tag>
1105                                             <tag>
1106                                                 ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest
1107                                             </tag>
1108                                         </tags>
1109                                     </build>
1110                                 </image>
1111                                 <!-- Build backend-init image -->
1112                                 <image>
1113                                     <name>onap/sdc-backend-init</name>
1114                                     <alias>sdc-backend-init</alias>
1115                                     <build>
1116                                         <cleanup>try</cleanup>
1117                                         <dockerFileDir>${project.basedir}/sdc-backend-init</dockerFileDir>
1118                                         <tags>
1119                                             <tag>${docker.tag}</tag>
1120                                             <tag>
1121                                                 ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest
1122                                             </tag>
1123                                         </tags>
1124                                     </build>
1125                                 </image>
1126                             </images>
1127                         </configuration>
1128                         <executions>
1129                             <execution>
1130                                 <id>clean-images</id>
1131                                 <phase>pre-clean</phase>
1132                                 <goals>
1133                                     <goal>remove</goal>
1134                                 </goals>
1135                                 <configuration>
1136                                     <removeAll>true</removeAll>
1137                                     <image>onap/sdc-backend,onap/sdc-backend-init</image>
1138                                 </configuration>
1139                             </execution>
1140
1141                             <execution>
1142                                 <id>generate-images</id>
1143                                 <phase>install</phase>
1144                                 <goals>
1145                                     <goal>build</goal>
1146                                 </goals>
1147                             </execution>
1148
1149                             <execution>
1150                                 <id>push-images</id>
1151                                 <phase>deploy</phase>
1152                                 <goals>
1153                                     <goal>push</goal>
1154                                 </goals>
1155                                 <configuration>
1156                                     <image>onap/sdc-backend,onap/sdc-backend-init</image>
1157                                 </configuration>
1158                             </execution>
1159                         </executions>
1160                     </plugin>
1161                 </plugins>
1162             </build>
1163         </profile>
1164     </profiles>
1165 </project>