How to use older version of Maven?

Viewed 2954

I installed newer version of Maven on my Windows machine. But with newer version of Maven I am failing to build an existing app. Is it possible to define in application configurations to use an older version of maven? But the older one is not installed on my machine.

1 Answers

You can use maven-wrapper. For example if you want to build with version 3.5.4 do:

mvn -N io.takari:maven:0.7.7:wrapper -Dmaven=3.5.4

and then when you run:

mvnw package

Your project will be built with 3.5.4 version of maven.

Related