[Maven] Don't pull dependencies of the target artifact
π₯ Problem
We use mvn dependency:get
to "pull" a package from a given registry.
The problem is that by default, that plugin will download the package, get the pom.xml
file and also download its dependencies.
In the packages importer, we don't pull files to install them locally, we pull them to move them around. As such, we don't need the dependencies of the target artifact as we will not do anything with these (see #34).
Also, this is a performance improvement as the job will not waste time in downloading files that are not used afterwards.
π Solution
Use the transitive
switch and set it to false
.
Edited by David Fernandez