Johnny wrote: > http://maven.apache.org/download.html > says at the page bottom > Unix-based Operating Systems (Linux, Solaris and Mac OS X) > > 1. Extract the distribution archive to the directory you > wish to install > Maven 2.0.8. These instructions assume you chose > /usr/local/apache-maven-2.0.8 > . The directory apache-maven-2.0.8 will be created from the archive. > 2. Add the bin directory to your path, eg. export > PATH=/usr/local/apache-maven-2.0.8/bin:$PATH > 3. Make sure that JAVA_HOME is set to the location of your > JDK, eg. export > JAVA_HOME=/usr/java/jdk1.5.0_02 > 4. Run mvn --version to verify that it is correctly installed. > #4. Did not work. It took me hours to see why. > #2. Had to be changed to this 2. Add the bin directory to > your path, eg. > export PATH=/usr/local/apache-maven-2.0.8/apache-maven-2.0.8/bin:$PATH
Except that this syntax is bash specific. Not every Unix-like OS uses bash as default, nor does every user. To export a variable in ash you have to do: PATH=/usr/local/apache-maven-2.0.8/bin:$PATH export PATH Therefore the instructions contain an "eg." and the "export" is part of the instruction, not of the command line. There are way too many shells out there to describe them all. [snip] - Jörg --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
