Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: OutOfMemory when try to indent pom.xml without default size #10142

Closed
wants to merge 1 commit into from

Conversation

cwichoski
Copy link

If you add many modules and change the indentation size to 4, when newer dependencies are added to pom.xml the current indentation algorithm causes a loop that increase memory exponentially by each dependency, to avoid this we changed to use a XML formatter.

fix #10129

If you add many modules and change the indentation size to 4, when newer dependencies are added to pom.xml the current indentation algorithm causes a loop that increase memory exponentially by each dependency, to avoid this we changed to use a XML formatter.

fix jhipster#10129
@CLAassistant
Copy link

CLAassistant commented Jun 24, 2024

CLA assistant check
All committers have signed the CLA.

@murdos
Copy link
Contributor

murdos commented Jun 24, 2024

@cwichoski : thanks for reporting the issue, and for trying to fix it!
I've worked to improve the behavior of maven-model-helper, the library that we use to serialize pom.xml, so we can avoid rewriting afterwards the pom.xml: fabric8io/maven-model-helper#151
Once the new version is released, things should be fixed with #10143

@murdos murdos added area: bug 🐛 Something isn't working theme: maven and removed area: triage labels Jun 24, 2024
@murdos murdos closed this Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: bug 🐛 Something isn't working theme: maven
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: OutOfMemory when using Maven and identation size 4
3 participants