Updated SDC version to 1.9.2-SNAPSHOT
[sdc.git] / catalog-fe / 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
5   <modelVersion>4.0.0</modelVersion>
6   <artifactId>catalog-fe</artifactId>
7   <packaging>war</packaging>
8
9   <parent>
10     <groupId>org.openecomp.sdc</groupId>
11     <artifactId>sdc-main</artifactId>
12     <version>1.9.2-SNAPSHOT</version>
13   </parent>
14
15   <dependencies>
16
17     <dependency>
18       <groupId>org.projectlombok</groupId>
19       <artifactId>lombok</artifactId>
20       <version>${lombok.version}</version>
21     </dependency>
22
23     <dependency>
24       <groupId>org.functionaljava</groupId>
25       <artifactId>functionaljava</artifactId>
26       <version>${functionaljava.version}</version>
27       <scope>compile</scope>
28     </dependency>
29     <dependency>
30       <groupId>org.onap.sdc.common</groupId>
31       <artifactId>onap-configuration-management-api</artifactId>
32       <version>${project.version}</version>
33     </dependency>
34     <dependency>
35       <groupId>org.openecomp.sdc</groupId>
36       <artifactId>common-app-api</artifactId>
37       <version>${project.version}</version>
38     </dependency>
39
40     <!-- File changes listener -->
41     <dependency>
42       <groupId>ch.qos.logback</groupId>
43       <artifactId>logback-classic</artifactId>
44       <version>${logback.version}</version>
45       <scope>compile</scope>
46     </dependency>
47
48     <dependency>
49       <groupId>org.codehaus.groovy</groupId>
50       <artifactId>groovy</artifactId>
51       <scope>compile</scope>
52     </dependency>
53
54     <dependency>
55       <groupId>org.codehaus.janino</groupId>
56       <artifactId>janino</artifactId>
57       <version>${janino.version}</version>
58       <scope>compile</scope>
59     </dependency>
60
61     <dependency>
62       <groupId>org.yaml</groupId>
63       <artifactId>snakeyaml</artifactId>
64       <version>${snakeyaml.version}</version>
65       <scope>compile</scope>
66     </dependency>
67
68     <dependency>
69       <groupId>org.apache.commons</groupId>
70       <artifactId>commons-jci-core</artifactId>
71       <version>${commons-jci-core.version}</version>
72       <scope>compile</scope>
73       <exclusions>
74         <exclusion>
75           <groupId>commons-io</groupId>
76           <artifactId>commons-io</artifactId>
77         </exclusion>
78       </exclusions>
79     </dependency>
80
81     <dependency>
82       <groupId>com.google.code.gson</groupId>
83       <artifactId>gson</artifactId>
84       <version>${gson.version}</version>
85       <scope>compile</scope>
86     </dependency>
87
88     <dependency>
89       <groupId>org.glassfish.jersey.containers</groupId>
90       <artifactId>jersey-container-servlet</artifactId>
91       <version>${jersey-bom.version}</version>
92       <scope>compile</scope>
93     </dependency>
94
95     <dependency>
96       <groupId>org.glassfish.jersey.media</groupId>
97       <artifactId>jersey-media-multipart</artifactId>
98       <version>${jersey-bom.version}</version>
99       <scope>compile</scope>
100     </dependency>
101
102     <dependency>
103       <groupId>org.glassfish.jersey.media</groupId>
104       <artifactId>jersey-media-moxy</artifactId>
105       <version>${jersey-bom.version}</version>
106       <scope>compile</scope>
107     </dependency>
108
109
110     <dependency>
111       <groupId>org.glassfish.jersey.media</groupId>
112       <artifactId>jersey-media-json-jackson</artifactId>
113       <version>${jersey-bom.version}</version>
114       <scope>compile</scope>
115     </dependency>
116
117     <dependency>
118       <groupId>org.glassfish.jersey.inject</groupId>
119       <artifactId>jersey-hk2</artifactId>
120       <version>${jersey-bom.version}</version>
121     </dependency>
122
123     <dependency>
124       <groupId>com.fasterxml.jackson.core</groupId>
125       <artifactId>jackson-core</artifactId>
126       <version>${jackson.version}</version>
127       <scope>compile</scope>
128     </dependency>
129
130     <dependency>
131       <groupId>com.fasterxml.jackson.core</groupId>
132       <artifactId>jackson-databind</artifactId>
133       <version>${jackson.version}</version>
134       <exclusions>
135         <exclusion>
136           <groupId>com.fasterxml.jackson.core</groupId>
137           <artifactId>jackson-core</artifactId>
138         </exclusion>
139       </exclusions>
140     </dependency>
141
142     <dependency>
143       <groupId>com.fasterxml.jackson.core</groupId>
144       <artifactId>jackson-annotations</artifactId>
145       <version>${jackson-annotations.version}</version>
146       <scope>compile</scope>
147     </dependency>
148
149     <!-- http client -->
150     <dependency>
151       <groupId>org.apache.httpcomponents</groupId>
152       <artifactId>httpclient</artifactId>
153       <version>${httpclient.version}</version>
154       <scope>compile</scope>
155     </dependency>
156
157     <dependency>
158       <groupId>org.apache.httpcomponents</groupId>
159       <artifactId>httpcore</artifactId>
160       <version>${httpcore.version}</version>
161       <scope>compile</scope>
162     </dependency>
163
164     <dependency>
165       <groupId>org.apache.httpcomponents</groupId>
166       <artifactId>httpmime</artifactId>
167       <version>${httpclient.version}</version>
168       <scope>compile</scope>
169     </dependency>
170
171     <dependency>
172       <groupId>commons-logging</groupId>
173       <artifactId>commons-logging</artifactId>
174       <version>${commons-logging}</version>
175       <scope>compile</scope>
176     </dependency>
177
178     <dependency>
179       <groupId>commons-codec</groupId>
180       <artifactId>commons-codec</artifactId>
181       <version>${commons-codec}</version>
182       <scope>compile</scope>
183     </dependency>
184     <!-- http client END -->
185
186     <dependency>
187       <groupId>javax.servlet</groupId>
188       <artifactId>javax.servlet-api</artifactId>
189       <version>${servlet-api.version}</version>
190       <scope>provided</scope>
191     </dependency>
192
193     <!-- JSON and YAML Parsing -->
194     <dependency>
195       <groupId>com.fasterxml.jackson.dataformat</groupId>
196       <artifactId>jackson-dataformat-yaml</artifactId>
197       <version>${jackson.version}</version>
198       <scope>compile</scope>
199     </dependency>
200
201     <!-- Jetty Proxy -->
202     <dependency>
203       <groupId>org.eclipse.jetty</groupId>
204       <artifactId>jetty-proxy</artifactId>
205       <version>${jetty.version}</version>
206       <scope>compile</scope>
207       <exclusions>
208         <exclusion>
209           <groupId>org.eclipse.jetty</groupId>
210           <artifactId>jetty-http</artifactId>
211         </exclusion>
212       </exclusions>
213     </dependency>
214
215     <dependency>
216       <groupId>org.eclipse.jetty</groupId>
217       <artifactId>jetty-servlets</artifactId>
218       <version>${jetty.version}</version>
219       <scope>compile</scope>
220       <exclusions>
221         <exclusion>
222           <groupId>org.eclipse.jetty</groupId>
223           <artifactId>jetty-http</artifactId>
224         </exclusion>
225       </exclusions>
226     </dependency>
227
228     <!-- Proxy servlet -->
229     <dependency>
230       <groupId>com.google.guava</groupId>
231       <artifactId>guava</artifactId>
232       <version>${guava.version}</version>
233       <scope>compile</scope>
234     </dependency>
235
236     <!-- Aspects -->
237     <dependency>
238       <groupId>com.jcabi</groupId>
239       <artifactId>jcabi-aspects</artifactId>
240       <version>${jcabi.version}</version>
241       <scope>compile</scope>
242     </dependency>
243     <dependency>
244       <groupId>org.aspectj</groupId>
245       <artifactId>aspectjrt</artifactId>
246       <version>${aspectjrt.version}</version>
247       <scope>compile</scope>
248     </dependency>
249
250     <dependency>
251       <groupId>org.apache.commons</groupId>
252       <artifactId>commons-lang3</artifactId>
253       <version>${lang3.version}</version>
254       <scope>compile</scope>
255     </dependency>
256
257     <dependency>
258       <groupId>javax.xml.bind</groupId>
259       <artifactId>jaxb-api</artifactId>
260       <version>${jaxb-api.version}</version>
261       <scope>compile</scope>
262     </dependency>
263     <dependency>
264       <groupId>org.hibernate.validator</groupId>
265       <artifactId>hibernate-validator</artifactId>
266       <version>${hibernate.validator.version}</version>
267     </dependency>
268
269     <!-- Inserted for ECOMP Portal Integration -->
270     <dependency>
271       <groupId>org.owasp.esapi</groupId>
272       <artifactId>esapi</artifactId>
273       <version>${org.owasp.esapi.version}</version>
274       <exclusions>
275         <exclusion>
276           <groupId>log4j</groupId>
277           <artifactId>log4j</artifactId>
278         </exclusion>
279         <exclusion>
280           <groupId>commons-io</groupId>
281           <artifactId>commons-io</artifactId>
282         </exclusion>
283         <exclusion>
284           <groupId>commons-fileupload</groupId>
285           <artifactId>commons-fileupload</artifactId>
286         </exclusion>
287         <exclusion>
288           <groupId>org.apache.xmlgraphics</groupId>
289           <artifactId>xmlgraphics-commons</artifactId>
290         </exclusion>
291       </exclusions>
292     </dependency>
293     <dependency>
294       <groupId>org.onap.portal.sdk</groupId>
295       <artifactId>epsdk-fw</artifactId>
296       <version>${ecomp.version}</version>
297       <scope>compile</scope>
298       <exclusions>
299         <exclusion>
300           <groupId>com.att.nsa</groupId>
301           <artifactId>cambriaClient</artifactId>
302         </exclusion>
303         <exclusion>
304           <artifactId>slf4j-log4j12</artifactId>
305           <groupId>org.slf4j</groupId>
306         </exclusion>
307         <exclusion>
308           <artifactId>log4j</artifactId>
309           <groupId>log4j</groupId>
310         </exclusion>
311       </exclusions>
312     </dependency>
313     <!-- System metrics -->
314     <dependency>
315       <groupId>org.fusesource</groupId>
316       <artifactId>sigar</artifactId>
317       <version>${sigar.version}</version>
318       <scope>compile</scope>
319       <exclusions>
320         <exclusion>
321           <groupId>log4j</groupId>
322           <artifactId>log4j</artifactId>
323         </exclusion>
324       </exclusions>
325     </dependency>
326
327     <!-- TEST -->
328     <dependency>
329       <groupId>org.glassfish.jersey.test-framework.providers</groupId>
330       <artifactId>jersey-test-framework-provider-bundle</artifactId>
331       <version>${jersey-bom.version}</version>
332       <type>pom</type>
333       <scope>test</scope>
334       <exclusions>
335         <exclusion>
336           <groupId>org.eclipse.jetty</groupId>
337           <artifactId>jetty-server</artifactId>
338         </exclusion>
339         <exclusion>
340           <groupId>org.eclipse.jetty</groupId>
341           <artifactId>jetty-continuation</artifactId>
342         </exclusion>
343       </exclusions>
344     </dependency>
345
346     <dependency>
347       <groupId>com.google.code.bean-matchers</groupId>
348       <artifactId>bean-matchers</artifactId>
349       <version>${bean-matchers.version}</version>
350       <scope>test</scope>
351     </dependency>
352
353     <dependency>
354       <groupId>org.eclipse.jetty</groupId>
355       <artifactId>jetty-servlet</artifactId>
356       <version>${jetty.version}</version>
357       <scope>test</scope>
358       <exclusions>
359         <exclusion>
360           <groupId>org.eclipse.jetty</groupId>
361           <artifactId>jetty-server</artifactId>
362         </exclusion>
363         <exclusion>
364           <groupId>org.eclipse.jetty</groupId>
365           <artifactId>jetty-security</artifactId>
366         </exclusion>
367       </exclusions>
368     </dependency>
369
370     <dependency>
371       <groupId>org.eclipse.jetty</groupId>
372       <artifactId>jetty-webapp</artifactId>
373       <version>${jetty.version}</version>
374       <scope>test</scope>
375       <exclusions>
376         <exclusion>
377           <groupId>org.eclipse.jetty</groupId>
378           <artifactId>jetty-servlet</artifactId>
379         </exclusion>
380       </exclusions>
381     </dependency>
382     <dependency>
383       <groupId>org.eclipse.jetty</groupId>
384       <artifactId>jetty-http</artifactId>
385       <version>${jetty.version}</version>
386     </dependency>
387     <dependency>
388       <groupId>javax.ws.rs</groupId>
389       <artifactId>javax.ws.rs-api</artifactId>
390       <version>${ws.rs.version}</version>
391       <scope>compile</scope>
392     </dependency>
393
394     <dependency>
395       <groupId>javax.validation</groupId>
396       <artifactId>validation-api</artifactId>
397       <version>${javax.validation.version}</version>
398     </dependency>
399   </dependencies>
400
401   <build>
402
403     <finalName>${project.artifactId}-${project.version}</finalName>
404
405     <plugins>
406       <plugin>
407         <groupId>org.apache.maven.plugins</groupId>
408         <artifactId>maven-war-plugin</artifactId>
409         <configuration>
410           <archive>
411             <manifest>
412               <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
413             </manifest>
414           </archive>
415
416           <webResources>
417             <resource>
418               <directory>src/main/resources</directory>
419             </resource>
420           </webResources>
421         </configuration>
422       </plugin>
423
424       <plugin>
425         <groupId>org.eclipse.jetty</groupId>
426         <artifactId>jetty-maven-plugin</artifactId>
427         <version>${jetty.version}</version>
428         <configuration>
429           <webApp>
430             <contextPath>/</contextPath>
431             <webInfIncludeJarPattern>.*/.*jersey-[^/]\.jar$</webInfIncludeJarPattern>
432           </webApp>
433           <war>${project.build.directory}/${project.build.finalName}.war</war>
434         </configuration>
435       </plugin>
436
437       <plugin>
438         <groupId>org.apache.maven.plugins</groupId>
439         <artifactId>maven-deploy-plugin</artifactId>
440         <configuration>
441           <skip>true</skip>
442         </configuration>
443       </plugin>
444
445       <plugin>
446         <groupId>com.jcabi</groupId>
447         <artifactId>jcabi-maven-plugin</artifactId>
448         <version>${jcabi.maven.plugin.version}</version>
449         <dependencies>
450           <dependency>
451             <groupId>org.aspectj</groupId>
452             <artifactId>aspectjtools</artifactId>
453             <version>${aspectj.version}</version>
454           </dependency>
455           <dependency>
456             <groupId>org.aspectj</groupId>
457             <artifactId>aspectjweaver</artifactId>
458             <version>${aspectj.version}</version>
459           </dependency>
460         </dependencies>
461         <executions>
462           <execution>
463             <goals>
464               <goal>ajc</goal>
465             </goals>
466           </execution>
467         </executions>
468       </plugin>
469       <plugin>
470         <groupId>org.apache.maven.plugins</groupId>
471         <artifactId>maven-clean-plugin</artifactId>
472         <executions>
473           <execution>
474             <id>clean.catalog.fe.folder</id>
475             <phase>clean</phase>
476             <goals>
477               <goal>clean</goal>
478             </goals>
479             <configuration>
480               <filesets>
481                 <!-- FE WAR's -->
482                 <fileset>
483                   <directory>${project.parent.basedir}/catalog-fe/sdc-frontend/</directory>
484                   <followSymlinks>false</followSymlinks>
485                   <includes>
486                     <include>*.war</include>
487                   </includes>
488                 </fileset>
489               </filesets>
490             </configuration>
491           </execution>
492         </executions>
493       </plugin>
494       <plugin>
495         <groupId>com.github.sylvainlaurent.maven</groupId>
496         <artifactId>yaml-json-validator-maven-plugin</artifactId>
497         <executions>
498           <execution>
499             <id>validate</id>
500             <phase>validate</phase>
501             <goals>
502               <goal>validate</goal>
503             </goals>
504             <configuration>
505               <validationSets>
506                 <validationSet>
507                   <includes>
508                     <include>src/main/resources/**/*.y*ml</include>
509                     <include>src/test/resources/**/*.y*ml</include>
510                   </includes>
511                 </validationSet>
512                 <validationSet>
513                   <includes>
514                     <include>src/main/resources/**/*.json</include>
515                     <include>src/test/resources/**/*.json</include>
516                   </includes>
517                 </validationSet>
518               </validationSets>
519               <skip>${skipYamlJsonValidator}</skip>
520             </configuration>
521           </execution>
522         </executions>
523       </plugin>
524
525     </plugins>
526
527     <pluginManagement>
528       <plugins>
529         <!--This plugin's configuration is used to store Eclipse m2e settings
530           only. It has no influence on the Maven build itself. -->
531         <plugin>
532           <groupId>org.eclipse.m2e</groupId>
533           <artifactId>lifecycle-mapping</artifactId>
534           <version>1.0.0</version>
535           <configuration>
536             <lifecycleMappingMetadata>
537               <pluginExecutions>
538
539                 <pluginExecution>
540                   <pluginExecutionFilter>
541                     <groupId>com.jcabi</groupId>
542                     <artifactId>jcabi-maven-plugin</artifactId>
543                     <versionRange>[0.0,)</versionRange>
544                     <goals>
545                       <goal>ajc</goal>
546                     </goals>
547                   </pluginExecutionFilter>
548                   <action>
549                     <execute/>
550                   </action>
551                 </pluginExecution>
552
553               </pluginExecutions>
554             </lifecycleMappingMetadata>
555           </configuration>
556         </plugin>
557
558         <!-- jacbi (log injection) -->
559
560       </plugins>
561     </pluginManagement>
562
563   </build>
564
565   <profiles>
566     <profile>
567       <id>catalog</id>
568       <activation>
569         <activeByDefault>false</activeByDefault>
570       </activation>
571
572       <build>
573         <finalName>${project.artifactId}-${project.version}</finalName>
574       </build>
575     </profile>
576     <profile>
577       <id>docker</id>
578       <activation>
579         <activeByDefault>false</activeByDefault>
580       </activation>
581       <properties>
582         <docker.username>docker</docker.username>
583         <docker.password>docker</docker.password>
584       </properties>
585       <build>
586         <plugins>
587           <plugin>
588             <groupId>org.apache.maven.plugins</groupId>
589             <artifactId>maven-resources-plugin</artifactId>
590             <executions>
591               <execution>
592                 <id>copy-resources-fe</id>
593                 <phase>verify</phase>
594                 <goals>
595                   <goal>copy-resources</goal>
596                 </goals>
597                 <configuration>
598                   <outputDirectory>${basedir}/sdc-frontend</outputDirectory>
599                   <resources>
600                     <resource>
601                       <directory>${project.parent.basedir}/catalog-fe/target</directory>
602                       <includes>
603                         <include>catalog-fe-${project.version}.war</include>
604                       </includes>
605                     </resource>
606                     <resource>
607                       <directory>${project.parent.basedir}/openecomp-ui/target</directory>
608                       <includes>
609                         <include>onboarding-fe-${project.version}.war</include>
610                       </includes>
611                     </resource>
612                   </resources>
613                 </configuration>
614               </execution>
615             </executions>
616           </plugin>
617           <plugin>
618             <groupId>io.fabric8</groupId>
619             <artifactId>docker-maven-plugin</artifactId>
620             <configuration>
621               <verbose>${verbose}</verbose>
622               <apiVersion>${docker.api.version}</apiVersion>
623               <registry>nexus3.onap.org:10001</registry>
624               <authConfig>
625                 <pull>
626                   <username>${docker.username}</username>
627                   <password>${docker.password}</password>
628                 </pull>
629               </authConfig>
630               <images>
631
632                 <!-- Build frontend image -->
633                 <image>
634                   <name>onap/sdc-frontend</name>
635                   <alias>sdc-frontend</alias>
636                   <build>
637                     <cleanup>try</cleanup>
638                     <dockerFileDir>${project.basedir}/sdc-frontend</dockerFileDir>
639                     <tags>
640                       <tag>latest</tag>
641                       <tag>
642                         ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest
643                       </tag>
644                       <tag>
645                         ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-${maven.build.timestamp}
646                       </tag>
647                     </tags>
648                   </build>
649                 </image>
650               </images>
651             </configuration>
652             <executions>
653               <execution>
654                 <id>clean-images</id>
655                 <phase>pre-clean</phase>
656                 <goals>
657                   <goal>remove</goal>
658                 </goals>
659                 <configuration>
660                   <removeAll>true</removeAll>
661                   <image>onap/sdc-frontend</image>
662                 </configuration>
663               </execution>
664
665               <execution>
666                 <id>generate-images</id>
667                 <phase>install</phase>
668                 <goals>
669                   <goal>build</goal>
670                 </goals>
671               </execution>
672
673               <execution>
674                 <id>push-images</id>
675                 <phase>deploy</phase>
676                 <goals>
677                   <goal>push</goal>
678                 </goals>
679                 <configuration>
680                   <image>onap/sdc-frontend</image>
681                 </configuration>
682               </execution>
683             </executions>
684           </plugin>
685         </plugins>
686       </build>
687     </profile>
688   </profiles>
689 </project>