Skip to content

Commit

Permalink
[JAVA-1659] Upgraded Maven Surefire Plugin and JUnit versions
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
dupirefr committed Jun 1, 2020
1 parent bdebcac commit badd156
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 11 deletions.
3 changes: 2 additions & 1 deletion ddd-modules/infrastructure/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
3 changes: 2 additions & 1 deletion ddd-modules/mainapp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
3 changes: 2 additions & 1 deletion ddd-modules/ordercontext/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
34 changes: 28 additions & 6 deletions ddd-modules/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -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>
3 changes: 2 additions & 1 deletion ddd-modules/sharedkernel/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
3 changes: 2 additions & 1 deletion ddd-modules/shippingcontext/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit badd156

Please sign in to comment.