Tibor17 edited a comment on issue #196: [SUREFIRE-1585] Align JUnit Platform versions URL: https://github.com/apache/maven-surefire/pull/196#issuecomment-449625529 We should get back to our discussions in this fix after Xmas because I found some broken backwards compatibility in `junit-platform-launcher` and the default version of the launcher `1.3` must dynamically change upon user's dependencies. This fix may avoid the following issue (set the property `junit.platform.output.capture.stdout`): ``` # Created at 2018-12-22T19:31:38.419 java.lang.NoSuchMethodError: org.junit.platform.engine.ConfigurationParameters.get(Ljava/lang/String;Ljava/util/function/Function;)Ljava/util/Optional; at org.junit.platform.launcher.core.StreamInterceptingTestExecutionListener.create(StreamInterceptingTestExecutionListener.java:50) at org.junit.platform.launcher.core.DefaultLauncher.withInterceptedStreams(DefaultLauncher.java:198) 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) ```
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
