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