File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Maven Setup

 
Yogi Yadav
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 17624
39
Android Eclipse IDE Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try typing "%M2_HOME%\bin\mvn". That will test your PATH setting.
 
Bk Jacky
Ranch Hand
Posts: 74
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Set M2_REPO ENV variable also...Maven repository variable also
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic