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