Reputation: 1292
I am trying to run following command line
mvn clean package -DskipTests
Reference: https://github.com/forcedotcom/dataloader/
I am getting this error message:
BUILD ERROR
Error resolving version for 'org.apache.maven.plugins:maven-shade-plugin':
Plugin requires Maven version 3.0
How do I install Maven version 3.0 or is there way to modify file like POM.XML?
Upvotes: 1
Views: 14201
Reputation: 3533
If you are using Ubuntu it is enough to uninstall maven2 and install maven (which is version 3 currently):
sudo apt remove maven2
sudo apt install maven
Check your version with
mvn --version
Upvotes: 0
Reputation: 1328742
Without modifying your pom.xml, you can simply install and use mvn 3.x instead of mvn 2.x
Follow "Installing Apache Maven", and make sure your PATH reference that new version.
For instance, on Linux:
export PATH=/opt/apache-maven-3.5.0/bin:$PATH
If mvn --version
does return the right version, try again your mvn clean package -DskipTests
command.
With that approach (download and unzip an archive) you don't even need sudo apt-get install
that you tried yesterday. Just download apache-maven-3.5.0-bin.zip
.
Upvotes: 2