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