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