You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by be...@apache.org on 2009/10/24 20:03:52 UTC

svn commit: r829425 - /maven/site/trunk/src/site/apt/guides/development/guide-plugin-documentation.apt

Author: bentmann
Date: Sat Oct 24 18:03:52 2009
New Revision: 829425

URL: http://svn.apache.org/viewvc?rev=829425&view=rev
Log:
[MNGSITE-100] Add instructions to generate the goals documentation during site phase

Modified:
    maven/site/trunk/src/site/apt/guides/development/guide-plugin-documentation.apt

Modified: maven/site/trunk/src/site/apt/guides/development/guide-plugin-documentation.apt
URL: http://svn.apache.org/viewvc/maven/site/trunk/src/site/apt/guides/development/guide-plugin-documentation.apt?rev=829425&r1=829424&r2=829425&view=diff
==============================================================================
--- maven/site/trunk/src/site/apt/guides/development/guide-plugin-documentation.apt (original)
+++ maven/site/trunk/src/site/apt/guides/development/guide-plugin-documentation.apt Sat Oct 24 18:03:52 2009
@@ -29,12 +29,14 @@
  Documentation is generated by running  
  
 +---------------+
-mvn site:site
+mvn site
 +---------------+
 
- It will generate a plugin site based on the information in the POM, <<<src/site>>>  and other reporting
- plugins configured in the POM. But in order for the generated site to be usable, the  required 
- information should be available to the site plugin.
+ It will generate a plugin site based on the information in the POM, <<<src/site>>> and other reporting
+ plugins configured in the POM. The most important reporting plugin is the
+ {{{http://maven.apache.org/plugins/maven-plugin-plugin/}Maven Plugin Plugin}} which will generate
+ the documentation for each plugin goal based on the mojo annotations. But in order for the generated site to be
+ usable, the required information should be available to the Maven Site Plugin.
    
 *POM Elements
 
@@ -142,7 +144,24 @@
 
 *Plugin Configuration Parameters
 
- The Maven Plugin Plugin is responsible for generating the Plugin Info site. The comments, annotations and plugin parameter 
+ The Maven Plugin Plugin is responsible for generating the Plugin Info site and needs to be added to the <<<\<reporting\>>>>
+ section unless it is already inherited from a parent POM:
+
++--------------+ 
+  [...]
+  <reporting>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-plugin-plugin</artifactId>
+        <version>2.5.1</version>
+      </plugin>
+    </plugins>
+  </reporting>    
+  [...]  
++--------------+   
+ 
+ The comments, annotations and plugin parameter 
  names are extracted from the plugin source and rendered in the Plugin Info page. In order for the generated site to 
  be useful here are some guidelines you can follow when documenting your plugin.