apache / apache/maven

[MNG-8374] mvn uses option --enable-native-access

Open
#10,255 4 comments 0 reactions 0 assignees View on GitHub
bug priority:major
Dominant language
Java
Stars
5.3k
Forks
3.1k
Avg merge
20h 42m
Merged PRs (30d)
297

Description

**[Jochen Wiedmann](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=jochen@apache.org)** opened **[MNG-8374](https://issues.apache.org/jira/browse/MNG-8374?redirect=false)** and commented

Sorry, if I am wrong, but it is my understanding that Maven 4 is still supposed

to work with Java 8 as the build JVM. Fact is, it doesn't, if I use the JAVA_HOME

variable to use Java 8 as the build JVM

 

{{$ JAVA_HOME=/usr/lib/jvm/java-1.8.0 /home/jwi/opt/mvn/4.0.0-beta-5/bin/mvn -V
Unrecognized option: --enable-native-access=ALL-UNNAMED
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
}}

---

**Affects:** 4.0.0-beta-5

**Backported to:** [wontfix-candidate](https://github.com/apache/maven/milestone/119?closed=1)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.