Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Maven Setup

 
Yogi Yadav
Greenhorn
Posts: 3
  • 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: 18094
48
Android Eclipse IDE Linux
  • 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
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Set M2_REPO ENV variable also...Maven repository variable also
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic