This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Ant, Maven and Other Build Tools and the fly likes Maven Setup Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Reply Bookmark "Maven Setup" Watch "Maven Setup" New topic
Author

Maven Setup

Yogi Yadav
Greenhorn

Joined: May 25, 2005
Posts: 3
Hi ,

I am not able to run mvn -help or mvn -v command on the command line ..

This is what I have done :

User Variable
M2_HOME
C:\Softwares\Maven\apache-maven-2.0.9

PATH
%M2_HOME%\bin

JAVA_HOME is set and java -version is appearing correctly.

On the Command line when i do mvn -v or mvn -help , I am getting the
standard error , 'mvn' not recognised .

what should I do ?I think the settings are correct.

Please help !!

Thanks in Advance
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 14491
    
    7

try typing "%M2_HOME%\bin\mvn". That will test your PATH setting.


Customer surveys are for companies who didn't pay proper attention to begin with.
Bk Jacky
Ranch Hand

Joined: Jun 11, 2005
Posts: 74
Set M2_REPO ENV variable also...Maven repository variable also


SCJP1.4<br />SCWCD1.5<br />"Nothing is impossible"
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Maven Setup
 
Similar Threads
maven -- java.lang.OutOfMemoryError: Java heap space
Unable to install Maven
Eclipse 3.2 not be able to see MAVEN plug in at all
Maven and POM file
Unable to Get Maven Installed