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