Skip to content

OOM with maven-archetype-plugin 3.4.1 + java 25 #988

@lalmeras

Description

@lalmeras

Affected version

3.4.1

Bug description

archetype:create-from-project may trigger OOM / java heap space error when used with java 25, where the same setup with java 17 is fine. This is not a near-the-max-threshold issue. It may be needed to double Xmx (1500m -> 3000m) to get rid of the OOM.

Memory threshold to trigger the issue may vary between environment (for my use-case, CI triggers with Xmx1500m, and my desktop needed a limit as low as 700m to trigger the same issue).

Error is triggered during maven-archetype-plugin:jar goal.

From my investigation, it seems caused by this plexus-archiver issue codehaus-plexus/plexus-archiver#399. Affected versions are plexus-archiver 4.10.1-4.10.3.

It is fixed with codehaus-plexus/plexus-archiver#408 (4.10.4).

Others encounter the same problem : related issue on maven-archiver -> apache/maven-archiver#334

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions