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