Michael Osipov created MENFORCER-495: ----------------------------------------
Summary: Invalid use of JAVA_HOME environment variable Key: MENFORCER-495 URL: https://issues.apache.org/jira/browse/MENFORCER-495 Project: Maven Enforcer Plugin Issue Type: Bug Components: requireJavaVendor, requireJavaVersion Affects Versions: 3.4.1 Reporter: Michael Osipov I have received the following on Maven master: {noformat} [ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:3.4.1:enforce (enforce-bytecode-version) on project maven: [ERROR] Rule 0: org.apache.maven.enforcer.rules.version.RequireJavaVersion failed with message: [ERROR] Detected JDK version 1.8.0-392 (JAVA_HOME=/usr/local/openjdk8/jre) is not in the allowed range [11,). {noformat} I have never set {{JAVA_HOME}}. That is confusing. {{JAVA_HOME}} is not the same as {{java.home}}. Affected spots: https://github.com/search?q=repo%3Aapache%2Fmaven-enforcer%20java_home&type=code It should likely just print the value... -- This message was sent by Atlassian Jira (v8.20.10#820010)