Konrad Windszus created SUREFIRE-2240: -----------------------------------------
Summary: Using JUnit BOM prevents upgrading the engine version Key: SUREFIRE-2240 URL: https://issues.apache.org/jira/browse/SUREFIRE-2240 Project: Maven Surefire Issue Type: Bug Components: JUnit 5.x support Reporter: Konrad Windszus The change being introduced in SUREFIRE-2177 prevents updating the {{junit-jupiter-engine}} through explicit plugin dependencies as outlined in https://maven.apache.org/surefire/maven-surefire-plugin/examples/junit-platform.html#select-engine-and-use-multiple-apis: {code} <plugin> <artifactId>maven-surefire-plugin</artifactId> <dependencies> <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter-engine</artifactId> <version>5.10.2</version> </dependency> </dependencies> </plugin> {code} The following classpath is then used in m-surefire-p {code} [INFO] --- surefire:3.2.2:test (default-test) @ doxia-converter --- [DEBUG] Dependency collection stats {ConflictMarker.analyzeTime=62708, ConflictMarker.markTime=28792, ConflictMarker.nodeCount=94, ConflictIdSorter.graphTime=19292, ConflictIdSorter.topsortTime=17458, ConflictIdSorter.conflictIdCount=48, ConflictIdSorter.conflictIdCycleCount=0, ConflictResolver.totalTime=382250, ConflictResolver.conflictItemCount=92, DfDependencyCollector.collectTime=35588250, DfDependencyCollector.transformTime=530209} [DEBUG] org.apache.maven.plugins:maven-surefire-plugin:jar:3.2.2 [DEBUG] org.junit.jupiter:junit-jupiter-engine:jar:5.10.2:runtime [DEBUG] org.junit.platform:junit-platform-engine:jar:1.9.3:runtime (version managed from default) ... {code} The managed {{junit-platform-engine}} version is incompatible. For this reason there shouldn't be any depMgmt used in surefire. -- This message was sent by Atlassian Jira (v8.20.10#820010)