Fix static list value issue
[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         <dependency>
628             <groupId>org.apache.commons</groupId>
629             <artifactId>commons-collections4</artifactId>
630             <version>${commons.collections.version}</version>
631         </dependency>
632     </dependencies>
633
634     <build>
635
636         <finalName>${project.artifactId}-${project.version}</finalName>
637
638         <plugins>
639             <plugin>
640                 <groupId>org.apache.maven.plugins</groupId>
641                 <artifactId>maven-war-plugin</artifactId>
642                 <configuration>
643                     <packagingExcludes>WEB-INF\lib\slf4j-log4j*.jar,
644                         WEB-INF/classes/elasticsearch.yml,
645                         WEB-INF/classes/portal.properties
646                     </packagingExcludes>
647                     <archive>
648                         <manifestEntries>
649                             <SDC-Version>${project.version}</SDC-Version>
650                         </manifestEntries>
651                         <manifest>
652                             <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
653                             <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
654                         </manifest>
655                     </archive>
656
657                     <webResources>
658                         <resource>
659                             <directory>src/main/resources</directory>
660                             <directory>src/main/resources/swagger</directory>
661                         </resource>
662                     </webResources>
663                     <attachClasses>true</attachClasses>
664                 </configuration>
665             </plugin>
666             <plugin>
667                 <groupId>com.github.sylvainlaurent.maven</groupId>
668                 <artifactId>yaml-json-validator-maven-plugin</artifactId>
669                 <executions>
670                     <execution>
671                         <id>validate</id>
672                         <phase>validate</phase>
673                         <goals>
674                             <goal>validate</goal>
675                         </goals>
676                         <configuration>
677                             <validationSets>
678                                 <validationSet>
679                                     <includes>
680                                         <include>src/main/resources/**/*.y*ml</include>
681                                         <include>src/test/resources/**/*.y*ml</include>
682                                     </includes>
683                                 </validationSet>
684                                 <validationSet>
685                                     <includes>
686                                         <include>src/main/resources/**/*.json</include>
687                                         <include>src/test/resources/**/*.json</include>
688                                     </includes>
689                                 </validationSet>
690                             </validationSets>
691                         </configuration>
692                     </execution>
693                 </executions>
694             </plugin>
695             <plugin>
696                 <groupId>com.jcabi</groupId>
697                 <artifactId>jcabi-maven-plugin</artifactId>
698                 <version>${jcabi.maven.plugin.version}</version>
699                 <executions>
700                     <execution>
701                         <goals>
702                             <goal>ajc</goal>
703                         </goals>
704                     </execution>
705                 </executions>
706             </plugin>
707             <plugin>
708                 <groupId>org.apache.maven.plugins</groupId>
709                 <artifactId>maven-assembly-plugin</artifactId>
710                 <executions>
711                     <execution>
712                         <id>normatives</id>
713                         <phase>package</phase>
714                         <goals>
715                             <goal>single</goal>
716                         </goals>
717                         <configuration>
718                             <finalName>normatives</finalName>
719                             <appendAssemblyId>false</appendAssemblyId>
720                             <descriptors>
721                                 <descriptor>${project.basedir}/normatives.xml</descriptor>
722                             </descriptors>
723                         </configuration>
724                     </execution>
725                 </executions>
726             </plugin>
727             <plugin>
728                 <groupId>org.apache.maven.plugins</groupId>
729                 <artifactId>maven-clean-plugin</artifactId>
730                 <executions>
731                     <execution>
732                         <id>clean.sdc.backend.folder</id>
733                         <phase>clean</phase>
734                         <goals>
735                             <goal>clean</goal>
736                         </goals>
737                         <configuration>
738                             <filesets>
739                                 <!-- static configuration files -->
740                                 <fileset>
741                                     <directory>
742                                         ${project.parent.basedir}/catalog-be/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/files/default
743                                     </directory>
744                                     <followSymlinks>false</followSymlinks>
745                                     <includes>
746                                         <include>error-configuration.yaml</include>
747                                         <include>ecomp-error-configuration.yaml</include>
748                                         <include>logback.xml</include>
749                                     </includes>
750                                 </fileset>
751                                 <!-- BE WAR's -->
752                                 <fileset>
753                                     <directory>${project.parent.basedir}/catalog-be/sdc-backend</directory>
754                                     <followSymlinks>false</followSymlinks>
755                                     <includes>
756                                         <include>*.war</include>
757                                     </includes>
758                                 </fileset>
759                                 <fileset>
760                                     <directory>
761                                         ${project.basedir}/sdc-backend-init/chef-repo/cookbooks/sdc-normatives/files/default
762                                     </directory>
763                                     <followSymlinks>false</followSymlinks>
764                                     <includes>
765                                         <include>normatives.tar.gz</include>
766                                     </includes>
767                                 </fileset>
768
769
770                             </filesets>
771                         </configuration>
772                     </execution>
773
774                     <execution>
775                         <id>clean-static-files</id>
776                         <phase>clean</phase>
777                         <goals>
778                             <goal>clean</goal>
779                         </goals>
780                         <configuration>
781                             <filesets>
782                                 <!-- tosca files -->
783                                 <fileset>
784                                     <directory>${project.parent.basedir}/asdctool/tosca</directory>
785                                     <followSymlinks>false</followSymlinks>
786                                 </fileset>
787                             </filesets>
788                         </configuration>
789                     </execution>
790                 </executions>
791             </plugin>
792             <plugin>
793                 <groupId>org.apache.maven.plugins</groupId>
794                 <artifactId>maven-resources-plugin</artifactId>
795                 <executions>
796                     <execution>
797                         <id>copy-static-configuration-files</id>
798                         <phase>verify</phase>
799                         <goals>
800                             <goal>copy-resources</goal>
801                         </goals>
802                         <configuration>
803                             <outputDirectory>
804                                 ${project.parent.basedir}/catalog-be/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/files/default
805                             </outputDirectory>
806                             <resources>
807                                 <resource>
808                                     <directory>${project.parent.basedir}/catalog-be/src/main/resources/config
809                                     </directory>
810                                     <includes>
811                                         <include>error-configuration.yaml</include>
812                                         <include>ecomp-error-configuration.yaml</include>
813                                         <include>logback.xml</include>
814                                     </includes>
815                                 </resource>
816                             </resources>
817                         </configuration>
818                     </execution>
819                     <execution>
820                         <id>copy-tosca-folder</id>
821                         <!-- here the phase you need -->
822                         <phase>install</phase>
823                         <goals>
824                             <goal>copy-resources</goal>
825                         </goals>
826                         <configuration>
827                             <outputDirectory>${project.parent.basedir}/asdctool/tosca</outputDirectory>
828                             <resources>
829                                 <resource>
830                                     <directory>${project.parent.basedir}/catalog-be/src/main/resources/import/tosca
831                                     </directory>
832                                     <filtering>true</filtering>
833                                 </resource>
834                             </resources>
835                         </configuration>
836                     </execution>
837                 </executions>
838             </plugin>
839         </plugins>
840
841         <pluginManagement>
842             <plugins>
843                 <!--This plugin's configuration is used to store Eclipse m2e settings
844                     only. It has no influence on the Maven build itself. -->
845                 <plugin>
846                     <groupId>org.eclipse.m2e</groupId>
847                     <artifactId>lifecycle-mapping</artifactId>
848                     <version>1.0.0</version>
849                     <configuration>
850                         <lifecycleMappingMetadata>
851                             <pluginExecutions>
852                                 <pluginExecution>
853                                     <pluginExecutionFilter>
854                                         <groupId>com.googlecode.maven-download-plugin</groupId>
855                                         <artifactId>download-maven-plugin</artifactId>
856                                         <versionRange>[1.2.1,)</versionRange>
857                                         <goals>
858                                             <goal>wget</goal>
859                                         </goals>
860                                     </pluginExecutionFilter>
861                                     <action>
862                                         <ignore></ignore>
863                                     </action>
864                                 </pluginExecution>
865
866                                 <pluginExecution>
867                                     <pluginExecutionFilter>
868                                         <groupId>com.jcabi</groupId>
869                                         <artifactId>jcabi-maven-plugin</artifactId>
870                                         <versionRange>[0.0,)</versionRange>
871                                         <goals>
872                                             <goal>ajc</goal>
873                                         </goals>
874                                     </pluginExecutionFilter>
875                                     <action>
876                                         <execute/>
877                                     </action>
878                                 </pluginExecution>
879
880                             </pluginExecutions>
881                         </lifecycleMappingMetadata>
882                     </configuration>
883                 </plugin>
884             </plugins>
885         </pluginManagement>
886         <!-- Swagger Plugins End -->
887     </build>
888
889     <profiles>
890         <profile>
891             <id>docker-staging</id>
892             <properties>
893                 <docker.tag>${project.version}-STAGING-${maven.build.timestamp}</docker.tag>
894                 <docker.latest.tag>${project.version}-STAGING-latest</docker.latest.tag>
895             </properties>
896         </profile>
897
898         <profile>
899             <id>docker</id>
900             <activation>
901                 <activeByDefault>false</activeByDefault>
902             </activation>
903             <build>
904                 <plugins>
905                     <plugin>
906                         <groupId>org.apache.maven.plugins</groupId>
907                         <artifactId>maven-resources-plugin</artifactId>
908                         <executions>
909                             <execution>
910                                 <id>copy-resources-apidocs</id>
911                                 <phase>verify</phase>
912                                 <goals>
913                                     <goal>copy-resources</goal>
914                                 </goals>
915                                 <configuration>
916                                     <outputDirectory>${basedir}/sdc-backend</outputDirectory>
917                                     <resources>
918                                         <resource>
919                                             <directory>
920                                                 ${project.parent.basedir}/openecomp-be/tools/swagger-ui/target/api-docs
921                                             </directory>
922                                             <includes>
923                                                 <include>api-docs.war</include>
924                                             </includes>
925                                         </resource>
926                                     </resources>
927                                 </configuration>
928                             </execution>
929
930                             <execution>
931                                 <id>copy-resources-be</id>
932                                 <phase>verify</phase>
933                                 <goals>
934                                     <goal>copy-resources</goal>
935                                 </goals>
936                                 <configuration>
937                                     <outputDirectory>${basedir}/sdc-backend</outputDirectory>
938                                     <resources>
939                                         <resource>
940                                             <directory>${project.parent.basedir}/catalog-be/target</directory>
941                                             <includes>
942                                                 <include>catalog-be-${project.version}.war</include>
943                                             </includes>
944                                         </resource>
945                                         <resource>
946                                             <directory>
947                                                 ${project.parent.basedir}/openecomp-be/api/openecomp-sdc-rest-webapp/onboarding-rest-war/target
948                                             </directory>
949                                             <includes>
950                                                 <include>onboarding-be-${project.version}.war</include>
951                                             </includes>
952                                         </resource>
953                                     </resources>
954                                 </configuration>
955                             </execution>
956                             <execution>
957                                 <id>copy-normatives</id>
958                                 <phase>verify</phase>
959                                 <goals>
960                                     <goal>copy-resources</goal>
961                                 </goals>
962                                 <configuration>
963                                     <outputDirectory>
964                                         sdc-backend-init/chef-repo/cookbooks/sdc-catalog-be-setup/files/default
965                                     </outputDirectory>
966                                     <resources>
967                                         <resource>
968                                             <directory>${project.parent.basedir}/catalog-be/target</directory>
969                                             <includes>
970                                                 <include>normatives.tar.gz</include>
971                                             </includes>
972                                         </resource>
973                                     </resources>
974                                 </configuration>
975                             </execution>
976                         </executions>
977                     </plugin>
978                     <plugin>
979                         <groupId>io.fabric8</groupId>
980                         <artifactId>docker-maven-plugin</artifactId>
981                         <configuration>
982                             <apiVersion>1.23</apiVersion>
983                             <registry>nexus3.onap.org:10001</registry>
984                             <authConfig>
985                                 <pull>
986                                     <username>docker</username>
987                                     <password>docker</password>
988                                 </pull>
989                             </authConfig>
990                             <images>
991
992                                 <!-- Build backend image -->
993                                 <image>
994                                     <name>onap/sdc-backend</name>
995                                     <alias>sdc-backend</alias>
996                                     <build>
997                                         <cleanup>try</cleanup>
998                                         <dockerFileDir>${project.basedir}/sdc-backend</dockerFileDir>
999                                         <tags>
1000                                             <tag>${docker.tag}</tag>
1001                                             <tag>
1002                                                 ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest
1003                                             </tag>
1004                                         </tags>
1005                                     </build>
1006                                 </image>
1007                                 <!-- Build backend-init image -->
1008                                 <image>
1009                                     <name>onap/sdc-backend-init</name>
1010                                     <alias>sdc-backend-init</alias>
1011                                     <build>
1012                                         <cleanup>try</cleanup>
1013                                         <dockerFileDir>${project.basedir}/sdc-backend-init</dockerFileDir>
1014                                         <tags>
1015                                             <tag>${docker.tag}</tag>
1016                                             <tag>
1017                                                 ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest
1018                                             </tag>
1019                                         </tags>
1020                                     </build>
1021                                 </image>
1022                             </images>
1023                         </configuration>
1024                         <executions>
1025                             <execution>
1026                                 <id>clean-images</id>
1027                                 <phase>pre-clean</phase>
1028                                 <goals>
1029                                     <goal>remove</goal>
1030                                 </goals>
1031                                 <configuration>
1032                                     <removeAll>true</removeAll>
1033                                     <image>onap/sdc-backend,onap/sdc-backend-init</image>
1034                                 </configuration>
1035                             </execution>
1036
1037                             <execution>
1038                                 <id>generate-images</id>
1039                                 <phase>install</phase>
1040                                 <goals>
1041                                     <goal>build</goal>
1042                                 </goals>
1043                             </execution>
1044
1045                             <execution>
1046                                 <id>push-images</id>
1047                                 <phase>deploy</phase>
1048                                 <goals>
1049                                     <goal>push</goal>
1050                                 </goals>
1051                                 <configuration>
1052                                     <image>onap/sdc-backend,onap/sdc-backend-init</image>
1053                                 </configuration>
1054                             </execution>
1055                         </executions>
1056                     </plugin>
1057                 </plugins>
1058             </build>
1059         </profile>
1060     </profiles>
1061 </project>