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

crashing out of heapspace #4

Open
ghost opened this issue Jun 24, 2013 · 1 comment
Open

crashing out of heapspace #4

ghost opened this issue Jun 24, 2013 · 1 comment

Comments

@ghost
Copy link

ghost commented Jun 24, 2013

I set env variable MAVEN_OPTS to "-Xmx8192m" and it still crashes on my project with "java.lang.OutOfMemoryError: Java heap space". This project uses This project 1024m for maven.compiler.maxmem and javadocs and those plugins do fail without those settings. So I don't think the macker-maven-plugin is honoring the heap space set via MAVEN_OPTS.

@BenRomberg
Copy link
Contributor

As Macker is using the GPL, we have to invoke it in a separate process and gather the outputs. Looking into the code, there seems to be an undocumented maxmem parameter that could help you (see https://github.com/andrena/macker-maven-plugin/blob/master/src/main/java/de/andrena/tools/macker/plugin/ForkedMacker.java line 82). Try setting it to something like "8192m" and see if it works. If it does, I'll include it in the parameter documentation, along with the identified parameters from #3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant