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