Open lppedd opened 1 year ago
The requiresDependencyResolution = TEST
configuration simply means when executing this mojo make sure to resolve the dependencies of the project in context to the scope of TEST.
This allows use of gmaven:execute
on projects and allow it to resolve the classes which are defined in src/java/test
. The requiresDependencyCollection
flag only makes the information about dependencies available but wouldn't allow the invocation to resolve those classes.
The intent was to allow the gmaven:execute
goal here to use main/test classes from the context in whatever groovy script execution.
I was looking at the plugin's Mojos (but specifically at the
Execute
one) and I've noticed they userequiresDependencyResolution = TEST
. Why do these Mojos require dependency resolution in all cases?The
execute
goal bound togenerate-sources
fails in my multi-module project using Eclipse Tycho, because some modules might not be already built. Wouldn'trequiresDependencyCollection
be a better alternative?