The program 'mvn' can be found in the foll

2019-07-15 05:26发布

问题:

I am trying to install dataloader on my Linux machine. https://github.com/forcedotcom/dataloader

There is a command line on third line:

$ mvn clean package -DskipTests

When I typed that in, I got this error:

The program 'mvn' can be found in the following packages:
* maven
* maven2
Try: sudo apt-get install <selected package>

I am not sure what to do.

回答1:

Dataloader needs Maven. It's a dependency manager for Java.

Thus you have to install Maven before being able to use it.

Just run sudo apt-get update && sudo apt-get install maven2 and mvn will be available on your computer.


Maven documentation (for more up to date installation instructions) : https://maven.apache.org/install.html