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