Reduce scope from 'compile' to 'test' for 'junit-vintage-engine'
[sdc.git] / pom.xml
1 <!--
2 ============LICENSE_START=======================================================
3 SDC
4 ================================================================================
5 Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6 ================================================================================
7 Licensed under the Apache License, Version 2.0 (the "License");
8 you may not use this file except in compliance with the License.
9 You may obtain a copy of the License at
10         *
11      http://www.apache.org/licenses/LICENSE-2.0
12         *
13 Unless required by applicable law or agreed to in writing, software
14 distributed under the License is distributed on an "AS IS" BASIS,
15 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 See the License for the specific language governing permissions and
17 limitations under the License.
18 ============LICENSE_END=========================================================
19 Modifications copyright (c) 2018-2019 Nokia
20 ================================================================================
21 -->
22 <project xmlns="http://maven.apache.org/POM/4.0.0"
23   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
24   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
25   <modelVersion>4.0.0</modelVersion>
26
27   <groupId>org.openecomp.sdc</groupId>
28   <artifactId>sdc-main</artifactId>
29   <version>1.7.0-SNAPSHOT</version>
30   <packaging>pom</packaging>
31   <name>sdc</name>
32
33   <parent>
34     <groupId>org.onap.oparent</groupId>
35     <artifactId>oparent</artifactId>
36     <version>2.0.0</version>
37     <relativePath/>
38   </parent>
39
40   <properties>
41     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
42
43     <tosca.datatype.version>${project.version}</tosca.datatype.version>
44
45     <!-- 3rd parties versions -->
46     <bean-matcher.version>0.11</bean-matcher.version>
47     <lang3.version>3.10</lang3.version>
48     <guava.version>18.0</guava.version>
49     <janusgraph.version>0.3.1</janusgraph.version>
50     <spring.version>4.3.18.RELEASE</spring.version>
51     <jersey-bom.version>2.27</jersey-bom.version>
52     <netty.version>4.1.36.Final</netty.version>
53     <servlet-api.version>3.1.0</servlet-api.version>
54     <wire-mock.version>2.26.3</wire-mock.version>
55     <ecomp.version>2.6.0</ecomp.version>
56     <cassandra.unit.version>4.3.1.0</cassandra.unit.version>
57     <cadi.version>2.1.8</cadi.version>
58     <lombok.version>1.18.12</lombok.version>
59     <commons-beanutils>1.9.3</commons-beanutils>
60     <commons-configuration>2.3</commons-configuration>
61     <apache-poi.version>4.1.0</apache-poi.version>
62     <onap.logging.version>1.6.1</onap.logging.version>
63
64     <commons.collections.version>4.1</commons.collections.version>
65     <ws.rs.version>2.0.1</ws.rs.version>
66
67     <jetty.version>9.4.18.v20190429</jetty.version>
68
69     <!-- JSON and YAML Parsing -->
70     <jackson.version>2.9.9</jackson.version>
71     <jackson-annotations.version>2.9.9</jackson-annotations.version>
72     <jackson.mapper.version>1.9.13</jackson.mapper.version>
73     <clearspring.version>2.1.1</clearspring.version>
74
75     <!-- Yaml for properties -->
76     <snakeyaml.version>1.14</snakeyaml.version>
77     <functionaljava.version>4.7</functionaljava.version>
78     <httpclient.version>4.5.3</httpclient.version>
79     <httpcore.version>4.4.1</httpcore.version>
80     <json-simple.version>1.1</json-simple.version>
81
82     <!-- Logging start -->
83     <!-- logback -->
84     <logback.version>1.2.3</logback.version>
85     <slf4j-api.version>1.7.25</slf4j-api.version>
86     <commons-codec>1.10</commons-codec>
87     <commons-logging>1.2</commons-logging>
88     <janino.version>3.0.6</janino.version>
89
90     <!-- aspects -->
91     <jcabi.version>0.20.1</jcabi.version>
92     <aspectjrt.version>1.8.4</aspectjrt.version>
93     <aspectj.version>1.7.4</aspectj.version>
94     <jcabi.maven.plugin.version>0.13.2</jcabi.maven.plugin.version>
95
96     <!-- Logging end -->
97     <!-- System Metrics -->
98     <sigar.version>1.6.4</sigar.version>
99
100     <regex.version>3.0.3</regex.version>
101
102     <!--GSON-->
103     <gson.version>2.3.1</gson.version>
104
105     <!--listen to file changes-->
106     <commons-jci-core.version>1.1</commons-jci-core.version>
107
108     <!--TESTING-->
109     <powermock.version>2.0.7</powermock.version>
110     <mockito.version>3.3.3</mockito.version>
111     <mockitoJupiter.version>3.3.3</mockitoJupiter.version>
112     <jmockit.version>1.35</jmockit.version>
113     <junit.version>4.12</junit.version>
114     <junit.platform.version>1.6.0</junit.platform.version>
115     <junitJupiter.version>5.6.0</junitJupiter.version>
116     <assertj.version>3.16.0</assertj.version>
117     <testng.version>6.14.3</testng.version>
118     <cucumber.version>5.6.0</cucumber.version>
119     <bean-matchers.version>0.11</bean-matchers.version>
120     <hamcrest.version>2.1</hamcrest.version>
121     <hamcrest-all.version>1.3</hamcrest-all.version>
122     <maven-surefire-plugin.version>2.22.2</maven-surefire-plugin.version>
123     <maven-jar-plugin.version>2.4</maven-jar-plugin.version>
124
125     <!-- parser-->
126     <sdc-tosca-parser.version>1.6.5</sdc-tosca-parser.version>
127
128     <!-- sonar -->
129     <sonar.projectVersion>${project.version}</sonar.projectVersion>
130     <sonar.nodejs.executable>${project.basedir}/node/node</sonar.nodejs.executable>
131     <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports
132     </sonar.surefire.reportsPath>
133     <sonar.javascript.lcov.reportPaths>${project.build.directory}/code-coverage/lcov.info
134     </sonar.javascript.lcov.reportPaths>
135     <sonar.coverage.jacoco.xmlReportPaths>
136       ${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml
137     </sonar.coverage.jacoco.xmlReportPaths>
138     <sonar.sourceEncoding>${project.build.sourceEncoding}</sonar.sourceEncoding>
139     <sonar.projectBaseDir>${project.basedir}</sonar.projectBaseDir>
140     <sonar.coverage.exclusions>pom.xml,src/test</sonar.coverage.exclusions>
141     <!--cassandra -->
142     <cassandra.driver.version>3.8.0</cassandra.driver.version>
143     <!-- maven central (Nexus) -->
144     <nexus.id.release>nexus</nexus.id.release>
145     <nexus.id.snapshot>nexus</nexus.id.snapshot>
146
147     <!--nexus-->
148     <npm.registry>https://nexus3.onap.org/repository/npm.public/</npm.registry>
149     <nexus.proxy>https://nexus.onap.org</nexus.proxy>
150     <sitePath>/content/sites/site/org/openecomp/sdc/${project.version}</sitePath>
151     <staging.profile.id>176c31dfe190a</staging.profile.id>
152     <!--maven-->
153     <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
154     <!--docker tags-->
155     <docker.tag>${project.version}-${maven.build.timestamp}</docker.tag>
156     <!--togglz version-->
157     <togglz.version>2.4.1.Final</togglz.version>
158
159     <joda.time.version>2.9.9</joda.time.version>
160
161     <!--sdc-security-utils-->
162     <security.util.lib.version>1.6.0</security.util.lib.version>
163     <!--jacoco-->
164     <jacoco.version>0.8.5</jacoco.version>
165
166     <java.driver.core.version>4.5.1</java.driver.core.version>
167
168   </properties>
169
170
171   <dependencyManagement>
172     <dependencies>
173       <dependency>
174         <groupId>com.google.guava</groupId>
175         <artifactId>guava</artifactId>
176         <version>${guava.version}</version>
177       </dependency>
178
179       <dependency>
180         <groupId>org.glassfish.jersey.ext</groupId>
181         <artifactId>jersey-bean-validation</artifactId>
182         <version>${jersey-bom.version}</version>
183       </dependency>
184
185       <dependency>
186         <groupId>org.glassfish.hk2.external</groupId>
187         <artifactId>asm-all-repackaged</artifactId>
188         <version>2.4.0</version>
189       </dependency>
190
191       <dependency>
192         <groupId>org.assertj</groupId>
193         <artifactId>assertj-core</artifactId>
194         <version>${assertj.version}</version>
195       </dependency>
196
197       <dependency>
198         <groupId>org.mockito</groupId>
199         <artifactId>mockito-core</artifactId>
200         <version>${mockito.version}</version>
201       </dependency>
202
203       <dependency>
204         <groupId>org.jmockit</groupId>
205         <artifactId>jmockit</artifactId>
206         <version>${jmockit.version}</version>
207       </dependency>
208
209       <dependency>
210         <groupId>com.github.tomakehurst</groupId>
211         <artifactId>wiremock-standalone</artifactId>
212         <version>${wire-mock.version}</version>
213       </dependency>
214
215       <dependency>
216         <groupId>io.cucumber</groupId>
217         <artifactId>cucumber-java</artifactId>
218         <version>${cucumber.version}</version>
219       </dependency>
220
221       <dependency>
222         <groupId>io.cucumber</groupId>
223         <artifactId>cucumber-junit</artifactId>
224         <version>${cucumber.version}</version>
225       </dependency>
226
227       <dependency>
228         <groupId>org.apache.commons</groupId>
229         <artifactId>commons-lang3</artifactId>
230         <version>${lang3.version}</version>
231       </dependency>
232       <dependency>
233         <groupId>org.codehaus.groovy</groupId>
234         <artifactId>groovy</artifactId>
235         <version>2.4.13</version>
236       </dependency>
237       <dependency>
238         <groupId>io.netty</groupId>
239         <artifactId>netty-all</artifactId>
240         <version>${netty.version}</version>
241       </dependency>
242       <dependency>
243         <groupId>io.netty</groupId>
244         <artifactId>netty-handler</artifactId>
245         <version>${netty.version}</version>
246       </dependency>
247     </dependencies>
248   </dependencyManagement>
249
250   <dependencies>
251     <dependency>
252       <!-- must be on the classpath -->
253       <groupId>org.jacoco</groupId>
254       <artifactId>org.jacoco.agent</artifactId>
255       <classifier>runtime</classifier>
256       <version>${jacoco.version}</version>
257       <scope>test</scope>
258     </dependency>
259   </dependencies>
260
261   <reporting>
262     <plugins>
263       <plugin>
264         <groupId>org.apache.maven.plugins</groupId>
265         <artifactId>maven-javadoc-plugin</artifactId>
266         <version>3.0.1</version>
267         <configuration>
268           <failOnError>false</failOnError>
269           <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
270           <docletArtifact>
271             <groupId>org.umlgraph</groupId>
272             <artifactId>umlgraph</artifactId>
273             <version>5.6</version>
274           </docletArtifact>
275           <useStandardDocletOptions>true</useStandardDocletOptions>
276         </configuration>
277       </plugin>
278     </plugins>
279   </reporting>
280
281   <build>
282     <pluginManagement>
283       <plugins>
284         <plugin>
285           <groupId>org.jacoco</groupId>
286           <artifactId>jacoco-maven-plugin</artifactId>
287           <version>${jacoco.version}</version>
288         </plugin>
289         <plugin>
290           <groupId>org.apache.maven.plugins</groupId>
291           <artifactId>maven-assembly-plugin</artifactId>
292           <version>3.1.0</version>
293           <configuration>
294             <tarLongFileMode>posix</tarLongFileMode>
295           </configuration>
296         </plugin>
297
298         <plugin>
299           <groupId>org.codehaus.mojo</groupId>
300           <artifactId>exec-maven-plugin</artifactId>
301           <version>1.6.0</version>
302         </plugin>
303         <plugin>
304           <groupId>org.sonarsource.scanner.maven</groupId>
305           <artifactId>sonar-maven-plugin</artifactId>
306           <version>3.7.0.1746</version>
307         </plugin>
308         <plugin>
309           <groupId>org.apache.maven.plugins</groupId>
310           <artifactId>maven-clean-plugin</artifactId>
311           <version>3.1.0</version>
312         </plugin>
313         <plugin>
314           <groupId>ru.yaal.maven</groupId>
315           <artifactId>write-text-files-maven-plugin</artifactId>
316           <version>1.1</version>
317         </plugin>
318         <plugin>
319           <groupId>org.codehaus.gmaven</groupId>
320           <artifactId>gmaven-plugin</artifactId>
321           <version>1.5</version>
322         </plugin>
323         <plugin>
324           <groupId>org.codehaus.mojo</groupId>
325           <artifactId>build-helper-maven-plugin</artifactId>
326           <version>3.0.0</version>
327         </plugin>
328         <plugin>
329           <groupId>org.apache.maven.plugins</groupId>
330           <artifactId>maven-deploy-plugin</artifactId>
331           <version>2.8.2</version>
332         </plugin>
333         <plugin>
334           <groupId>org.apache.maven.plugins</groupId>
335           <artifactId>maven-shade-plugin</artifactId>
336           <version>3.1.1</version>
337         </plugin>
338         <plugin>
339           <groupId>org.apache.maven.plugins</groupId>
340           <artifactId>maven-resources-plugin</artifactId>
341           <version>3.1.0</version>
342         </plugin>
343         <plugin>
344           <groupId>io.fabric8</groupId>
345           <artifactId>docker-maven-plugin</artifactId>
346           <version>0.26.0</version>
347         </plugin>
348         <plugin>
349           <groupId>org.apache.maven.plugins</groupId>
350           <artifactId>maven-war-plugin</artifactId>
351           <version>3.2.2</version>
352         </plugin>
353         <plugin>
354           <groupId>com.github.eirslett</groupId>
355           <artifactId>frontend-maven-plugin</artifactId>
356           <version>1.8.0</version>
357         </plugin>
358         <plugin>
359           <groupId>org.apache.maven.plugins</groupId>
360           <artifactId>maven-surefire-plugin</artifactId>
361           <version>${maven-surefire-plugin.version}</version>
362         </plugin>
363         <plugin>
364           <groupId>org.apache.maven.plugins</groupId>
365           <artifactId>maven-failsafe-plugin</artifactId>
366           <version>${maven-surefire-plugin.version}</version>
367         </plugin>
368         <plugin>
369           <groupId>org.apache.maven.plugins</groupId>
370           <artifactId>maven-compiler-plugin</artifactId>
371           <version>3.8.0</version>
372         </plugin>
373         <plugin>
374           <groupId>com.github.sylvainlaurent.maven</groupId>
375           <artifactId>yaml-json-validator-maven-plugin</artifactId>
376           <version>1.0.1</version>
377         </plugin>
378         <plugin>
379           <groupId>pl.project13.maven</groupId>
380           <artifactId>git-commit-id-plugin</artifactId>
381           <version>4.0.0</version>
382         </plugin>
383       </plugins>
384     </pluginManagement>
385
386     <plugins>
387       <plugin>
388         <artifactId>maven-checkstyle-plugin</artifactId>
389         <version>2.17</version>
390         <configuration>
391           <suppressionsLocation>checkstyle-suppressions.xml</suppressionsLocation>
392           <suppressionsFileExpression>checkstyle.suppressions.file</suppressionsFileExpression>
393         </configuration>
394       </plugin>
395       <!-- plugin for parsing the project version -->
396       <plugin>
397         <groupId>org.codehaus.mojo</groupId>
398         <artifactId>build-helper-maven-plugin</artifactId>
399         <executions>
400           <execution>
401             <id>parse-version</id>
402             <phase>pre-clean</phase>
403             <goals>
404               <goal>parse-version</goal>
405             </goals>
406           </execution>
407         </executions>
408       </plugin>
409
410       <!-- Java Code Coverage -->
411       <plugin>
412         <groupId>org.jacoco</groupId>
413         <artifactId>jacoco-maven-plugin</artifactId>
414         <inherited>false</inherited>
415         <executions>
416           <execution>
417             <id>default-instrument</id>
418             <goals>
419               <goal>instrument</goal>
420             </goals>
421           </execution>
422           <execution>
423             <id>default-restore-instrumented-classes</id>
424             <goals>
425               <goal>restore-instrumented-classes</goal>
426             </goals>
427           </execution>
428           <execution>
429             <id>default-report</id>
430             <goals>
431               <goal>report</goal>
432             </goals>
433             <configuration>
434               <dataFile>${project.build.directory}/jacoco.exec</dataFile>
435             </configuration>
436           </execution>
437         </executions>
438       </plugin>
439
440       <plugin>
441         <groupId>org.apache.maven.plugins</groupId>
442         <artifactId>maven-site-plugin</artifactId>
443         <version>3.7.1</version>
444         <dependencies>
445           <dependency>
446             <groupId>org.apache.maven.wagon</groupId>
447             <artifactId>wagon-webdav-jackrabbit</artifactId>
448             <version>3.0.0</version>
449           </dependency>
450         </dependencies>
451       </plugin>
452
453       <!-- Set the deployment repositories properties. -->
454       <plugin>
455         <groupId>org.codehaus.gmaven</groupId>
456         <artifactId>gmaven-plugin</artifactId>
457         <executions>
458           <execution>
459             <inherited>false</inherited>
460             <phase>integration-test</phase>
461             <goals>
462               <goal>execute</goal>
463             </goals>
464             <configuration>
465               <source>
466                 pom.properties['deploy.url'] =
467                   pom.version.contains('-SNAPSHOT') ?
468                     project.distributionManagement.snapshotRepository.url :
469                     project.distributionManagement.repository.url;
470                 pom.properties['repo.id'] = pom.version.contains('-SNAPSHOT') ?
471                   project.distributionManagement.snapshotRepository.id :
472                   project.distributionManagement.repository.id;
473               </source>
474             </configuration>
475           </execution>
476         </executions>
477       </plugin>
478       <plugin>
479         <groupId>org.apache.maven.plugins</groupId>
480         <artifactId>maven-compiler-plugin</artifactId>
481         <configuration>
482           <source>1.8</source>
483           <target>1.8</target>
484         </configuration>
485       </plugin>
486       <plugin>
487         <groupId>org.apache.maven.plugins</groupId>
488         <artifactId>maven-surefire-plugin</artifactId>
489         <configuration>
490           <printSummary>false</printSummary>
491           <systemPropertyVariables>
492             <jacoco-agent.destfile>${project.build.directory}/jacoco.exec</jacoco-agent.destfile>
493           </systemPropertyVariables>
494         </configuration>
495       </plugin>
496       <plugin>
497         <groupId>pl.project13.maven</groupId>
498         <artifactId>git-commit-id-plugin</artifactId>
499         <executions>
500           <execution>
501             <goals>
502               <goal>revision</goal>
503             </goals>
504           </execution>
505         </executions>
506         <configuration>
507           <generateGitPropertiesFile>true</generateGitPropertiesFile>
508           <generateGitPropertiesFilename>${project.build.outputDirectory}/META-INF/git.properties
509           </generateGitPropertiesFilename>
510           <failOnNoGitDirectory>true</failOnNoGitDirectory>
511           <verbose>false</verbose>
512           <includeOnlyProperties>
513             <includeOnlyProperty>git.build.version</includeOnlyProperty>
514             <includeOnlyProperty>git.build.time</includeOnlyProperty>
515             <includeOnlyProperty>git.commit.id</includeOnlyProperty>
516             <includeOnlyProperty>git.commit.time</includeOnlyProperty>
517             <includeOnlyProperty>git.commit.user.name</includeOnlyProperty>
518             <includeOnlyProperty>git.commit.user.email</includeOnlyProperty>
519             <includeOnlyProperty>git.commit.message.short</includeOnlyProperty>
520             <includeOnlyProperty>git.commit.message.full</includeOnlyProperty>
521           </includeOnlyProperties>
522           <gitDescribe>
523             <skip>true</skip>
524           </gitDescribe>
525           <useNativeGit>false</useNativeGit>
526         </configuration>
527       </plugin>
528     </plugins>
529   </build>
530
531   <profiles>
532     <profile>
533       <id>all</id>
534       <activation>
535         <activeByDefault>true</activeByDefault>
536       </activation>
537       <modules>
538         <module>onboarding</module>
539         <module>common-app-logging</module>
540         <module>common-app-api</module>
541         <module>common-be</module>
542         <module>catalog-dao</module>
543         <module>catalog-model</module>
544         <module>catalog-be</module>
545         <module>asdctool</module>
546         <module>catalog-ui</module>
547         <module>catalog-fe</module>
548         <module>test-apis-ci</module>
549         <module>ui-ci</module>
550         <module>sdc-os-chef</module>
551         <module>utils/webseal-simulator</module>
552       </modules>
553
554     </profile>
555
556     <profile>
557       <id>catalog</id>
558       <activation>
559         <activeByDefault>false</activeByDefault>
560       </activation>
561       <modules>
562         <module>common-app-logging</module>
563         <module>common-app-api</module>
564         <module>common-be</module>
565         <module>catalog-dao</module>
566         <module>catalog-model</module>
567         <module>catalog-be</module>
568         <module>asdctool</module>
569         <module>catalog-ui</module>
570         <module>catalog-fe</module>
571         <module>test-apis-ci</module>
572         <module>ui-ci</module>
573       </modules>
574     </profile>
575
576     <profile>
577       <id>onboarding</id>
578       <activation>
579         <activeByDefault>false</activeByDefault>
580       </activation>
581       <modules>
582         <module>onboarding</module>
583       </modules>
584     </profile>
585
586   </profiles>
587
588   <repositories>
589     <!-- LF repositories -->
590     <repository>
591       <id>ecomp-releases</id>
592       <name>Release Repository</name>
593       <url>${nexus.proxy}/content/repositories/releases/</url>
594     </repository>
595     <repository>
596       <id>ecomp-snapshots</id>
597       <name>Snapshots Repository</name>
598       <url>${nexus.proxy}/content/repositories/snapshots/</url>
599     </repository>
600     <repository>
601       <id>ecomp-public</id>
602       <name>Public Repository</name>
603       <url>${nexus.proxy}/content/repositories/public/</url>
604     </repository>
605     <!-- LF repositories END-->
606   </repositories>
607
608   <distributionManagement>
609     <repository>
610       <id>ecomp-releases</id>
611       <name>Release Repository</name>
612       <url>${nexus.proxy}/content/repositories/releases/</url>
613     </repository>
614     <snapshotRepository>
615       <id>ecomp-snapshots</id>
616       <name>Snapshot Repository</name>
617       <url>${nexus.proxy}/content/repositories/snapshots/</url>
618     </snapshotRepository>
619     <site>
620       <id>ecomp-site</id>
621       <url>dav:${nexus.proxy}${sitePath}</url>
622     </site>
623   </distributionManagement>
624 </project>
625