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

Karl Heinz Marbaise commented on MNG-5346:
------------------------------------------

The current solution to get it working without the above 
skipErrorNoDescriptorsFound configuration:

{code}
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-plugin-plugin</artifactId>
        <configuration>
          <goalPrefix>XXXXXXX</goalPrefix>
        </configuration>
        <executions>
          <execution>
            <id>default-descriptor</id>
            <goals>
              <goal>descriptor</goal>
            </goals>
            <phase>process-classes</phase>
          </execution>
          <execution>
            <id>help-descriptor</id>
            <goals>
              <goal>helpmojo</goal>
            </goals>
            <phase>process-classes</phase>
          </execution>
        </executions>
      </plugin>
    </plugins>
{code}
                
> 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
>
> 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to