Bukama commented on issue #3176:
URL: 
https://github.com/apache/maven-surefire/issues/3176#issuecomment-3864740872

   Can confirm that the surefire-Plugin (current master-branch) does not build 
on Windows 11 
   
   ```
   
   D:\Github\Maven\maven-surefire>mvn -V
   Apache Maven 3.9.12 (848fbb4bf2d427b72bdb2471c22fced7ebd9a7a1)
   Maven home: C:\apache-maven-3.9.12
   Java version: 25, vendor: Eclipse Adoptium, runtime: C:\JDK\Java25
   Default locale: de_DE, platform encoding: UTF-8
   OS name: "windows 11", version: "10.0", arch: "amd64", family: "windows"
   
   
   [INFO] --- surefire:3.5.2:test (default-test) @ surefire-extensions-api ---
   [INFO] Using configured provider 
org.apache.maven.shadefire.surefire.junitplatform.JUnitPlatformProvider
   [INFO]
   [INFO] -------------------------------------------------------
   [INFO]  T E S T S
   [INFO] -------------------------------------------------------
   [INFO] Running 
org.apache.maven.plugin.surefire.extensions.CommandlineExecutorTest
   WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
   WARNING: sun.misc.Unsafe::objectFieldOffset has been called by 
net.bytebuddy.dynamic.loading.ClassInjector$UsingUnsafe$Dispatcher$CreationAction
 
(file:/C:/Users/matth/.m2/repository/net/bytebuddy/byte-buddy/1.18.3/byte-buddy-1.18.3.jar)
   WARNING: Please consider reporting this to the maintainers of class 
net.bytebuddy.dynamic.loading.ClassInjector$UsingUnsafe$Dispatcher$CreationAction
   WARNING: sun.misc.Unsafe::objectFieldOffset will be removed in a future 
release
   [ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 
0.488 s <<< FAILURE! -- in 
org.apache.maven.plugin.surefire.extensions.CommandlineExecutorTest
   [ERROR] 
org.apache.maven.plugin.surefire.extensions.CommandlineExecutorTest.shouldExecuteNativeCommand
 -- Time elapsed: 0.472 s <<< FAILURE!
   Wanted but not invoked:
   eventHandler.handleEvent(contains("a.txt"));
   -> at 
org.apache.maven.plugin.surefire.extensions.CommandlineExecutorTest.shouldExecuteNativeCommand(CommandlineExecutorTest.java:93)
   Actually, there were zero interactions with this mock.
   
           at 
org.apache.maven.plugin.surefire.extensions.CommandlineExecutorTest.shouldExecuteNativeCommand(CommandlineExecutorTest.java:93)
           at java.base/java.lang.reflect.Method.invoke(Method.java:565)
           at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)
           at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)
   
   [INFO]
   [INFO] Results:
   [INFO]
   [ERROR] Failures:
   [ERROR]   CommandlineExecutorTest.shouldExecuteNativeCommand:93
   Wanted but not invoked:
   eventHandler.handleEvent(contains("a.txt"));
   -> at 
org.apache.maven.plugin.surefire.extensions.CommandlineExecutorTest.shouldExecuteNativeCommand(CommandlineExecutorTest.java:93)
   Actually, there were zero interactions with this mock.
   
   [INFO]
   [ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0
   [INFO]
   [INFO] 
------------------------------------------------------------------------
   [INFO] Reactor Summary for Apache Maven Surefire 3.5.5-SNAPSHOT:
   [INFO]
   [INFO] Apache Maven Surefire .............................. SUCCESS [  2.905 
s]
   [INFO] Surefire Shared Utils .............................. SUCCESS [  1.542 
s]
   [INFO] Surefire Logger API ................................ SUCCESS [  3.644 
s]
   [INFO] Surefire API ....................................... SUCCESS [ 15.296 
s]
   [INFO] Surefire Extensions API ............................ FAILURE [  2.822 
s]
   [INFO] Surefire Extensions SPI ............................ SKIPPED
   [INFO] Surefire Booter .................................... SKIPPED
   [INFO] Maven Surefire Test-Grouping Support ............... SKIPPED
   [INFO] Surefire Providers ................................. SKIPPED
   [INFO] Shared JUnit3 Provider Code ........................ SKIPPED
   [INFO] Shared Java 5 Provider Base ........................ SKIPPED
   [INFO] Shared JUnit4 Provider Code ........................ SKIPPED
   [INFO] Shared JUnit48 Provider Code ....................... SKIPPED
   [INFO] Surefire JUnit Runner .............................. SKIPPED
   [INFO] Surefire JUnit4 Runner ............................. SKIPPED
   [INFO] Maven Surefire Common .............................. SKIPPED
   [INFO] Surefire JUnitCore Runner .......................... SKIPPED
   [INFO] Surefire JUnit Platform Runner ..................... SKIPPED
   [INFO] Surefire TestNG Utils .............................. SKIPPED
   [INFO] Surefire TestNG Runner ............................. SKIPPED
   [INFO] ShadeFire JUnit5 Provider .......................... SKIPPED
   [INFO] Surefire Report Parser ............................. SKIPPED
   [INFO] Maven Surefire Plugin .............................. SKIPPED
   [INFO] Maven Failsafe Plugin .............................. SKIPPED
   [INFO] Maven Surefire Report Plugin ....................... SKIPPED
   [INFO] Maven Surefire Integration Tests ................... SKIPPED
   [INFO] 
------------------------------------------------------------------------
   [INFO] BUILD FAILURE
   [INFO] 
------------------------------------------------------------------------
   [INFO] Total time:  26.450 s
   [INFO] Finished at: 2026-02-07T16:53:03+01:00
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to