You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Herve Boutemy (JIRA)" <ji...@codehaus.org> on 2014/12/27 12:21:10 UTC

[jira] (MPLUGIN-277) Default phase for helpmojo should agree with that for descriptor

    [ https://jira.codehaus.org/browse/MPLUGIN-277?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=359745#comment-359745 ] 

Herve Boutemy commented on MPLUGIN-277:
---------------------------------------

bq. helpmojo still has a default phase of generate-sources, which needs to be overridden when using annotations
no, helpmojo still requires to be at generate-sources phase, because generated source require to be compiled

I don't see how binding helpmojo can even work: perhaps the code get compiled when compiling test sources, but the .class should be in the test result

can you check, please?

> Default phase for helpmojo should agree with that for descriptor
> ----------------------------------------------------------------
>
>                 Key: MPLUGIN-277
>                 URL: https://jira.codehaus.org/browse/MPLUGIN-277
>             Project: Maven Plugin Tools
>          Issue Type: Improvement
>          Components: Plugin Plugin
>    Affects Versions: 3.3
>            Reporter: Joseph Walton
>
> Since MPLUGIN-189, {{descriptor}} has a default phase of {{process-classes}}. Since MNG-5346, that's also the phase of the default execution in the default lifecycle binding. However, {{helpmojo}} still has a default phase of {{generate-sources}}, which needs to be overridden when using annotations.
> That is, I need to specify:
> {noformat}
>                     <execution>
>                         <id>help-goal</id>
>                         <phase>process-classes</phase>
>                         <goals>
>                             <goal>helpmojo</goal>
>                         </goals>
>                     </execution>
> {noformat}
> Changing the default phase would only save one of those lines, but it would make things more consistent between the two goals.



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)