[JAVA-1659] Upgraded Maven Surefire Plugin and JUnit versions

* Fixed sub-modules parent poms names

* Added relative paths to sub-modules poms

* Configured Maven Surefire Plugin so that it works with the dummy test

* Upgraded Maven Surefire Plugin version to 2.22.2

* Upgraded JUnit version to 5.6.2
This commit is contained in:
dupirefr 2020-06-01 11:11:12 +02:00
parent 00b67725ea
commit 3086da7d12
6 changed files with 38 additions and 11 deletions

View File

@ -12,8 +12,9 @@
<parent>
<groupId>com.baeldung.dddmodules</groupId>
<artifactId>dddmodules</artifactId>
<artifactId>ddd-modules</artifactId>
<version>1.0</version>
<relativePath>../</relativePath>
</parent>
<dependencies>

View File

@ -11,8 +11,9 @@
<parent>
<groupId>com.baeldung.dddmodules</groupId>
<artifactId>dddmodules</artifactId>
<artifactId>ddd-modules</artifactId>
<version>1.0</version>
<relativePath>../</relativePath>
</parent>
<dependencies>

View File

@ -11,8 +11,9 @@
<parent>
<groupId>com.baeldung.dddmodules</groupId>
<artifactId>dddmodules</artifactId>
<artifactId>ddd-modules</artifactId>
<version>1.0</version>
<relativePath>../</relativePath>
</parent>
<dependencies>

View File

@ -28,9 +28,15 @@
<dependencyManagement>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${junit.version}</version>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>${junit-jupiter.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
<version>${junit-jupiter.version}</version>
<scope>test</scope>
</dependency>
<dependency>
@ -56,15 +62,31 @@
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven-surefire-plugin.version}</version>
<configuration>
<forkCount>0</forkCount>
</configuration>
</plugin>
</plugins>
</build>
<properties>
<compiler.plugin.version>3.8.1</compiler.plugin.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<source.version>9</source.version>
<target.version>9</target.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<assertj-core.version>3.12.2</assertj-core.version>
<compiler.plugin.version>3.8.1</compiler.plugin.version>
<maven-surefire-plugin.version>2.22.2</maven-surefire-plugin.version>
<appmodules.version>1.0</appmodules.version>
<junit-jupiter.version>5.6.2</junit-jupiter.version>
<assertj-core.version>3.12.2</assertj-core.version>
</properties>
</project>

View File

@ -11,8 +11,9 @@
<parent>
<groupId>com.baeldung.dddmodules</groupId>
<artifactId>dddmodules</artifactId>
<artifactId>ddd-modules</artifactId>
<version>1.0</version>
<relativePath>../</relativePath>
</parent>
<build>

View File

@ -11,8 +11,9 @@
<parent>
<groupId>com.baeldung.dddmodules</groupId>
<artifactId>dddmodules</artifactId>
<artifactId>ddd-modules</artifactId>
<version>1.0</version>
<relativePath>../</relativePath>
</parent>
<dependencies>