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