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