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.
see, there are some bug that forces me to point my JAVA_HOME to /usr/lib/java/jre instead just /usr/lib/java; if netbeans offers me the chance to customize environment vars i could pass that maven 2.2.1 bug. edit env properties is a good more global idea too.
you should be able to do that on single executions (in project's properties Actions panel) by passing env.JAVA_HOME=.... property. (there is a Add> button that adds the prop in proper format) but you will have to pass that for all actions related to the project.. the global options in Tools/Options won't cut it.. I'd suggest using older maven until it's fixed on maven side
Reassigning to default owner.
since some time already project Properties dialog allow selecting JDK for the project under Compile/Build panel. The selected JDK is then used for all build executions.