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