Oussama L.
Oussama L.

Reputation: 1912

is there a way to selfupdate maven without re-downloading the newer version

Is there a way to update the maven distribution without re-downloading the newer version and fixing the new path in the environment path?

something like: mvn selfupdate (the macport style)

Upvotes: 3

Views: 646

Answers (1)

Mark O'Connor
Mark O'Connor

Reputation: 78011

No, but the Maven install is only a very thin bootstrap anyway.....

Maven downloads most of it's functionality as plugins. This normally happens when you run your first build and stores them in a local repository under:

$HOME/.m2/repository

So the good news is that when you install the new version of Maven, it will re-use the plugins already downloaded (unless newer ones are required).

Finally if you have concerns about performance it's an excellent idea to install a Maven repository manager. Software like Nexus can proxy and cache external repositories like Maven Central and will significantly improve your build performance (and enable off-line builds). Nexus is very lightweight, I run it on my laptop.

Upvotes: 4

Related Questions