Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 351149 - Maven run launchers do not respect MAVEN_OPTS environment variable
Summary: Maven run launchers do not respect MAVEN_OPTS environment variable
Status: CLOSED INVALID
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: m2e (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-05 05:10 EDT by Ricardo Gladwell CLA
Modified: 2021-04-19 13:26 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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/