apache/maven · error

The property '{}' has been set using a JVM system property w

Error message

The property '{}' has been set using a JVM system property which is deprecated. The property can be passed as a Maven argument or in the Maven project configuration file,usually located at ${session.rootDirectory}/.mvn/maven-user.properties.

What it means

Error "The property '{}' has been set using a JVM system property which is deprecated. The property can be passed as a Maven argument or in the Maven project configuration file,usually located at ${session.rootDirectory}/.mvn/maven-user.properties." thrown in apache/maven.

Source

Thrown at compat/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java:951

            return extRealm;
        }

        return coreRealm;
    }

    private static <T> List<T> reverse(List<T> list) {
        List<T> copy = new ArrayList<>(list);
        Collections.reverse(copy);
        return copy;
    }

    private List<File> parseExtClasspath(CliRequest cliRequest) {
        String extClassPath = cliRequest.userProperties.getProperty(Constants.MAVEN_EXT_CLASS_PATH);
        if (extClassPath == null) {
            extClassPath = cliRequest.systemProperties.getProperty(Constants.MAVEN_EXT_CLASS_PATH);
            if (extClassPath != null) {
                slf4jLogger.warn(
                        "The property '{}' has been set using a JVM system property which is deprecated. "
                                + "The property can be passed as a Maven argument or in the Maven project configuration file,"
                                + "usually located at ${session.rootDirectory}/.mvn/maven-user.properties.",
                        Constants.MAVEN_EXT_CLASS_PATH);
            }
        }

        List<File> jars = new ArrayList<>();

        if (extClassPath != null && !extClassPath.isEmpty()) {
            for (String jar : extClassPath.split(File.pathSeparator)) {
                File file = ResolveFile.resolveFile(new File(jar), cliRequest.workingDirectory);

                slf4jLogger.debug("  included '{}'", file);

                jars.add(file);
            }
        }

View on GitHub (pinned to e4093d4e12)

When it happens

Trigger: Thrown at compat/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java:951 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of apache/maven@e4093d4e12 (2026-08-21). Data as JSON: /api/errors/bfd4a0a5b695643b. Report an issue: GitHub.