You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "lalmeras (via GitHub)" <gi...@apache.org> on 2026/04/20 17:42:14 UTC
[I] OOM with maven-archetype-plugin 3.4.1 + java 25 [maven-archetype]
lalmeras opened a new issue, #988:
URL: https://github.com/apache/maven-archetype/issues/988
### 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 https://github.com/codehaus-plexus/plexus-archiver/issues/399. Affected versions are plexus-archiver 4.10.1-4.10.3.
It is fixed with https://github.com/codehaus-plexus/plexus-archiver/pull/408 (4.10.4).
Others encounter the same problem : related issue on maven-archiver -> https://github.com/apache/maven-archiver/issues/334
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] OOM with maven-archetype-plugin 3.4.1 + java 25 [maven-archetype]
Posted by "lalmeras (via GitHub)" <gi...@apache.org>.
lalmeras commented on issue #988:
URL: https://github.com/apache/maven-archetype/issues/988#issuecomment-4283038921
The current 3.4.2-SNAPSHOT fixes the issue, as it updates plexus-archiver dependency (4.11.0).
Is there a maven-archetype-plugin's release planned ?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] OOM with maven-archetype-plugin 3.4.1 + java 25 [maven-archetype]
Posted by "lalmeras (via GitHub)" <gi...@apache.org>.
lalmeras commented on issue #988:
URL: https://github.com/apache/maven-archetype/issues/988#issuecomment-4283074533
I tried to fix the issue by overriding maven-archetype-plugin dependencies in my pom.xml ; it is not possible as the `archetype:jar` goal is launched from a sub-maven command (InvocationRequest) with a generated pom.xml (type=archetype-packaging).
So my pom.xml plugins/pluginManagement customization are ignored and I cannot override the plexus-archiver version.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org