Skip to content

Building with Java 21 fails due to ancient Antlr plugin #5249

@cmahnke

Description

@cmahnke

I know, that support for Java 17 is planned for version 7.0, see the blog post "January 2023 Releases" from 2023/01/15 - over a year ago.
Since Java 8 is EOL for non paying customers for about two years now and the current LTS is already Java 21, the following should be fixed in the development branch ASAP:

[ERROR] Failed to execute goal org.codehaus.mojo:antlr-maven-plugin:2.2:generate (default) on project exist-core: Execution default of goal org.codehaus.mojo:antlr-maven-plugin:2.2:generate failed: The Security Manager is deprecated and will be removed in a future release -> [Help 1]

Enviroment:

mvn --version
Apache Maven 3.9.6 (bc0240f3c744dd6b6ec2920b3cd08dcc295161ae)
Maven home: /opt/homebrew/Cellar/maven/3.9.6/libexec
Java version: 21.0.1, vendor: Oracle Corporation, runtime: /Users/cmahnke/.sdkman/candidates/java/21.0.1-graal
Default locale: de_DE, platform encoding: UTF-8
OS name: "mac os x", version: "14.2.1", arch: "aarch64", family: "mac"

The problem is introduced by the Maven plugin org.codehaus.mojo:antlr-maven-plugin:2.2 (which was released 2010) in the exist-core module. Even though there seems to be a fix. A clean solution would get rid of this unmaintained dependency of the build system and maybe switch to AntLR 4 in the process.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions