History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: MEVENIDE-88
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Milos Kleint
Reporter: Travis Risner
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
mevenide

Improvement for docs on mevenide-NB install on OS X

Created: 25/Aug/04 09:47 PM   Updated: 09/Apr/05 03:25 AM
Component/s: mevenide-netbeans
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Original Estimate: 30 minutes
Original Estimate - 30 minutes
Remaining Estimate: 30 minutes
Remaining Estimate - 30 minutes
Time Spent: Not Specified
Remaining Estimate - 30 minutes

Environment:
OS = Mac OS X 10.3.5
NB = 4.0 Beta 1


 Description  « Hide
Please add to the install documentation for NetBeans that adding the file /etc/netbeans.conf with the content below will add runtime support without modifying the NetBeans file.

The string {your path to maven} will, of course, need to be replaced with the actual path of the reader's install.

#### File contents begins with the next line #####
# /etc/netbeans.conf - additional environment variables for netbeans

MAVEN_HOME=/{your path to maven}/maven-1.0
export MAVEN_HOME

PATH=$PATH:$MAVEN_HOME/bin
export PATH

        1. File contents ends with the line immediately above #####

Travis



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Milos Kleint - 29/Aug/04 03:51 AM
how is this related to OSX?
I think everyone who wants to run maven (either inside or outside the IDE) has to setup the MAVEN_HOME env. variable.
The PATH variable update should not be necessary IMHO, mevenide finds the executable based on the MAVEN_HOME variable. Or didn't it work for you?

Travis Risner - 30/Aug/04 01:49 AM
Hi Milos,

Setting the MAVEN_HOME env. variable in my $HOME/.profile does not set it for NB. It must be explicitly set in the NB startup script somewhere for OS X.

You are correct that only MAVEN_HOME is needed from within the NB IDE. It is not necessary to modify PATH.

From the command line (Terminal on OS X), all the usual Unix rules apply. If the maven script is not already in the path, then PATH must be modified. As expected, MAVEN_HOME must be exported in .profile or by a script.

Bottom line - OS X can look like Unix and walk like Unix, but any GUI program launched from the Finder skips any benefit from the user login script.

Travis


Travis Risner - 30/Aug/04 02:23 AM
Here is a far more elegant solution provided by Thomas Much on the Apple java-dev list.

"Download the preference pane "RCEnvironment" (http://www.rubicode.com/Software/RCEnvironment/)..."

The description of the tool says "RCEnvironment is a preference pane for MacOS X 10.1 or higher that allows editing of a user's ~/.MacOSX/environment.plist file. This file provides environment variable capability similar to Windows' Environment User Variables."

Travis


Milos Kleint - 30/Aug/04 02:43 AM
ok, thanks for the explanation. I wil add it as an entry to the FAQ.

Milos Kleint - 04/Sep/04 01:34 PM
ok, I've updated the faq and added entry about macosx install.

Milos Kleint - 09/Apr/05 03:25 AM
closing