@echo off
@REM Wrapper script to suppress Maven Guice warnings
@REM Redirects stderr warnings to nul while keeping actual errors

set MAVEN_OPTS=%MAVEN_OPTS% --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/jdk.internal.misc=ALL-UNNAMED

@REM Run maven and filter out Guice warnings
mvn %* 2>&1 | findstr /V /C:"sun.misc.Unsafe" /C:"com.google.inject" /C:"WARNING: package sun.misc"
