[ https://issues.apache.org/jira/browse/MNG-8721?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Slawomir Jaranowski closed MNG-8721. ------------------------------------ Resolution: Duplicate It was resolved in MNG-8248 > Prints Warnings about JANSI when running on JDK 24 > -------------------------------------------------- > > Key: MNG-8721 > URL: https://issues.apache.org/jira/browse/MNG-8721 > Project: Maven > Issue Type: Bug > Components: Command Line > Affects Versions: 3.9.9 > Reporter: Markus Karg > Priority: Minor > > {{mvn -version}} results in the following warning on JDK 24: > > {{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:/Program%20Files/apache-maven-3.9.9/lib/jansi-2.4.1.jar|file:///C:/Program%20Files/apache-maven-3.9.9/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{}}}{{{}Apache Maven 3.9.9 > (8e8579a9e76f7d015ee5ec7bfcdc97d260186937){}}} > {{Maven home: C:\Program Files\apache-maven-3.9.9}} > {{Java version: 24.0.1, vendor: Eclipse Adoptium, runtime: C:\Program > Files\Eclipse Adoptium\jdk-24.0.1.9-hotspot}} > {{Default locale: de_DE, platform encoding: UTF-8}} > {{OS name: "windows 11", version: "10.0", arch: "amd64", family: "windows"}} > -- This message was sent by Atlassian Jira (v8.20.10#820010)