This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 216284 - "Run Maven": "Add >" menu should include JDK selection
Summary: "Run Maven": "Add >" menu should include JDK selection
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: Milos Kleint
URL:
Keywords: USABILITY
Depends on:
Blocks:
 
Reported: 2012-08-01 23:06 UTC by Jesse Glick
Modified: 2012-08-04 02:32 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2012-08-01 23:06:07 UTC
Sometimes you normally build a project with one Java version (perhaps just the default JDK) but on occasion wish to run a Maven execution (such as tests) using a different JDK, without bothering to switch the project's JDK permanently and thus write a nb-configuration.xml.

This is easily accomplished by adding Env.JAVA_HOME=<path> to the Properties text area of the Run Maven dialog, but that fact is not apparent. Suggest that the Add menu include a "Use JDK >" submenu with a list of registered JDKs, defining this envvar to the corresponding path for you.
Comment 1 Milos Kleint 2012-08-03 06:43:50 UTC
http://hg.netbeans.org/core-main/rev/3ac8ab87357d
Comment 2 Quality Engineering 2012-08-04 02:32:25 UTC
Integrated into 'main-golden', will be available in build *201208040001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/3ac8ab87357d
User: Milos Kleint <mkleint@netbeans.org>
Log: #216284 allow adding the Env.JAVA_HOME property with predefined values based on currently installed platforms.