I have installed Maven2 as described in the steps found at:

http://maven.apache.org/download.html

I'm running an XP machine. I created the user variable and added the bin
path to the path variable. However, when I try to run the mvn --version
command to verify it is installed correctly I get the following error:

'mvn' is not recognized as an internal or external command

However, if I use the command as follows I get the expected result:

C:\>"C:\Program Files\apache-maven-2.0.9\bin\mvn" --version

Result:

Maven version: 2.0.9
Java version: 1.5.0_15
OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"

It is a pain to have to write out the entire path each time especially
knowing I should not have to do this. I have verified the paths and
variables are setup correctly and received this list when I ran the set
command:

M2_HOME=C:\Program Files\apache-maven-2.0.9
M2_REPO=C:\Documents and Settings\wcappoli\.m2\repository\bin
NUMBER_OF_PROCESSORS=2
OS=Windows_NT
Path=C:\Program Files\CA\SharedComponents\OutputManagement\;C:\Program
Files\CA\
SHARED~1\OUTPUT~1;C:\Program Files\CA\SHARED~1\CA_APPSW;C:\Program
Files\CA\Shar
edComponents\CA_APPSW\;C:\Program
Files\Perl\bin\;C:\WINDOWS\system32;C:\WINDOWS
;C:\WINDOWS\System32\Wbem;c:\Program Files\ATI
Technologies\ATI.ACE\Core-Static;
C:\Program Files\Utimaco\SafeGuard Easy\;C:\Program
Files\NetManage\Windows;%JAV
A_HOME%\bin; %GROOVY_HOME%/bin; %ANT_HOME%\bin;%M2_HOME%\bin

I also get this when I check for the M2_HOME path:

C:\>echo %M2_HOME%
C:\Program Files\apache-maven-2.0.9

Anybody have any ideas as to how to fix this?

Thanks

Bill Cappoli 
Intermediate Business Systems Analyst
Roc IT 
Phone - 1-800-969-8787 ext. 6795 
Fax - 1-800-644-6262 



------------------------------------------------------------------------------
This message may contain confidential or proprietary information intended only 
for the use of the addressee(s) named above or may contain
information that is legally privileged. If you are not the intended addressee, 
or the person responsible for delivering it to the intended
addressee, you are hereby notified that reading, disseminating, distributing or 
copying this message is strictly prohibited.
If you have received this message by mistake, please immediately notify us by 
replying to the message and delete the original message
and any copies immediately thereafter.


==============================================================================

Reply via email to