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:
- If we run
mvn install, it also downloads the dependencies mentioned in the pom.xml? Does this happen because callinginstallcalls all the phases up tillinstallincludinggenerates-sourceswhich is bound to dependency plugin by default? - If not, who is responsible for fetching all the dependencies? Maven core or some other plugin?
- If yes, the list of plugins invoked by default does not seem to be exhaustive. What other plugin bindings exist in pom.xml?