Skip to content

Commit badd156

Browse files
author
dupirefr
committed
[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
1 parent bdebcac commit badd156

6 files changed

Lines changed: 38 additions & 11 deletions

File tree

ddd-modules/infrastructure/pom.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@
1212

1313
<parent>
1414
<groupId>com.baeldung.dddmodules</groupId>
15-
<artifactId>dddmodules</artifactId>
15+
<artifactId>ddd-modules</artifactId>
1616
<version>1.0</version>
17+
<relativePath>../</relativePath>
1718
</parent>
1819

1920
<dependencies>

ddd-modules/mainapp/pom.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@
1111

1212
<parent>
1313
<groupId>com.baeldung.dddmodules</groupId>
14-
<artifactId>dddmodules</artifactId>
14+
<artifactId>ddd-modules</artifactId>
1515
<version>1.0</version>
16+
<relativePath>../</relativePath>
1617
</parent>
1718

1819
<dependencies>

ddd-modules/ordercontext/pom.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@
1111

1212
<parent>
1313
<groupId>com.baeldung.dddmodules</groupId>
14-
<artifactId>dddmodules</artifactId>
14+
<artifactId>ddd-modules</artifactId>
1515
<version>1.0</version>
16+
<relativePath>../</relativePath>
1617
</parent>
1718

1819
<dependencies>

ddd-modules/pom.xml

Lines changed: 28 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,15 @@
2828
<dependencyManagement>
2929
<dependencies>
3030
<dependency>
31-
<groupId>junit</groupId>
32-
<artifactId>junit</artifactId>
33-
<version>${junit.version}</version>
31+
<groupId>org.junit.jupiter</groupId>
32+
<artifactId>junit-jupiter</artifactId>
33+
<version>${junit-jupiter.version}</version>
34+
<scope>test</scope>
35+
</dependency>
36+
<dependency>
37+
<groupId>org.junit.vintage</groupId>
38+
<artifactId>junit-vintage-engine</artifactId>
39+
<version>${junit-jupiter.version}</version>
3440
<scope>test</scope>
3541
</dependency>
3642
<dependency>
@@ -56,15 +62,31 @@
5662
</plugin>
5763
</plugins>
5864
</pluginManagement>
65+
<plugins>
66+
<plugin>
67+
<groupId>org.apache.maven.plugins</groupId>
68+
<artifactId>maven-surefire-plugin</artifactId>
69+
<version>${maven-surefire-plugin.version}</version>
70+
<configuration>
71+
<forkCount>0</forkCount>
72+
</configuration>
73+
</plugin>
74+
</plugins>
5975
</build>
6076

6177
<properties>
62-
<compiler.plugin.version>3.8.1</compiler.plugin.version>
78+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
79+
6380
<source.version>9</source.version>
6481
<target.version>9</target.version>
65-
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
66-
<assertj-core.version>3.12.2</assertj-core.version>
82+
83+
<compiler.plugin.version>3.8.1</compiler.plugin.version>
84+
<maven-surefire-plugin.version>2.22.2</maven-surefire-plugin.version>
85+
6786
<appmodules.version>1.0</appmodules.version>
87+
88+
<junit-jupiter.version>5.6.2</junit-jupiter.version>
89+
<assertj-core.version>3.12.2</assertj-core.version>
6890
</properties>
6991

7092
</project>

ddd-modules/sharedkernel/pom.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@
1111

1212
<parent>
1313
<groupId>com.baeldung.dddmodules</groupId>
14-
<artifactId>dddmodules</artifactId>
14+
<artifactId>ddd-modules</artifactId>
1515
<version>1.0</version>
16+
<relativePath>../</relativePath>
1617
</parent>
1718

1819
<build>

ddd-modules/shippingcontext/pom.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@
1111

1212
<parent>
1313
<groupId>com.baeldung.dddmodules</groupId>
14-
<artifactId>dddmodules</artifactId>
14+
<artifactId>ddd-modules</artifactId>
1515
<version>1.0</version>
16+
<relativePath>../</relativePath>
1617
</parent>
1718

1819
<dependencies>

0 commit comments

Comments
 (0)