Reputation: 4798
From what I read, maven cycles through the lifecycle phases and goals invoked through the command line and it simply cycles through the mentioned phases and goals. The defaults in pom.xml make sure that maven runs sensible defaults by always running a series of plugin goals according to packaging
using default bindings.
Also, if I only and only want to download dependencies and do nothing else, I can call mvn dependency:generate-sources
.
So my question is:
mvn install
, it also downloads the dependencies mentioned in the pom.xml? Does this happen because calling install
calls all the phases up till install
including generates-sources
which is bound to dependency plugin by default?Upvotes: 5
Views: 691
Reputation: 4318
Upvotes: 2