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 170845 - change some enviroment variables for running maven
Summary: change some enviroment variables for running maven
Status: RESOLVED WORKSFORME
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 6.x
Hardware: PC Linux
: P4 blocker (vote)
Assignee: Milos Kleint
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-24 23:51 UTC by sombriks
Modified: 2012-08-30 11:39 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 sombriks 2009-08-24 23:51:46 UTC
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.
Comment 1 Milos Kleint 2009-08-25 15:03:38 UTC
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
Comment 2 Antonin Nebuzelsky 2010-07-30 15:17:26 UTC
Reassigning to default owner.
Comment 3 Milos Kleint 2012-08-30 11:39:42 UTC
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.