Friday, October 21, 2016

Using a previous version of Maven in Ubuntu

There are some issues in the current version of Maven (v3.3.9) that were giving me some problems with a plugin that is in use. I needed to revert to v3.3.3 under Ubuntu. Instead of uninstalling maven and manually installing the previous version, I can take advantage of Debian's update-alternatives infrastructure which is included with Ubuntu. This lets me install both versions that I need and switch between them via a simple command. The instructions for installing the different version of maven are well laid out here.

After following those instructions, a simple "sudo update-alternatives --config mvn" allows me to pick the version which will be used with the "mvn" command and avoid my version-based troubles.

No comments:

Post a Comment