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