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.
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.
http://hg.netbeans.org/core-main/rev/3ac8ab87357d
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.