Maven easyb settings for java plugins?

I tried resizing the heap for the maven easyb plugin http://www.easyb.org/maven-easyb-plugin/ . In my easyb test, I added standard code to print heap size using the code Runtime.getFreeMemory () and Runtime.getTotalMemory ().

I tried to set MAVEN_OPTS = -Xmx1024m -Xms1024m, and also install maven selects the Maven surefire plugin. Now, when I run the same class from Junit, I see how getTotalMemory () displays the number to close 1Gig, but when the same classes are called from the easyb plugin they do not reflect the size of the memory.

There should be no way to pass the JVM opts to the maven easyb plugin when it runs these easyb tests? At the very least, it should at least select the MAVEN_OPTS settings from the environment.

Has anyone encountered such problems? (Search in this group archive does not show much)

+3
source share
2 answers

Try to identify

JAVA_OPTS=-Xmx1024m -Xms1024m

Perhaps MAVEN_OPTS is not even required. I guess MAVEN is deploying a new JVM inside to start easyb. And probably it is reasonable for MAVEN to separate its own JVM settings from the settings for the JVM that it runs.

0
source

This is problem 77 : Improvement: specify the maximum memory for the maven plugin, which is still "New" but has a patch (with tests) attached. So grab the sources, fix them and rebuild the plugin.

0
source

Source: https://habr.com/ru/post/1735129/


All Articles