Patrick C.
Patrick C.

Reputation: 1429

<Maven> How is the command "mvn dependency:resolve" different from "mvn clean install"?

I would like to ask about the use of the command "mvn dependency:resolve". When I executed the command in project folder, it seems it download jars and build the application. I wonder if it has the same functions as "mvn clean install". Thanks.

Upvotes: 2

Views: 3420

Answers (1)

Habil
Habil

Reputation: 540

Install will compile, test & package your Java project and even install/copy your built .jar/.war file into your local Maven repository.

But dependency:resolve compile your application and print resolved dependencies.

Upvotes: 1

Related Questions