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