Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 351149

Summary: Maven run launchers do not respect MAVEN_OPTS environment variable
Product: z_Archived Reporter: Ricardo Gladwell <ricardo>
Component: m2eAssignee: Project Inbox <m2e.core-inbox>
Status: CLOSED INVALID QA Contact:
Severity: enhancement    
Priority: P3 CC: igor
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Ricardo Gladwell CLA 2011-07-05 05:10:04 EDT
Build Identifier: 

The Maven run launchers do not respect MAVEN_OPTS environment variable used by the bash mvn scripts or mvn.bat scripts. This is the standard way to pass Java options to the JVM running the mvn shell so it would be nice if you didn't have to set it twice, once as an environment variable and again as the "${env_var:MAVEN_OPTS}" VM Argument in the JRE tab of the Maven run launcher configuration dialog.

Reproducible: Always

Steps to Reproduce:
1. Set MAVEN_OPTS environment variable
2. In Eclipse select Project -> Right Click -> Run As... -> Maven build

Should automatically add ${env_var:MAVEN_OPTS} to run launcher configuration.
Comment 1 Igor Fedorenko CLA 2013-09-28 23:49:14 EDT
closing old/stale bugreports
Comment 2 Denis Roy CLA 2021-04-19 13:26:28 EDT
Moved to https://github.com/eclipse-m2e/m2e-core/issues/