KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I am trying to set up some path using environment variable. I added an environment variable "MAVEN_HOME" with the value "C:\maven". Then in the path I added "%MAVEN_HOME%\bin;...rest". When I type "echo $MAVEN_HOME%" I get the correct "C:\maven" printed on the screen. But when I type "mvn" which is a batch file in the "bin" directory, it can't find it. So, I manually added the entire path in PATH. "C:\maven\bin;...rest" and it was able to find "mvn" and execute it. Could someone help me what I did wrong?
Tags (comma-separated)
Save Edits
Cancel