Fix dependencies with Critical Violations
[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.0-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</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>2.2.0.0</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       </exclusions>
288     </dependency>
289     <dependency>
290       <groupId>org.onap.portal.sdk</groupId>
291       <artifactId>epsdk-fw</artifactId>
292       <version>${ecomp.version}</version>
293       <scope>compile</scope>
294       <exclusions>
295         <exclusion>
296           <groupId>com.att.nsa</groupId>
297           <artifactId>cambriaClient</artifactId>
298         </exclusion>
299         <exclusion>
300           <artifactId>slf4j-log4j12</artifactId>
301           <groupId>org.slf4j</groupId>
302         </exclusion>
303         <exclusion>
304           <artifactId>log4j</artifactId>
305           <groupId>log4j</groupId>
306         </exclusion>
307       </exclusions>
308     </dependency>
309     <!-- System metrics -->
310     <dependency>
311       <groupId>org.fusesource</groupId>
312       <artifactId>sigar</artifactId>
313       <version>${sigar.version}</version>
314       <scope>compile</scope>
315       <exclusions>
316         <exclusion>
317           <groupId>log4j</groupId>
318           <artifactId>log4j</artifactId>
319         </exclusion>
320       </exclusions>
321     </dependency>
322
323     <!-- TEST -->
324     <dependency>
325       <groupId>org.glassfish.jersey.test-framework.providers</groupId>
326       <artifactId>jersey-test-framework-provider-bundle</artifactId>
327       <version>${jersey-bom.version}</version>
328       <type>pom</type>
329       <scope>test</scope>
330       <exclusions>
331         <exclusion>
332           <groupId>org.eclipse.jetty</groupId>
333           <artifactId>jetty-server</artifactId>
334         </exclusion>
335         <exclusion>
336           <groupId>org.eclipse.jetty</groupId>
337           <artifactId>jetty-continuation</artifactId>
338         </exclusion>
339       </exclusions>
340     </dependency>
341
342     <dependency>
343       <groupId>com.google.code.bean-matchers</groupId>
344       <artifactId>bean-matchers</artifactId>
345       <version>${bean-matchers.version}</version>
346       <scope>test</scope>
347     </dependency>
348
349     <dependency>
350       <groupId>org.eclipse.jetty</groupId>
351       <artifactId>jetty-servlet</artifactId>
352       <version>${jetty.version}</version>
353       <scope>test</scope>
354       <exclusions>
355         <exclusion>
356           <groupId>org.eclipse.jetty</groupId>
357           <artifactId>jetty-server</artifactId>
358         </exclusion>
359         <exclusion>
360           <groupId>org.eclipse.jetty</groupId>
361           <artifactId>jetty-security</artifactId>
362         </exclusion>
363       </exclusions>
364     </dependency>
365
366     <dependency>
367       <groupId>org.eclipse.jetty</groupId>
368       <artifactId>jetty-webapp</artifactId>
369       <version>${jetty.version}</version>
370       <scope>test</scope>
371       <exclusions>
372         <exclusion>
373           <groupId>org.eclipse.jetty</groupId>
374           <artifactId>jetty-servlet</artifactId>
375         </exclusion>
376       </exclusions>
377     </dependency>
378     <dependency>
379       <groupId>org.eclipse.jetty</groupId>
380       <artifactId>jetty-http</artifactId>
381       <version>${jetty.version}</version>
382     </dependency>
383
384   </dependencies>
385
386   <build>
387
388     <finalName>${project.artifactId}-${project.version}</finalName>
389
390     <plugins>
391       <plugin>
392         <groupId>org.apache.maven.plugins</groupId>
393         <artifactId>maven-war-plugin</artifactId>
394         <configuration>
395           <archive>
396             <manifest>
397               <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
398             </manifest>
399           </archive>
400
401           <webResources>
402             <resource>
403               <directory>src/main/resources</directory>
404             </resource>
405           </webResources>
406         </configuration>
407       </plugin>
408
409       <plugin>
410         <groupId>org.eclipse.jetty</groupId>
411         <artifactId>jetty-maven-plugin</artifactId>
412         <version>${jetty.version}</version>
413         <configuration>
414           <webApp>
415             <contextPath>/</contextPath>
416             <webInfIncludeJarPattern>.*/.*jersey-[^/]\.jar$</webInfIncludeJarPattern>
417           </webApp>
418           <war>${project.build.directory}/${project.build.finalName}.war</war>
419         </configuration>
420       </plugin>
421
422       <plugin>
423         <groupId>org.apache.maven.plugins</groupId>
424         <artifactId>maven-deploy-plugin</artifactId>
425         <configuration>
426           <skip>true</skip>
427         </configuration>
428       </plugin>
429
430       <plugin>
431         <groupId>com.jcabi</groupId>
432         <artifactId>jcabi-maven-plugin</artifactId>
433         <version>${jcabi.maven.plugin.version}</version>
434         <dependencies>
435           <dependency>
436             <groupId>org.aspectj</groupId>
437             <artifactId>aspectjtools</artifactId>
438             <version>1.9.2</version>
439           </dependency>
440           <dependency>
441             <groupId>org.aspectj</groupId>
442             <artifactId>aspectjweaver</artifactId>
443             <version>1.9.2</version>
444           </dependency>
445         </dependencies>
446         <executions>
447           <execution>
448             <goals>
449               <goal>ajc</goal>
450             </goals>
451           </execution>
452         </executions>
453       </plugin>
454       <plugin>
455         <groupId>org.apache.maven.plugins</groupId>
456         <artifactId>maven-clean-plugin</artifactId>
457         <executions>
458           <execution>
459             <id>clean.catalog.fe.folder</id>
460             <phase>clean</phase>
461             <goals>
462               <goal>clean</goal>
463             </goals>
464             <configuration>
465               <filesets>
466                 <!-- FE WAR's -->
467                 <fileset>
468                   <directory>${project.parent.basedir}/catalog-fe/sdc-frontend/</directory>
469                   <followSymlinks>false</followSymlinks>
470                   <includes>
471                     <include>*.war</include>
472                   </includes>
473                 </fileset>
474               </filesets>
475             </configuration>
476           </execution>
477         </executions>
478       </plugin>
479       <plugin>
480         <groupId>com.github.sylvainlaurent.maven</groupId>
481         <artifactId>yaml-json-validator-maven-plugin</artifactId>
482         <executions>
483           <execution>
484             <id>validate</id>
485             <phase>validate</phase>
486             <goals>
487               <goal>validate</goal>
488             </goals>
489             <configuration>
490               <validationSets>
491                 <validationSet>
492                   <includes>
493                     <include>src/main/resources/**/*.y*ml</include>
494                     <include>src/test/resources/**/*.y*ml</include>
495                   </includes>
496                 </validationSet>
497                 <validationSet>
498                   <includes>
499                     <include>src/main/resources/**/*.json</include>
500                     <include>src/test/resources/**/*.json</include>
501                   </includes>
502                 </validationSet>
503               </validationSets>
504               <skip>${skipYamlJsonValidator}</skip>
505             </configuration>
506           </execution>
507         </executions>
508       </plugin>
509
510     </plugins>
511
512     <pluginManagement>
513       <plugins>
514         <!--This plugin's configuration is used to store Eclipse m2e settings
515           only. It has no influence on the Maven build itself. -->
516         <plugin>
517           <groupId>org.eclipse.m2e</groupId>
518           <artifactId>lifecycle-mapping</artifactId>
519           <version>1.0.0</version>
520           <configuration>
521             <lifecycleMappingMetadata>
522               <pluginExecutions>
523
524                 <pluginExecution>
525                   <pluginExecutionFilter>
526                     <groupId>com.jcabi</groupId>
527                     <artifactId>jcabi-maven-plugin</artifactId>
528                     <versionRange>[0.0,)</versionRange>
529                     <goals>
530                       <goal>ajc</goal>
531                     </goals>
532                   </pluginExecutionFilter>
533                   <action>
534                     <execute/>
535                   </action>
536                 </pluginExecution>
537
538               </pluginExecutions>
539             </lifecycleMappingMetadata>
540           </configuration>
541         </plugin>
542
543         <!-- jacbi (log injection) -->
544
545       </plugins>
546     </pluginManagement>
547
548   </build>
549
550   <profiles>
551     <profile>
552       <id>catalog</id>
553       <activation>
554         <activeByDefault>false</activeByDefault>
555       </activation>
556
557       <build>
558         <finalName>${project.artifactId}-${project.version}</finalName>
559       </build>
560     </profile>
561     <profile>
562       <id>docker</id>
563       <activation>
564         <activeByDefault>false</activeByDefault>
565       </activation>
566       <properties>
567         <docker.username>docker</docker.username>
568         <docker.password>docker</docker.password>
569       </properties>
570       <build>
571         <plugins>
572           <plugin>
573             <groupId>org.apache.maven.plugins</groupId>
574             <artifactId>maven-resources-plugin</artifactId>
575             <executions>
576               <execution>
577                 <id>copy-resources-fe</id>
578                 <phase>verify</phase>
579                 <goals>
580                   <goal>copy-resources</goal>
581                 </goals>
582                 <configuration>
583                   <outputDirectory>${basedir}/sdc-frontend</outputDirectory>
584                   <resources>
585                     <resource>
586                       <directory>${project.parent.basedir}/catalog-fe/target</directory>
587                       <includes>
588                         <include>catalog-fe-${project.version}.war</include>
589                       </includes>
590                     </resource>
591                     <resource>
592                       <directory>${project.parent.basedir}/openecomp-ui/target</directory>
593                       <includes>
594                         <include>onboarding-fe-${project.version}.war</include>
595                       </includes>
596                     </resource>
597                   </resources>
598                 </configuration>
599               </execution>
600             </executions>
601           </plugin>
602           <plugin>
603             <groupId>io.fabric8</groupId>
604             <artifactId>docker-maven-plugin</artifactId>
605             <configuration>
606               <verbose>${verbose}</verbose>
607               <apiVersion>${docker.api.version}</apiVersion>
608               <registry>nexus3.onap.org:10001</registry>
609               <authConfig>
610                 <pull>
611                   <username>${docker.username}</username>
612                   <password>${docker.password}</password>
613                 </pull>
614               </authConfig>
615               <images>
616
617                 <!-- Build frontend image -->
618                 <image>
619                   <name>onap/sdc-frontend</name>
620                   <alias>sdc-frontend</alias>
621                   <build>
622                     <cleanup>try</cleanup>
623                     <dockerFileDir>${project.basedir}/sdc-frontend</dockerFileDir>
624                     <tags>
625                       <tag>latest</tag>
626                       <tag>
627                         ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest
628                       </tag>
629                       <tag>
630                         ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-${maven.build.timestamp}
631                       </tag>
632                     </tags>
633                   </build>
634                 </image>
635               </images>
636             </configuration>
637             <executions>
638               <execution>
639                 <id>clean-images</id>
640                 <phase>pre-clean</phase>
641                 <goals>
642                   <goal>remove</goal>
643                 </goals>
644                 <configuration>
645                   <removeAll>true</removeAll>
646                   <image>onap/sdc-frontend</image>
647                 </configuration>
648               </execution>
649
650               <execution>
651                 <id>generate-images</id>
652                 <phase>install</phase>
653                 <goals>
654                   <goal>build</goal>
655                 </goals>
656               </execution>
657
658               <execution>
659                 <id>push-images</id>
660                 <phase>deploy</phase>
661                 <goals>
662                   <goal>push</goal>
663                 </goals>
664                 <configuration>
665                   <image>onap/sdc-frontend</image>
666                 </configuration>
667               </execution>
668             </executions>
669           </plugin>
670         </plugins>
671       </build>
672     </profile>
673   </profiles>
674 </project>