[ 
https://jira.codehaus.org/browse/MNG-5346?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jan Sievers updated MNG-5346:
-----------------------------

    Attachment: plugin-annotation-sample.zip

the problem is still there, see sample project attached.

Also, the docs
http://maven.apache.org/plugin-tools/maven-plugin-annotations/

do not mention this bug.
Anyone following the instructions in the docs will fail and end up spending a 
lot of time googling why it does not work.

I'd ike to re-open this issue as advertised on 
https://cwiki.apache.org/confluence/display/MAVEN/The+Great+JIRA+Cleanup+of+2014

but it seems I don't have permissions. Please re-open or provide steps where I 
can open a bug instead.

> update maven-plugin-plugin:descriptor default binding from generate-resources 
> phase to process-classes
> ------------------------------------------------------------------------------------------------------
>
>                 Key: MNG-5346
>                 URL: https://jira.codehaus.org/browse/MNG-5346
>             Project: Maven 2 & 3
>          Issue Type: Wish
>            Reporter: Herve Boutemy
>         Attachments: plugin-annotation-sample.zip
>
>
> with Java annotations support added in Maven Plugin Tools 3.0, descriptor 
> cannot be generated before compilation
> actually, to use annotations, users need to add extra configuration to avoid 
> failure and to bind the goal to proper phase:
> {code:xml}        <configuration>
>           <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
>         </configuration>
>         <executions>
>           <execution>
>             <id>mojo-descriptor</id>
>             <goals>
>               <goal>descriptor</goal>
>             </goals>
>           </execution>{code}
> changing the default lifecycle binding will enable removal of this extra 
> configuration
> notice that removing the configuration from pom will require to check newer 
> Maven version is used to build the plugin



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

Reply via email to