How do I get m2eclipse to recognize $M2_OPTS?

跟風遠走 提交于 2019-12-03 22:11:59

There is currently an issue about this, see MNGECLIPSE-1182, and a workaround:

... you can specify default JVM arguments in Window / Preferences / Java / Installed JREs.

But actually, this comment is confusing me:

[ It appears as though the current m2eclipse plugin still honors the M2_OPTS environment variable when using an external maven installation.

So I just defined both of them: MAVEN_OPTS for running mvn from command prompts and M2_OPTS for running maven from m2eclipse. E.g. set M2_OPTS=-Xmx256M -XX:MaxPermSize=128M

I'm using Maven 2.1.0 and Maven Integration for Eclipse version 0.9.9.200907071528 with Eclipse Galileo. ]

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!