Use maven-surefire-plugin 2.22.0 and junit-bom
Project: http://git-wip-us.apache.org/repos/asf/commons-text/repo Commit: http://git-wip-us.apache.org/repos/asf/commons-text/commit/9321f576 Tree: http://git-wip-us.apache.org/repos/asf/commons-text/tree/9321f576 Diff: http://git-wip-us.apache.org/repos/asf/commons-text/diff/9321f576 Branch: refs/heads/master Commit: 9321f576b85b5c15f2ea61630a19b0018f989d4c Parents: 98add39 Author: Pascal Schumacher <pascalschumac...@gmx.net> Authored: Wed Jun 27 09:14:25 2018 +0200 Committer: Pascal Schumacher <pascalschumac...@gmx.net> Committed: Wed Jun 27 09:16:22 2018 +0200 ---------------------------------------------------------------------- pom.xml | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-text/blob/9321f576/pom.xml ---------------------------------------------------------------------- diff --git a/pom.xml b/pom.xml index 6ce3182..a72e77c 100644 --- a/pom.xml +++ b/pom.xml @@ -48,7 +48,6 @@ <commons.scmPubCheckoutDirectory>site-content</commons.scmPubCheckoutDirectory> <junit.version>5.2.0</junit.version> - <junit.platform.version>1.2.0</junit.platform.version> <checkstyle.plugin.version>3.0.0</checkstyle.plugin.version> <checkstyle.version>8.10.1</checkstyle.version> @@ -63,6 +62,18 @@ <commons.releaseManagerKey>86fdc7e2a11262cb</commons.releaseManagerKey> </properties> + <dependencyManagement> + <dependencies> + <dependency> + <groupId>org.junit</groupId> + <artifactId>junit-bom</artifactId> + <version>${junit.version}</version> + <type>pom</type> + <scope>import</scope> + </dependency> + </dependencies> + </dependencyManagement> + <dependencies> <dependency> <groupId>org.apache.commons</groupId> @@ -73,19 +84,16 @@ <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter-engine</artifactId> - <version>${junit.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter-params</artifactId> - <version>${junit.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>org.junit.platform</groupId> <artifactId>junit-platform-launcher</artifactId> - <version>${junit.platform.version}</version> <scope>test</scope> </dependency> <dependency> @@ -117,13 +125,7 @@ <plugins> <plugin> <artifactId>maven-surefire-plugin</artifactId> - <dependencies> - <dependency> - <groupId>org.junit.platform</groupId> - <artifactId>junit-platform-surefire-provider</artifactId> - <version>${junit.platform.version}</version> - </dependency> - </dependencies> + <version>2.22.0</version> </plugin> <plugin> <artifactId>maven-checkstyle-plugin</artifactId>