Reduce scope from 'compile' to 'test' for 'junit-vintage-engine'
[sdc.git] / catalog-fe / pom.xml
1 <project xmlns="http://maven.apache.org/POM/4.0.0"
2   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4
5   <modelVersion>4.0.0</modelVersion>
6   <artifactId>catalog-fe</artifactId>
7   <packaging>war</packaging>
8
9   <parent>
10     <groupId>org.openecomp.sdc</groupId>
11     <artifactId>sdc-main</artifactId>
12     <version>1.7.0-SNAPSHOT</version>
13   </parent>
14
15   <dependencies>
16     <!--JUnit Jupiter Engine to depend on the JUnit5 engine and JUnit 5 API -->
17     <dependency>
18       <groupId>org.junit.jupiter</groupId>
19       <artifactId>junit-jupiter-engine</artifactId>
20       <version>${junitJupiter.version}</version>
21       <scope>test</scope>
22     </dependency>
23     <!--JUnit Jupiter Engine to depend on the JUnit4 engine and JUnit 4 API  -->
24     <dependency>
25       <groupId>org.junit.vintage</groupId>
26       <artifactId>junit-vintage-engine</artifactId>
27       <version>${junitJupiter.version}</version>
28       <scope>test</scope>
29     </dependency>
30
31     <dependency>
32       <groupId>org.projectlombok</groupId>
33       <artifactId>lombok</artifactId>
34       <version>${lombok.version}</version>
35     </dependency>
36
37     <dependency>
38       <groupId>org.functionaljava</groupId>
39       <artifactId>functionaljava</artifactId>
40       <version>${functionaljava.version}</version>
41       <scope>compile</scope>
42     </dependency>
43
44     <dependency>
45       <groupId>org.openecomp.sdc</groupId>
46       <artifactId>common-app-api</artifactId>
47       <version>${project.version}</version>
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     </dependency>
84
85     <dependency>
86       <groupId>com.google.code.gson</groupId>
87       <artifactId>gson</artifactId>
88       <version>${gson.version}</version>
89       <scope>compile</scope>
90     </dependency>
91
92     <dependency>
93       <groupId>org.glassfish.jersey.containers</groupId>
94       <artifactId>jersey-container-servlet</artifactId>
95       <version>${jersey-bom.version}</version>
96       <scope>compile</scope>
97     </dependency>
98
99     <dependency>
100       <groupId>org.glassfish.jersey.media</groupId>
101       <artifactId>jersey-media-multipart</artifactId>
102       <version>${jersey-bom.version}</version>
103       <scope>compile</scope>
104     </dependency>
105
106     <dependency>
107       <groupId>org.glassfish.jersey.media</groupId>
108       <artifactId>jersey-media-moxy</artifactId>
109       <version>${jersey-bom.version}</version>
110       <scope>compile</scope>
111     </dependency>
112
113
114     <dependency>
115       <groupId>org.glassfish.jersey.media</groupId>
116       <artifactId>jersey-media-json-jackson</artifactId>
117       <version>${jersey-bom.version}</version>
118       <scope>compile</scope>
119     </dependency>
120
121     <dependency>
122       <groupId>org.glassfish.jersey.inject</groupId>
123       <artifactId>jersey-hk2</artifactId>
124       <version>${jersey-bom.version}</version>
125     </dependency>
126
127     <dependency>
128       <groupId>com.fasterxml.jackson.core</groupId>
129       <artifactId>jackson-core</artifactId>
130       <version>${jackson.version}</version>
131       <scope>compile</scope>
132     </dependency>
133
134     <dependency>
135       <groupId>com.fasterxml.jackson.core</groupId>
136       <artifactId>jackson-databind</artifactId>
137       <version>${jackson.version}</version>
138       <scope>compile</scope>
139     </dependency>
140
141     <dependency>
142       <groupId>com.fasterxml.jackson.core</groupId>
143       <artifactId>jackson-annotations</artifactId>
144       <version>${jackson-annotations.version}</version>
145       <scope>compile</scope>
146     </dependency>
147
148     <!-- http client -->
149     <dependency>
150       <groupId>org.apache.httpcomponents</groupId>
151       <artifactId>httpclient</artifactId>
152       <version>${httpclient.version}</version>
153       <scope>compile</scope>
154     </dependency>
155
156     <dependency>
157       <groupId>org.apache.httpcomponents</groupId>
158       <artifactId>httpcore</artifactId>
159       <version>${httpcore.version}</version>
160       <scope>compile</scope>
161     </dependency>
162
163     <dependency>
164       <groupId>org.apache.httpcomponents</groupId>
165       <artifactId>httpmime</artifactId>
166       <version>${httpclient.version}</version>
167       <scope>compile</scope>
168     </dependency>
169
170     <dependency>
171       <groupId>commons-logging</groupId>
172       <artifactId>commons-logging</artifactId>
173       <version>${commons-logging}</version>
174       <scope>compile</scope>
175     </dependency>
176
177     <dependency>
178       <groupId>commons-codec</groupId>
179       <artifactId>commons-codec</artifactId>
180       <version>${commons-codec}</version>
181       <scope>compile</scope>
182     </dependency>
183     <!-- http client END -->
184
185     <dependency>
186       <groupId>javax.servlet</groupId>
187       <artifactId>javax.servlet-api</artifactId>
188       <version>${servlet-api.version}</version>
189       <scope>provided</scope>
190     </dependency>
191
192     <!-- JSON and YAML Parsing -->
193     <dependency>
194       <groupId>com.fasterxml.jackson.dataformat</groupId>
195       <artifactId>jackson-dataformat-yaml</artifactId>
196       <version>${jackson.version}</version>
197       <scope>compile</scope>
198     </dependency>
199
200     <!-- Jetty Proxy -->
201     <dependency>
202       <groupId>org.eclipse.jetty</groupId>
203       <artifactId>jetty-proxy</artifactId>
204       <version>${jetty.version}</version>
205       <scope>compile</scope>
206     </dependency>
207
208     <dependency>
209       <groupId>org.eclipse.jetty</groupId>
210       <artifactId>jetty-servlets</artifactId>
211       <version>${jetty.version}</version>
212       <scope>compile</scope>
213     </dependency>
214
215     <!-- Proxy servlet -->
216     <dependency>
217       <groupId>com.google.guava</groupId>
218       <artifactId>guava</artifactId>
219       <version>${guava.version}</version>
220       <scope>compile</scope>
221     </dependency>
222
223     <!-- Aspects -->
224     <dependency>
225       <groupId>com.jcabi</groupId>
226       <artifactId>jcabi-aspects</artifactId>
227       <version>${jcabi.version}</version>
228       <scope>compile</scope>
229     </dependency>
230     <dependency>
231       <groupId>org.aspectj</groupId>
232       <artifactId>aspectjrt</artifactId>
233       <version>${aspectjrt.version}</version>
234       <scope>compile</scope>
235     </dependency>
236
237     <dependency>
238       <groupId>org.apache.commons</groupId>
239       <artifactId>commons-lang3</artifactId>
240       <version>${lang3.version}</version>
241       <scope>compile</scope>
242     </dependency>
243
244     <!-- Inserted for ECOMP Portal Integration -->
245     <dependency>
246       <groupId>org.onap.portal.sdk</groupId>
247       <artifactId>epsdk-fw</artifactId>
248       <version>${ecomp.version}</version>
249       <scope>compile</scope>
250       <exclusions>
251         <exclusion>
252           <groupId>com.att.nsa</groupId>
253           <artifactId>cambriaClient</artifactId>
254         </exclusion>
255         <exclusion>
256           <artifactId>slf4j-log4j12</artifactId>
257           <groupId>org.slf4j</groupId>
258         </exclusion>
259       </exclusions>
260     </dependency>
261     <!-- System metrics -->
262     <dependency>
263       <groupId>org.fusesource</groupId>
264       <artifactId>sigar</artifactId>
265       <version>${sigar.version}</version>
266       <scope>compile</scope>
267     </dependency>
268
269     <!-- TEST -->
270     <dependency>
271       <groupId>org.glassfish.jersey.test-framework.providers</groupId>
272       <artifactId>jersey-test-framework-provider-bundle</artifactId>
273       <version>${jersey-bom.version}</version>
274       <type>pom</type>
275       <scope>test</scope>
276     </dependency>
277
278     <dependency>
279       <groupId>com.google.code.bean-matchers</groupId>
280       <artifactId>bean-matchers</artifactId>
281       <version>${bean-matchers.version}</version>
282       <scope>test</scope>
283     </dependency>
284
285     <dependency>
286       <groupId>org.eclipse.jetty</groupId>
287       <artifactId>jetty-servlet</artifactId>
288       <version>${jetty.version}</version>
289       <scope>test</scope>
290     </dependency>
291
292     <dependency>
293       <groupId>org.eclipse.jetty</groupId>
294       <artifactId>jetty-webapp</artifactId>
295       <version>${jetty.version}</version>
296       <scope>test</scope>
297     </dependency>
298
299     <dependency>
300       <groupId>org.mockito</groupId>
301       <artifactId>mockito-core</artifactId>
302       <scope>test</scope>
303     </dependency>
304
305   </dependencies>
306
307   <build>
308
309     <finalName>${project.artifactId}-${project.version}</finalName>
310
311     <plugins>
312       <plugin>
313         <groupId>org.apache.maven.plugins</groupId>
314         <artifactId>maven-war-plugin</artifactId>
315         <configuration>
316           <archive>
317             <manifest>
318               <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
319             </manifest>
320           </archive>
321
322           <webResources>
323             <resource>
324               <directory>src/main/resources</directory>
325             </resource>
326           </webResources>
327         </configuration>
328       </plugin>
329
330       <plugin>
331         <groupId>org.eclipse.jetty</groupId>
332         <artifactId>jetty-maven-plugin</artifactId>
333         <version>${jetty.version}</version>
334         <configuration>
335           <webApp>
336             <contextPath>/</contextPath>
337             <webInfIncludeJarPattern>.*/.*jersey-[^/]\.jar$</webInfIncludeJarPattern>
338           </webApp>
339           <war>${project.build.directory}/${project.build.finalName}.war</war>
340         </configuration>
341       </plugin>
342
343       <plugin>
344         <groupId>org.apache.maven.plugins</groupId>
345         <artifactId>maven-deploy-plugin</artifactId>
346         <configuration>
347           <skip>true</skip>
348         </configuration>
349       </plugin>
350
351       <plugin>
352         <groupId>com.jcabi</groupId>
353         <artifactId>jcabi-maven-plugin</artifactId>
354         <version>${jcabi.maven.plugin.version}</version>
355         <executions>
356           <execution>
357             <goals>
358               <goal>ajc</goal>
359             </goals>
360           </execution>
361         </executions>
362       </plugin>
363       <plugin>
364         <groupId>org.apache.maven.plugins</groupId>
365         <artifactId>maven-clean-plugin</artifactId>
366         <executions>
367           <execution>
368             <id>clean.catalog.fe.folder</id>
369             <phase>clean</phase>
370             <goals>
371               <goal>clean</goal>
372             </goals>
373             <configuration>
374               <filesets>
375                 <!-- FE WAR's -->
376                 <fileset>
377                   <directory>${project.parent.basedir}/catalog-fe/sdc-frontend/</directory>
378                   <followSymlinks>false</followSymlinks>
379                   <includes>
380                     <include>*.war</include>
381                   </includes>
382                 </fileset>
383               </filesets>
384             </configuration>
385           </execution>
386         </executions>
387       </plugin>
388       <plugin>
389         <groupId>com.github.sylvainlaurent.maven</groupId>
390         <artifactId>yaml-json-validator-maven-plugin</artifactId>
391         <executions>
392           <execution>
393             <id>validate</id>
394             <phase>validate</phase>
395             <goals>
396               <goal>validate</goal>
397             </goals>
398             <configuration>
399               <validationSets>
400                 <validationSet>
401                   <includes>
402                     <include>src/main/resources/**/*.y*ml</include>
403                     <include>src/test/resources/**/*.y*ml</include>
404                   </includes>
405                 </validationSet>
406                 <validationSet>
407                   <includes>
408                     <include>src/main/resources/**/*.json</include>
409                     <include>src/test/resources/**/*.json</include>
410                   </includes>
411                 </validationSet>
412               </validationSets>
413             </configuration>
414           </execution>
415         </executions>
416       </plugin>
417
418     </plugins>
419
420     <pluginManagement>
421       <plugins>
422         <!--This plugin's configuration is used to store Eclipse m2e settings
423           only. It has no influence on the Maven build itself. -->
424         <plugin>
425           <groupId>org.eclipse.m2e</groupId>
426           <artifactId>lifecycle-mapping</artifactId>
427           <version>1.0.0</version>
428           <configuration>
429             <lifecycleMappingMetadata>
430               <pluginExecutions>
431
432                 <pluginExecution>
433                   <pluginExecutionFilter>
434                     <groupId>com.jcabi</groupId>
435                     <artifactId>jcabi-maven-plugin</artifactId>
436                     <versionRange>[0.0,)</versionRange>
437                     <goals>
438                       <goal>ajc</goal>
439                     </goals>
440                   </pluginExecutionFilter>
441                   <action>
442                     <execute/>
443                   </action>
444                 </pluginExecution>
445
446               </pluginExecutions>
447             </lifecycleMappingMetadata>
448           </configuration>
449         </plugin>
450
451         <!-- jacbi (log injection) -->
452
453       </plugins>
454     </pluginManagement>
455
456   </build>
457
458   <profiles>
459     <profile>
460       <id>catalog</id>
461       <activation>
462         <activeByDefault>false</activeByDefault>
463       </activation>
464
465       <build>
466         <finalName>${project.artifactId}-${project.version}</finalName>
467       </build>
468     </profile>
469     <profile>
470       <id>docker-staging</id>
471       <properties>
472         <docker.tag>${project.version}-STAGING-${maven.build.timestamp}</docker.tag>
473         <docker.latest.tag>${project.version}-STAGING-latest</docker.latest.tag>
474       </properties>
475     </profile>
476
477     <profile>
478       <id>docker</id>
479       <activation>
480         <activeByDefault>false</activeByDefault>
481       </activation>
482       <properties>
483         <docker.username>docker</docker.username>
484         <docker.password>docker</docker.password>
485       </properties>
486       <build>
487         <plugins>
488           <plugin>
489             <groupId>org.apache.maven.plugins</groupId>
490             <artifactId>maven-resources-plugin</artifactId>
491             <executions>
492               <execution>
493                 <id>copy-resources-fe</id>
494                 <phase>verify</phase>
495                 <goals>
496                   <goal>copy-resources</goal>
497                 </goals>
498                 <configuration>
499                   <outputDirectory>${basedir}/sdc-frontend</outputDirectory>
500                   <resources>
501                     <resource>
502                       <directory>${project.parent.basedir}/catalog-fe/target</directory>
503                       <includes>
504                         <include>catalog-fe-${project.version}.war</include>
505                       </includes>
506                     </resource>
507                     <resource>
508                       <directory>${project.parent.basedir}/openecomp-ui/target</directory>
509                       <includes>
510                         <include>onboarding-fe-${project.version}.war</include>
511                       </includes>
512                     </resource>
513                   </resources>
514                 </configuration>
515               </execution>
516             </executions>
517           </plugin>
518           <plugin>
519             <groupId>io.fabric8</groupId>
520             <artifactId>docker-maven-plugin</artifactId>
521             <configuration>
522               <apiVersion>1.23</apiVersion>
523               <registry>nexus3.onap.org:10001</registry>
524               <authConfig>
525                 <pull>
526                   <username>${docker.username}</username>
527                   <password>${docker.password}</password>
528                 </pull>
529               </authConfig>
530               <images>
531
532                 <!-- Build frontend image -->
533                 <image>
534                   <name>onap/sdc-frontend</name>
535                   <alias>sdc-frontend</alias>
536                   <build>
537                     <cleanup>try</cleanup>
538                     <dockerFileDir>${project.basedir}/sdc-frontend</dockerFileDir>
539                     <tags>
540                       <tag>${docker.tag}</tag>
541                       <tag>
542                         ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest
543                       </tag>
544                     </tags>
545                   </build>
546                 </image>
547               </images>
548             </configuration>
549             <executions>
550               <execution>
551                 <id>clean-images</id>
552                 <phase>pre-clean</phase>
553                 <goals>
554                   <goal>remove</goal>
555                 </goals>
556                 <configuration>
557                   <removeAll>true</removeAll>
558                   <image>onap/sdc-frontend</image>
559                 </configuration>
560               </execution>
561
562               <execution>
563                 <id>generate-images</id>
564                 <phase>install</phase>
565                 <goals>
566                   <goal>build</goal>
567                 </goals>
568               </execution>
569
570               <execution>
571                 <id>push-images</id>
572                 <phase>deploy</phase>
573                 <goals>
574                   <goal>push</goal>
575                 </goals>
576                 <configuration>
577                   <image>onap/sdc-frontend</image>
578                 </configuration>
579               </execution>
580             </executions>
581           </plugin>
582         </plugins>
583       </build>
584     </profile>
585   </profiles>
586 </project>