Details
-
Task
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
As part of work on MPLUGIN-370 took an example plugin (m-dependency-p) and just set its maven dependencies to provided. Build exploded with NoClassDefFoundEx (usually for AbstractMojo). Nb: error reporting could be improved, as even with debug output nothing is said why this happened.
Reason is that DescriptorGeneratorMojo sets ResolutionScope.RUNTIME that *excludes* provided dependencies (like maven-plugin-api, where AbstractMojo is).
Setting the descriptor mojo scope to ResolutionScope.COMPILE_PLUS_RUNTIME make it work just fine.
Anyone have any idea why Descriptor Mojo uses RUNTIME scope (hence, omits provided artifacts from processing)?
Attachments
Issue Links
- causes
-
MPLUGIN-382 Too many dependencies in plugin descriptor
-
- Closed
-
- links to