简体   繁体   English

Eclipse Indigo M2E在外部安装中忽略MAVEN_OPTS

[英]Eclipse Indigo M2E Ignores MAVEN_OPTS in external installation

I'm using m2e 1.0.0.20110607-2117 bundled with Eclipse Indigo. 我正在使用与Eclipse Indigo捆绑在一起的m2e 1.0.0.20110607-2117。 I'm referencing external maven installation from Preferences -> Maven -> Installations. 我从首选项-> Maven->安装引用外部Maven安装。 External maven installation version is 3.0.4. 外部Maven安装版本为3.0.4。

I'm experiencing locale problems because my locale is Turkish. 我的语言环境是土耳其语,因此遇到语言环境问题。 So I've modified MAVEN_OPTS in mvn.bat file in this external installation. 因此,在此外部安装中,我已经在mvn.bat文件中修改了MAVEN_OPTS。 When I run mvn from command line, maven sees this maven_opts but Indigo doesn't. 当我从命令行运行mvn时,maven看到了这个maven_opts,但是Indigo没有。 How can I pass maven_opts to m2e? 如何将maven_opts传递给m2e? Is there any way to set a property that all predefined maven run configurations in eclipse like "Maven build", "Maven clean", "Maven install" etc. use? 有什么方法可以设置属性以供Eclipse中所有预定义的Maven运行配置(例如“ Maven build”,“ Maven clean”,“ Maven install”等)使用?

EDIT: Also setting MAVEN_OPTS in system path doesn't help. 编辑:在系统路径中设置MAVEN_OPTS也无济于事。

This is the wrong way. 这是错误的方式。 You can create a file called mavenrc_pre.bat on windows or .mavenrc in your home folder on linux or windows. 您可以在Windows上创建一个名为mavenrc_pre.bat的文件,或者在Linux或Windows上的主文件夹中创建一个.mavenrc。 Currently i'm not sure if m2e honours the settgins in the mavenrc file ...you have to check that. 目前我不确定m2e是否尊重mavenrc文件中的settgins ...您必须检查一下。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM