How to set the working directory of maven 3.8 wrapper mvnw.cmd?

83 Views Asked by At

Scope: Windows

How to set the working directory of maven 3.8 wrapper mvnw.cmd?

1

There are 1 best solutions below

0
On

In my experience it is MAVEN_USER_HOME e.g. set MAVEN_USER_HOME=T:\temp

One needs to set the variable before working with mvnw.cmd

If you are doing mvnw.cmd --version without setting the variable first, it will create plenty of files in %USERPROFILE%.

  • mvn = maven
  • mvnw = maven wrapper

Source: https://maven.apache.org/wrapper

It took me a while to find that peace of information.