Tamás Cservenák created MPLUGIN-372:
---------------------------------------

             Summary: Descriptor generation does not work when Mojo class 
hierarchy extends provided class
                 Key: MPLUGIN-372
                 URL: https://issues.apache.org/jira/browse/MPLUGIN-372
             Project: Maven Plugin Tools
          Issue Type: Task
          Components: maven-plugin-tools-annotations, Plugin Plugin
            Reporter: Tamás Cservenák


As part of work on MPLUGIN-370 took an example plugin (m-dependency-p) and just 
set it's maven dependencies to provided. Build exploded with NoClassDefFoundEx.

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)?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to