I want to use Maven for my project.
In my office computer , I don't have the Admin privilege . Hence I am not able to set the "System Variable". I have access only to "User Variable" where I can set only the Java_Home.
Can I use Maven without adding the M2_Home and editing the Path variable ?
It depends if you are using it inside an ide or building project from terminal.
If you are building using CLI you can invoke maven using the full path for instance :
/home/<your_folder>/tools/apache-maven-3.5.0/bin/mvn clean install from your project path
You could set the M2_HOME user variable even you are not an administrator, and the variable path is unnecessary, you could easily do the same task referencing the maven fullpath bin directory.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With