Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 451974

Summary: mvn launcher doesn't respect GENTOO_VM env. var.
Product: Gentoo Linux Reporter: Serkan Kaba (RETIRED) <serkan>
Component: [OLD] JavaAssignee: Java team <java>
Status: CONFIRMED ---    
Severity: normal Keywords: PATCH
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch to fox the issue

Description Serkan Kaba (RETIRED) gentoo-dev 2013-01-14 05:52:37 UTC
Current mvn3 (and possibly maven2) launcher doesn't respect the GENTOO_VM env. var. I'm attaching a patch for review. I'll commit if agreed although I can't figure out where this file comes from it's not identical to the one in ${FILESDIR}.
Comment 1 Serkan Kaba (RETIRED) gentoo-dev 2013-01-14 07:26:50 UTC
Created attachment 335566 [details, diff]
Patch to fox the issue
Comment 2 Ralph Sennhauser (RETIRED) gentoo-dev 2013-01-14 08:01:31 UTC
Will need to do something like that or GENTOO_VM won't be respected indeed. Good catch.

One thing that comes to mind looking at the is there probably should be a MAVEN_RESPECT_JAVA_HOME variable as there is for ant. The patch will make it otherwise hard to use user installed vms.

The file itself can be found in the maven tarball, it's upstreams script.