added explanations about the 2-phase generation necessary for Java 5 annotations

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1389655 13f79535-47bb-0310-9956-ffa450edef68
master
Herve Boutemy 2012-09-24 23:47:38 +00:00
parent 70439924a9
commit 55e9f2dcfb
1 changed files with 8 additions and 1 deletions

View File

@ -50,7 +50,14 @@ import java.util.List;
import java.util.Properties;
/**
* Generates an <code>HelpMojo</code> class.
* Generates an <code>HelpMojo</code> class from <code>help-class-source.vm</code> template.
* The generated mojo reads help content from <code>META-INF/maven/${groupId}/${artifactId}/plugin-help.xml</code> resource,
* which is generated by this {@link PluginDescriptorGenerator}.
* <p>Notice that the help mojo source needs to be generated before compilation, but when Java 5 annotations are used,
* plugin descriptor content is available only after compilation (detecting annotations in .class files):
* help mojo source can be generated with empty package (and no plugin descriptor available), then updated
* after compilation through {@link #rewriteHelpMojo(PluginToolsRequest)} which is called from plugin descriptor XML
* generation.</p>
*
* @author <a href="mailto:vincent.siveton@gmail.com">Vincent Siveton</a>
* @version $Id$