$ mvn clean install WARNING: A restricted method in java.lang.System has been called WARNING: java.lang.System::load has been called by org.fusesource.jansi.internal.JansiLoader in an unnamed module (file:/C:/Users/joerg/projects/mmm/software/mvn/lib/jansi-2.4.1.jar) WARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for callers in this module WARNING: Restricted methods will be blocked in a future release unless native access is enabled WARNING: A terminally deprecated method in sun.misc.Unsafe has been called WARNING: sun.misc.Unsafe::objectFieldOffset has been called by com.google.common.util.concurrent.AbstractFuture$UnsafeAtomicHelper (file:/C:/Users/joerg/projects/mmm/software/mvn/lib/guava-33.2.1-jre.jar) WARNING: Please consider reporting this to the maintainers of class com.google.common.util.concurrent.AbstractFuture$UnsafeAtomicHelper WARNING: sun.misc.Unsafe::objectFieldOffset will be removed in a future release [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] parent [pom] [INFO] service-loader [jar] [INFO] use-service [jar] [INFO] [INFO] --------------------------< jdk.bugs:parent >--------------------------- [INFO] Building parent 1.0.0-SNAPSHOT [1/3] [INFO] from pom.xml [INFO] --------------------------------[ pom ]--------------------------------- [INFO] [INFO] --- clean:3.2.0:clean (default-clean) @ parent --- [INFO] [INFO] --- install:3.1.2:install (default-install) @ parent --- [INFO] Installing C:\Users\joerg\projects\mmm\workspaces\main\jdk-bugs\pom.xml to C:\Users\joerg\projects\mmm\conf\mvn\repository\jdk\bugs\parent\1.0.0-SNAPSHOT\parent-1.0.0-SNAPSHOT.pom [INFO] [INFO] ----------------------< jdk.bugs:service-loader >----------------------- [INFO] Building service-loader 1.0.0-SNAPSHOT [2/3] [INFO] from service-loader\pom.xml [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- clean:3.2.0:clean (default-clean) @ service-loader --- [INFO] Deleting C:\Users\joerg\projects\mmm\workspaces\main\jdk-bugs\service-loader\target [INFO] [INFO] --- resources:3.3.1:resources (default-resources) @ service-loader --- [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] Copying 0 resource from src\main\resources to target\classes [INFO] [INFO] --- compiler:3.13.0:compile (default-compile) @ service-loader --- [INFO] Recompiling the module because of changed source code. [WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent! [INFO] Compiling 4 source files with javac [debug release 21] to target\classes [INFO] [INFO] --- resources:3.3.1:testResources (default-testResources) @ service-loader --- [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] Copying 0 resource from src\test\resources to target\test-classes [INFO] [INFO] --- compiler:3.13.0:testCompile (default-testCompile) @ service-loader --- [INFO] Recompiling the module because of changed dependency. [WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent! [INFO] Compiling 1 source file with javac [debug release 21 module-path] to target\test-classes [INFO] [INFO] --- surefire:3.2.5:test (default-test) @ service-loader --- [INFO] Using auto detected provider org.apache.maven.surefire.junitplatform.JUnitPlatformProvider [INFO] [INFO] ------------------------------------------------------- [INFO] T E S T S [INFO] ------------------------------------------------------- [INFO] Running jdk.bugs.ServiceTest [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.123 s -- in jdk.bugs.ServiceTest [INFO] [INFO] Results: [INFO] [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0 [INFO] [INFO] [INFO] --- jar:3.4.1:jar (default-jar) @ service-loader --- [INFO] Building jar: C:\Users\joerg\projects\mmm\workspaces\main\jdk-bugs\service-loader\target\service-loader-1.0.0-SNAPSHOT.jar [INFO] [INFO] --- install:3.1.2:install (default-install) @ service-loader --- [INFO] Installing C:\Users\joerg\projects\mmm\workspaces\main\jdk-bugs\service-loader\pom.xml to C:\Users\joerg\projects\mmm\conf\mvn\repository\jdk\bugs\service-loader\1.0.0-SNAPSHOT\service-loader-1.0.0-SNAPSHOT.pom [INFO] Installing C:\Users\joerg\projects\mmm\workspaces\main\jdk-bugs\service-loader\target\service-loader-1.0.0-SNAPSHOT.jar to C:\Users\joerg\projects\mmm\conf\mvn\repository\jdk\bugs\service-loader\1.0.0-SNAPSHOT\service-loader-1.0.0-SNAPSHOT.jar [INFO] [INFO] ------------------------< jdk.bugs:use-service >------------------------ [INFO] Building use-service 1.0.0-SNAPSHOT [3/3] [INFO] from use-service\pom.xml [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- clean:3.2.0:clean (default-clean) @ use-service --- [INFO] Deleting C:\Users\joerg\projects\mmm\workspaces\main\jdk-bugs\use-service\target [INFO] [INFO] --- resources:3.3.1:resources (default-resources) @ use-service --- [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] Copying 0 resource from src\main\resources to target\classes [INFO] [INFO] --- compiler:3.13.0:compile (default-compile) @ use-service --- [INFO] Recompiling the module because of changed dependency. [WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent! [INFO] Compiling 1 source file with javac [debug release 25 module-path] to target\classes [INFO] [INFO] --- resources:3.3.1:testResources (default-testResources) @ use-service --- [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] Copying 0 resource from src\test\resources to target\test-classes [INFO] [INFO] --- compiler:3.13.0:testCompile (default-testCompile) @ use-service --- [INFO] Recompiling the module because of changed dependency. [WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent! [INFO] Compiling 1 source file with javac [debug release 25 module-path] to target\test-classes [INFO] [INFO] --- surefire:3.2.5:test (default-test) @ use-service --- [INFO] Using auto detected provider org.apache.maven.surefire.junitplatform.JUnitPlatformProvider [INFO] [INFO] ------------------------------------------------------- [INFO] T E S T S [INFO] ------------------------------------------------------- [INFO] Running jdk.bugs.using.ServiceTest [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.134 s <<< FAILURE! -- in jdk.bugs.using.ServiceTest [ERROR] jdk.bugs.using.ServiceTest.test -- Time elapsed: 0.077 s <<< ERROR! java.lang.NullPointerException: Cannot invoke "jdk.bugs.Service.sayHi()" because "service" is null at jdk.bugs.using.ServiceTest.test(ServiceTest.java:15) [INFO] [INFO] Results: [INFO] [ERROR] Errors: [ERROR] ServiceTest.test:15 NullPointer Cannot invoke "jdk.bugs.Service.sayHi()" because "service" is null [INFO] [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0 [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary for parent 1.0.0-SNAPSHOT: [INFO] [INFO] parent ............................................. SUCCESS [ 0.568 s] [INFO] service-loader ..................................... SUCCESS [ 6.086 s] [INFO] use-service ........................................ FAILURE [ 2.096 s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 9.010 s [INFO] Finished at: 2025-11-09T22:45:18+01:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.2.5:test (default-test) on project use-service: [ERROR] [ERROR] Please refer to C:\Users\joerg\projects\mmm\workspaces\main\jdk-bugs\use-service\target\surefire-reports for the individual test results. [ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream. [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn -rf :use-service