Maven Wrapper

Maven is a commonly used build tool, but Maven versions and plugins don't work so well together, and sometimes you have to switch to a slightly older version to keep everything working.

Gradle provides a Wrapper, which can solve the problem of version switching very well. Of course, more importantly, Gradle does not need to be pre-installed.

Although Maven does not have an official Wrapper, there is a third-party Wrapper that can be used.

The installation is very simple  , the installation is completed as followsmvn -N io.takari:maven:wrapper 


You can use it directly  , it will automatically download the latest version to execute../mvnw clean install 

run

If you need to specify the version, regenerate the mvnw file and run it

mvn -N io.takari:maven:wrapper -Dmaven=3.1.0
./mvnw clean install


Maven is a commonly used build tool, but Maven versions and plugins don't work so well together, and sometimes you have to switch to a slightly older version to keep everything working.

Gradle provides a Wrapper, which can solve the problem of version switching very well. Of course, more importantly, Gradle does not need to be pre-installed.

Although Maven does not have an official Wrapper, there is a third-party Wrapper that can be used.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325490432&siteId=291194637