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