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