You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2014/06/02 19:17:46 UTC

svn commit: r1599273 - /maven/plugin-tools/trunk/maven-plugin-plugin/src/site/apt/examples/using-annotations.apt.vm

Author: hboutemy
Date: Mon Jun  2 17:17:46 2014
New Revision: 1599273

URL: http://svn.apache.org/r1599273
Log:
[MPLUGIN-267] document how to change desriptor phase instead of running it twice with skipErrorNoDescriptorsFound

Modified:
    maven/plugin-tools/trunk/maven-plugin-plugin/src/site/apt/examples/using-annotations.apt.vm

Modified: maven/plugin-tools/trunk/maven-plugin-plugin/src/site/apt/examples/using-annotations.apt.vm
URL: http://svn.apache.org/viewvc/maven/plugin-tools/trunk/maven-plugin-plugin/src/site/apt/examples/using-annotations.apt.vm?rev=1599273&r1=1599272&r2=1599273&view=diff
==============================================================================
--- maven/plugin-tools/trunk/maven-plugin-plugin/src/site/apt/examples/using-annotations.apt.vm (original)
+++ maven/plugin-tools/trunk/maven-plugin-plugin/src/site/apt/examples/using-annotations.apt.vm Mon Jun  2 17:17:46 2014
@@ -77,10 +77,7 @@ Using Plugin Tools Java5 Annotations
 
   * add <<<maven-plugin-annotations>>> dependency, preferably with <<<provided>>> scope,
 
-  * bind goals to <<<process-classes>>> phase,
-
-  * configure <<<skipErrorNoDescriptorsFound>>> parameter to avoid failure caused by
-    {{{http://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_maven-plugin_packaging}default <<<descriptor>>> goal binding to <<<generate-resources>>> phase}}.
+  * override Maven core's <<<default-descriptor>>> execution phase to <<<process-classes>>>,
 
   []
 
@@ -105,16 +102,10 @@ Using Plugin Tools Java5 Annotations
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-plugin-plugin</artifactId>
         <version>${project.version}</version>
-        <configuration>
-          <!-- see http://jira.codehaus.org/browse/MNG-5346 -->
-          <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
-        </configuration>
         <executions>
           <execution>
-            <id>mojo-descriptor</id>
-            <goals>
-              <goal>descriptor</goal>
-            </goals>
+            <id>default-descriptor</id>
+            <phase>process-classes</phase>
           </execution>
           <!-- if you want to generate help goal -->
           <execution>