Reputation: 3149
Here is my set up on variables path.
C:\Program Files\J2EE\apache-maven-3.2.2
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\
WindowsPowerShell\v1.0\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-
Static;C:\Program Files (x86)\Windows Live\Shared;C:\Program
Files\Java\jdk1.6.0_45\bin;%MAVEN_HOME%\bin
Am I missing something?
Upvotes: 0
Views: 1053
Reputation: 23012
You have to set following Environment variables there may be some other tricks but I have followed the official way and it worked for me.
C:\Program Files\apache-maven-3.2.2
Upto Root Directory.%M2_HOME%\bin
C:\Program Files\Java\jdk1.7.0_45
Upto Root Directory.%M2%
(For Path you have to add it with existing Paths for Example: C:\Program Files\Java\jdk1.7.0_45\bin;%M2%;
)
Just open cmd
and write mvn
you should Run it as an Administrator If you have lower User Access Control
.
Upvotes: 3