0

The Run As > Maven build... command in eclipse has a VM Arguments tab.

How can I force eclipse to always insert a default vmarg there during compilation? Eg -Xmx1g? Is that possible at all?

Sidenote: I don't want to give eclipse itself the -Xmx vmarg (like eclipse.ini). But the mvn compilation process!

membersound
  • 81,582
  • 193
  • 585
  • 1,120

2 Answers2

1

One way is to set that in the JRE VM args option in the IDE run configuration.

enter image description here

Quick thing , this can be set at a plugin level as well , https://maven.apache.org/plugins/maven-compiler-plugin/examples/compile-with-memory-enhancements.html which will then be used during run.

Ramachandran.A.G
  • 4,788
  • 1
  • 12
  • 24
0

Use the following process Right Click on Project > Run As > Run Configuration.

In the next window, select Maven Build in left and add new Configuration. In the same window, under the JRE tab, you can add on your default VM arguments.

KayV
  • 12,987
  • 11
  • 98
  • 148