gemnasium-maven-plugin : multi-modules resolution does not require compilation
In case of multi-modules, when one module depends on another one in the reactor, the gemnasium-maven-plugin must be executed after a mvn install
or be combined with a compile phase (mvn compile com.gemnasium:gemnasium-maven-plugin:dump-dependencies
) for dependencies to be correctly resolved.
These compile/install requirements can be avoided by using requiresDependencyCollection
instead of requiresDependencyResolution
on the DumpDependenciesMojo
.
Similar mojo behavior can be observed in the maven dependency plugin on the goal collect
where resolution of sibling modules works without requiring compilation.