Generates an
HelpMojo
class from
help-class-source.vm
template. The generated mojo reads help content from
META-INF/maven/${groupId}/${artifactId}/plugin-help.xml
resource, which is generated by this {@link PluginDescriptorGenerator}.
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 only (and no plugin descriptor available yet), then needs to be updated after compilation - through {@link #rewriteHelpMojo(PluginToolsRequest,Log)} which is called from plugindescriptor XML generation.
@author
Vincent Siveton
@version $Id: PluginHelpGenerator.java 1406928 2012-11-08 05:24:33Z hboutemy $
@since 2.4