Skip to content

Commit f5041e6

Browse files
committed
Upgrade maven-surefire-plugin to version 3.0.0-M7
This is to fix the following error: ``` java.lang.NoSuchMethodError: 'org.junit.platform.engine.ConfigurationParameters org.junit.platform.launcher.TestPlan.getConfigurationParameters()' at org.springframework.kafka.test.junit.GlobalEmbeddedKafkaTestExecutionListener.testPlanExecutionStarted(GlobalEmbeddedKafkaTestExecutionListener.java:91) at org.junit.platform.launcher.core.TestExecutionListenerRegistry$CompositeTestExecutionListener.lambda$testPlanExecutionStarted$6(TestExecutionListenerRegistry.java:97) at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) at org.junit.platform.launcher.core.TestExecutionListenerRegistry.notifyTestExecutionListeners(TestExecutionListenerRegistry.java:59) at org.junit.platform.launcher.core.TestExecutionListenerRegistry.access$100(TestExecutionListenerRegistry.java:28) at org.junit.platform.launcher.core.TestExecutionListenerRegistry$CompositeTestExecutionListener.testPlanExecutionStarted(TestExecutionListenerRegistry.java:97) at org.junit.platform.launcher.core.DefaultLauncher.lambda$execute$6(DefaultLauncher.java:183) at org.junit.platform.launcher.core.DefaultLauncher.withInterceptedStreams(DefaultLauncher.java:202) at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:181) at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:128) at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invokeAllTests(JUnitPlatformProvider.java:150) at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invoke(JUnitPlatformProvider.java:124) at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) ``` `org.junit.platform.launcher.TestPlan.getConfigurationParameters()` was introduced in `junit-platform-launcher:1.8`, and `maven-surefire-plugin` upgraded to that version in `3.0.0-M6` [1]. [1]: https://issues.apache.org/jira/browse/SUREFIRE-1935
1 parent 4cb15ca commit f5041e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128

129129
<!-- plugin versions -->
130130
<maven-compiler-plugin.version>3.10.1</maven-compiler-plugin.version>
131-
<maven-surefire-plugin.version>2.22.2</maven-surefire-plugin.version>
131+
<maven-surefire-plugin.version>3.0.0-M7</maven-surefire-plugin.version>
132132
<maven-failsafe-plugin.version>2.22.2</maven-failsafe-plugin.version>
133133
<maven-javadoc-plugin.version>3.4.0</maven-javadoc-plugin.version>
134134
<maven-source-plugin.version>3.2.1</maven-source-plugin.version>

0 commit comments

Comments
 (0)