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