This is an automated email from the ASF dual-hosted git repository.

hboutemy pushed a commit to annotated tag maven-help-plugin-2.0.2
in repository https://gitbox.apache.org/repos/asf/maven-help-plugin.git

commit 55fb64bfe8a01da9ba8664cf6695d2f1a8296036
Author: Maria Odea B. Ching <och...@apache.org>
AuthorDate: Mon Jul 10 07:17:33 2006 +0000

    PR: MPH-17
    
    Revised existing docs to conform with the standard documentation. Added 
additional docs. Updated pom and site.xml. Also added javadocs.
    
    git-svn-id: 
https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-help-plugin@420452 
13f79535-47bb-0310-9956-ffa450edef68
---
 pom.xml                                            |  15 ++-
 .../maven/plugins/help/ActiveProfilesMojo.java     |  53 +++++---
 .../apache/maven/plugins/help/DescribeMojo.java    | 140 ++++++++++++++++++++-
 .../maven/plugins/help/EffectivePomMojo.java       |  43 ++++---
 .../maven/plugins/help/EffectiveSettingsMojo.java  |   8 +-
 src/site/apt/active-profiles-mojo.apt              |  27 ----
 src/site/apt/describe-mojo.apt                     |  93 --------------
 src/site/apt/effective-pom-mojo.apt                |  28 -----
 src/site/apt/effective-settings-mojo.apt           |  26 ----
 src/site/apt/examples/describe-configuration.apt   |  62 +++++++++
 src/site/apt/index.apt                             |  42 +++++++
 src/site/apt/usage.apt                             |  78 ++++++++++++
 src/site/fml/faq.fml                               |  14 +++
 src/site/site.xml                                  |  16 ++-
 14 files changed, 428 insertions(+), 217 deletions(-)

diff --git a/pom.xml b/pom.xml
index f710ffd..a8022c8 100644
--- a/pom.xml
+++ b/pom.xml
@@ -2,7 +2,7 @@
   <parent>
     <artifactId>maven-plugins</artifactId>
     <groupId>org.apache.maven.plugins</groupId>
-    <version>1</version>
+    <version>2-SNAPSHOT</version>
   </parent>
   <modelVersion>4.0.0</modelVersion>
   <artifactId>maven-help-plugin</artifactId>
@@ -16,6 +16,9 @@
     have been applied, as well as a describe a particular plugin goal to give 
usage information.
   </description>
   <inceptionYear>2001</inceptionYear>
+  <prerequisites>
+    <maven>2.0</maven>
+  </prerequisites>
   <dependencies>
     <dependency>
       <groupId>org.apache.maven</groupId>
@@ -43,4 +46,12 @@
       <version>2.0</version>
     </dependency>
   </dependencies>
-</project>
\ No newline at end of file
+  <reporting>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-changelog-plugin</artifactId>
+      </plugin>
+    </plugins>
+  </reporting>
+</project>
diff --git 
a/src/main/java/org/apache/maven/plugins/help/ActiveProfilesMojo.java 
b/src/main/java/org/apache/maven/plugins/help/ActiveProfilesMojo.java
index 2a9a251..05712b4 100644
--- a/src/main/java/org/apache/maven/plugins/help/ActiveProfilesMojo.java
+++ b/src/main/java/org/apache/maven/plugins/help/ActiveProfilesMojo.java
@@ -1,21 +1,7 @@
 package org.apache.maven.plugins.help;
 
-import org.apache.maven.model.Profile;
-import org.apache.maven.plugin.AbstractMojo;
-import org.apache.maven.plugin.MojoExecutionException;
-import org.apache.maven.plugin.logging.Log;
-import org.apache.maven.project.MavenProject;
-
-import java.io.File;
-import java.io.FileWriter;
-import java.io.IOException;
-import java.io.Writer;
-import java.util.Date;
-import java.util.Iterator;
-import java.util.List;
-
 /*
- * Copyright 2001-2005 The Apache Software Foundation.
+ * Copyright 2001-2006 The Apache Software Foundation.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -30,7 +16,22 @@ import java.util.List;
  * limitations under the License.
  */
 
-/** Lists the profiles which are currently active for this build.
+import org.apache.maven.model.Profile;
+import org.apache.maven.plugin.AbstractMojo;
+import org.apache.maven.plugin.MojoExecutionException;
+import org.apache.maven.plugin.logging.Log;
+import org.apache.maven.project.MavenProject;
+
+import java.io.File;
+import java.io.FileWriter;
+import java.io.IOException;
+import java.io.Writer;
+import java.util.Date;
+import java.util.Iterator;
+import java.util.List;
+
+/**
+ * Lists the profiles which are currently active for this build.
  * 
  * @goal active-profiles
  * @aggregator
@@ -55,6 +56,9 @@ public class ActiveProfilesMojo extends AbstractMojo
      */
     private File output;
 
+    /**
+     * @see org.apache.maven.plugin.AbstractMojo#execute()
+     */
     public void execute()
         throws MojoExecutionException
     {
@@ -80,6 +84,12 @@ public class ActiveProfilesMojo extends AbstractMojo
         }
     }
     
+    /**
+     * Method for writing the output file of the active profiles information.
+     *
+     * @param message   the output to be written to the file
+     * @throws MojoExecutionException
+     */
     private void writeFile( StringBuffer message ) 
         throws MojoExecutionException
     {
@@ -122,6 +132,12 @@ public class ActiveProfilesMojo extends AbstractMojo
         }
     }
 
+    /**
+     * Method to get the active profiles for the project
+     *
+     * @param project   the current project
+     * @param message   the object where the information will be appended to
+     */
     private void getActiveProfileStatement( MavenProject project, StringBuffer 
message )
     {
         List profiles = project.getActiveProfiles();
@@ -153,6 +169,11 @@ public class ActiveProfilesMojo extends AbstractMojo
         message.append( "\n" );
     }
 
+    /**
+     * Setter method for the list of projects.
+     *
+     * @param projects
+     */
     public final void setProjects( List projects )
     {
         this.projects = projects;
diff --git a/src/main/java/org/apache/maven/plugins/help/DescribeMojo.java 
b/src/main/java/org/apache/maven/plugins/help/DescribeMojo.java
index c3dd2f3..c6e5e0d 100644
--- a/src/main/java/org/apache/maven/plugins/help/DescribeMojo.java
+++ b/src/main/java/org/apache/maven/plugins/help/DescribeMojo.java
@@ -1,7 +1,7 @@
 package org.apache.maven.plugins.help;
 
 /*
- * Copyright 2001-2005 The Apache Software Foundation.
+ * Copyright 2001-2006 The Apache Software Foundation.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -190,6 +190,9 @@ public class DescribeMojo
      */
     private boolean full;
 
+    /**
+     * @see org.apache.maven.plugin.AbstractMojo#execute()
+     */
     public void execute()
         throws MojoExecutionException, MojoFailureException
     {
@@ -225,6 +228,12 @@ public class DescribeMojo
         writeDescription( descriptionBuffer );
     }
 
+    /**
+     * Method to write the mojo description into the output file
+     *
+     * @param descriptionBuffer contains the description to be written to the 
file
+     * @throws MojoExecutionException
+     */
     private void writeDescription( StringBuffer descriptionBuffer )
         throws MojoExecutionException
     {
@@ -266,6 +275,14 @@ public class DescribeMojo
         }
     }
 
+    /**
+     * Method for retrieving the description of the plugin
+     *
+     * @param pi    holds information of the plugin whose description is to be 
retrieved
+     * @return  a PluginDescriptor where the plugin description is to be 
retrieved
+     * @throws MojoExecutionException
+     * @throws MojoFailureException
+     */
     private PluginDescriptor lookupPluginDescriptor( PluginInfo pi )
         throws MojoExecutionException, MojoFailureException
     {
@@ -356,6 +373,12 @@ public class DescribeMojo
         return descriptor;
     }
 
+    /**
+     * Method for parsing the plugin parameter
+     *
+     * @param pi    contains information about the plugin whose description is 
to be retrieved
+     * @throws MojoFailureException
+     */
     private void parsePluginLookupInfo( PluginInfo pi )
         throws MojoFailureException
     {
@@ -405,6 +428,12 @@ public class DescribeMojo
         }
     }
 
+    /**
+     * Method for retrieving the plugin description
+     *
+     * @param pd        contains the plugin description
+     * @param buffer    contains the information to be displayed or printed
+     */
     private void describePlugin( PluginDescriptor pd, StringBuffer buffer )
     {
         String name = pd.getName();
@@ -446,6 +475,12 @@ public class DescribeMojo
         }
     }
 
+    /**
+     * Convenience method for formatting the description.
+     *
+     * @param description   the plugin description
+     * @return a String of the formatted plugin description
+     */
     private String formatDescription( String description )
     {
         if ( description == null )
@@ -461,6 +496,12 @@ public class DescribeMojo
         return result;
     }
 
+    /**
+     * Convenience method for putting the appropriate value to the plugin 
description
+     *
+     * @param messagePart   the plugin description
+     * @param buffer        contains information to be printed or displayed
+     */
     private void prettyAppend( String messagePart, StringBuffer buffer )
     {
         if ( messagePart != null && messagePart.length() > 0 )
@@ -473,6 +514,12 @@ public class DescribeMojo
         }
     }
 
+    /**
+     * Displays information about the plugin mojo
+     *
+     * @param md        contains the description of the plugin mojo
+     * @param buffer    the displayed output
+     */
     private void describeMojo( MojoDescriptor md, StringBuffer buffer )
     {
         String line = "\n===============================================";
@@ -487,6 +534,13 @@ public class DescribeMojo
         buffer.append( "\n\n" );
     }
 
+    /**
+     * Displays detailed information about the plugin mojo
+     *
+     * @param md                contains the description of the plugin mojo
+     * @param buffer            contains information to be printed or displayed
+     * @param fullDescription   specifies whether all the details about the 
plugin mojo is to  be displayed
+     */
     private void describeMojoGuts( MojoDescriptor md, StringBuffer buffer, 
boolean fullDescription )
     {
         buffer.append( "\nDescription:\n\n" );
@@ -541,6 +595,12 @@ public class DescribeMojo
         }
     }
 
+    /**
+     * Method for displaying the component requirements of the plugin mojo
+     *
+     * @param md        contains the description of the plugin mojo
+     * @param buffer    contains information to be printed or displayed
+     */
     private void describeMojoRequirements( MojoDescriptor md, StringBuffer 
buffer )
     {
         buffer.append( "\n" );
@@ -580,6 +640,12 @@ public class DescribeMojo
         }
     }
 
+    /**
+     * Displays parameter information of the plugin mojo
+     *
+     * @param md        contains the description of the plugin mojo
+     * @param buffer    contains information to be printed or displayed
+     */
     private void describeMojoParameters( MojoDescriptor md, StringBuffer 
buffer )
     {
         buffer.append( "\n" );
@@ -647,81 +713,145 @@ public class DescribeMojo
         }
     }
 
+    /**
+     *
+     * @return a String of the plugin parameter value
+     */
     public final String getPlugin()
     {
         return plugin;
     }
 
+    /**
+     *
+     * @param plugin    the plugin value to be set
+     */
     public final void setPlugin( String plugin )
     {
         this.plugin = plugin;
     }
 
+    /**
+     *
+     * @return a PluginManager object
+     */
     public final PluginManager getPluginManager()
     {
         return pluginManager;
     }
 
+    /**
+     *
+     * @param pluginManager the plugin manager to be set
+     */
     public final void setPluginManager( PluginManager pluginManager )
     {
         this.pluginManager = pluginManager;
     }
 
+    /**
+     *
+     * @return a String that contains the artifactId
+     */
     public final String getArtifactId()
     {
         return artifactId;
     }
 
+    /**
+     *
+     * @param artifactId    the artifactId to be set
+     */
     public final void setArtifactId( String artifactId )
     {
         this.artifactId = artifactId;
     }
 
+    /**
+     *
+     * @return a String that contains the groupId
+     */
     public final String getGroupId()
     {
         return groupId;
     }
 
+    /**
+     *
+     * @param groupId   the groupId value to be set
+     */
     public final void setGroupId( String groupId )
     {
         this.groupId = groupId;
     }
 
+    /**
+     *
+     * @return an ArtifactRepository object of the local repository
+     */
     public final ArtifactRepository getLocalRepository()
     {
         return localRepository;
     }
 
+    /**
+     *
+     * @param localRepository   the local repository value to be set
+     */
     public final void setLocalRepository( ArtifactRepository localRepository )
     {
         this.localRepository = localRepository;
     }
 
+    /**
+     *
+     * @return a String of the mojo parameter value
+     */
     public final String getMojo()
     {
         return mojo;
     }
 
+    /**
+     *
+     * @param mojo  the mojo parameter value to be set
+     */
     public final void setMojo( String mojo )
     {
         this.mojo = mojo;
     }
 
+    /**
+     *
+     * @return a File object where the description will be written to
+     */
     public final File getOutput()
     {
         return output;
     }
 
+    /**
+     *
+     * @param output    the output file value to be set
+     */
     public final void setOutput( File output )
     {
         this.output = output;
     }
 
+    /**
+     *
+     * @return a MavenProject object of the current build
+     */
     public final MavenProject getProject()
     {
         return project;
     }
 
+    /**
+     *
+     * @param project   the project value to be set
+     */
     public final void setProject( MavenProject project )
     {
         this.project = project;
@@ -737,11 +867,19 @@ public class DescribeMojo
         this.settings = settings;
     }
 
+    /**
+     *
+     * @return a String that contains the value of the version parameter
+     */
     public final String getVersion()
     {
         return version;
     }
 
+    /**
+     *
+     * @param version   the version parameter value to be set
+     */
     public final void setVersion( String version )
     {
         this.version = version;
diff --git a/src/main/java/org/apache/maven/plugins/help/EffectivePomMojo.java 
b/src/main/java/org/apache/maven/plugins/help/EffectivePomMojo.java
index 41f8325..2e3236d 100644
--- a/src/main/java/org/apache/maven/plugins/help/EffectivePomMojo.java
+++ b/src/main/java/org/apache/maven/plugins/help/EffectivePomMojo.java
@@ -1,21 +1,7 @@
 package org.apache.maven.plugins.help;
 
-import org.apache.maven.model.Model;
-import org.apache.maven.model.io.xpp3.MavenXpp3Writer;
-import org.apache.maven.plugin.AbstractMojo;
-import org.apache.maven.plugin.MojoExecutionException;
-import org.apache.maven.project.MavenProject;
-
-import java.io.File;
-import java.io.FileWriter;
-import java.io.IOException;
-import java.io.StringWriter;
-import java.util.Date;
-import java.util.Iterator;
-import java.util.List;
-
 /*
- * Copyright 2001-2005 The Apache Software Foundation.
+ * Copyright 2001-2006 The Apache Software Foundation.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -30,7 +16,22 @@ import java.util.List;
  * limitations under the License.
  */
 
-/** Display the effective POM for this build, with the active profiles 
factored in.
+import org.apache.maven.model.Model;
+import org.apache.maven.model.io.xpp3.MavenXpp3Writer;
+import org.apache.maven.plugin.AbstractMojo;
+import org.apache.maven.plugin.MojoExecutionException;
+import org.apache.maven.project.MavenProject;
+
+import java.io.File;
+import java.io.FileWriter;
+import java.io.IOException;
+import java.io.StringWriter;
+import java.util.Date;
+import java.util.Iterator;
+import java.util.List;
+
+/**
+ * Display the effective POM for this build, with the active profiles factored 
in.
  * 
  * @goal effective-pom
  * @aggregator
@@ -56,6 +57,9 @@ public class EffectivePomMojo
      */
     private File output;
 
+    /**
+     * @see org.apache.maven.plugin.AbstractMojo#execute()
+     */
     public void execute()
         throws MojoExecutionException
     {
@@ -122,6 +126,13 @@ public class EffectivePomMojo
         }
     }
 
+    /**
+     * Method for displaying the effective pom information of the current build
+     *
+     * @param project   the project of the current build
+     * @param message   the information to be displayed
+     * @throws MojoExecutionException
+     */
     private void getEffectivePom( MavenProject project, StringBuffer message ) 
         throws MojoExecutionException
     {
diff --git 
a/src/main/java/org/apache/maven/plugins/help/EffectiveSettingsMojo.java 
b/src/main/java/org/apache/maven/plugins/help/EffectiveSettingsMojo.java
index adeb2bf..21501ff 100644
--- a/src/main/java/org/apache/maven/plugins/help/EffectiveSettingsMojo.java
+++ b/src/main/java/org/apache/maven/plugins/help/EffectiveSettingsMojo.java
@@ -1,7 +1,7 @@
 package org.apache.maven.plugins.help;
 
 /*
- * Copyright 2001-2005 The Apache Software Foundation.
+ * Copyright 2001-2006 The Apache Software Foundation.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -26,7 +26,8 @@ import java.io.FileWriter;
 import java.io.IOException;
 import java.io.StringWriter;
 
-/** Print out the calculated settings for this project, given any profile 
enhancement and 
+/**
+ * Print out the calculated settings for this project, given any profile 
enhancement and 
  *  the inheritance of the global settings into the user-level settings.
  *  
  * @goal effective-settings
@@ -53,6 +54,9 @@ public class EffectiveSettingsMojo
      */
     private String output;
 
+    /**
+     * @see org.apache.maven.plugin.AbstractMojo#execute() 
+     */
     public void execute()
         throws MojoExecutionException
     {
diff --git a/src/site/apt/active-profiles-mojo.apt 
b/src/site/apt/active-profiles-mojo.apt
deleted file mode 100644
index 75d15be..0000000
--- a/src/site/apt/active-profiles-mojo.apt
+++ /dev/null
@@ -1,27 +0,0 @@
-  ---
-  Maven Help Plugin :: Active Profiles Mojo
-  ---
-  John Casey
-  ---
-  12-October-2005
-  ---
-  
-Active Profiles Mojo
-
-*Summary
-
-  The <<<active-profiles>>> mojo is used to discover which profiles have been
-  applied to the projects currently being built. For each project in the build
-  session, it will output a list of profiles which have been applied to that 
-  project, along with the source of the profile (POM, settings.xml, or 
profiles.xml).
-  
-  Optionally, the output parameter can be specified to divert this output to a
-  file.
-  
-*Configurable Parameters
-
-*---------------+----------------------------+--------------+-------------------+--------------+
-| <<Parameter>> | <<Description>>            | <<Type>>     | <<Default 
Value>> | <<Required>> |
-*---------------+----------------------------+--------------+-------------------+--------------+
-| output        | Write output to this path. | java.io.File | <<(none)>>       
 | No           |
-*---------------+----------------------------+--------------+-------------------+--------------+
diff --git a/src/site/apt/describe-mojo.apt b/src/site/apt/describe-mojo.apt
deleted file mode 100644
index 1af7688..0000000
--- a/src/site/apt/describe-mojo.apt
+++ /dev/null
@@ -1,93 +0,0 @@
-  ---
-  Maven Project Help Plugin :: Describe Mojo
-  ---
-  John Casey
-  ---
-  12-October-2005
-  ---
-  
-Describe Mojo
-
-*Summary
-
-  The <<<describe>>> mojo is used to discover information about Maven plugins.
-  Given a plugin prefix or groupId, artifactId, and optionally version, the 
mojo
-  will lookup that plugin and output details about it. If the user also 
specifies
-  which mojo to describe, the <<describe>> mojo will limit output to the 
details
-  of that mojo, including parameters.
-  
-  Optionally, the output parameter can be specified to divert this output to a
-  file.
-  
-*Configurable Parameters
-
-*---------------+----------------------------------------------------------------+--------------+-------------------+--------------+
-| <<Parameter>> | <<Description>>                                              
  | <<Type>>     | <<Default Value>> | <<Required>> |
-*---------------+----------------------------------------------------------------+--------------+-------------------+--------------+
-| plugin        | One-liner substitute for groupId/artifactId/version, or 
prefix | String       | <<(none)>>        | No           |
-*---------------+----------------------------------------------------------------+--------------+-------------------+--------------+
-| groupId       | The plugin groupId to lookup                                 
  | String       | <<(none)>>        | No           |
-*---------------+----------------------------------------------------------------+--------------+-------------------+--------------+
-| artifactId    | The plugin artifactId to lookup                              
  | String       | <<(none)>>        | No           |
-*---------------+----------------------------------------------------------------+--------------+-------------------+--------------+
-| version       | The plugin version to lookup                                 
  | String       | <<(none)>>        | No           |
-*---------------+----------------------------------------------------------------+--------------+-------------------+--------------+
-| mojo          | The specific mojo to describe, rather than the whole plugin  
  | String       | <<(none)>>        | No           |
-*---------------+----------------------------------------------------------------+--------------+-------------------+--------------+
-| output        | A path for description output, instead of the console        
  | java.io.File | <<(none)>>        | No           |
-*---------------+----------------------------------------------------------------+--------------+-------------------+--------------+
-| full          | If false, provide a brief description. Otherwise, detail all 
  | boolean      | <<(none)>>        | No           |
-*---------------+----------------------------------------------------------------+--------------+-------------------+--------------+
-
-*Note on <<<-Dplugin=...>>>
-
-  This parameter is meant to provide two things: convenience and prefix-based 
access.
-  
-  The convenience comes when specifying a plugin by groupId:artifactId, or by
-  groupId:artifactId:version. Where the more traditional specification of 
separate
-  fields would mean specifying this:
-  
-+---+
-  -DgroupId=org.somewhere -DartifactId=some-plugin -Dversion=0.0.0
-+---+
-
-  the use of the plugin parameter allows this:
-  
-+---+
-  -Dplugin=org.somewhere:some-plugin:0.0.0
-+---+
-
-  (NOTE: version is always optional here.)
-  
-  On the other hand, the plugin parameter also offers the option to specify a 
-  plugin by its prefix, like this:
-  
-+---+
-  -Dplugin=help
-+---+
-
-*Examples
-
-  [[1]] To display a brief summary of the entire help plugin, using the
-        prefix for plugin lookup:
-        
-+---+
-        mvn help:describe -Dplugin=help
-+---+
-
-  [[2]] To display a full summary of only the describe mojo, again using the 
-        prefix to lookup the plugin:
-        
-+---+
-        mvn help:describe -Dplugin=help -Dmojo=describe -Dfull=true
-+---+
-
-  [[3]] To display the most information available for the entire help
-        plugin, and avoid any confusion about which plugin might be resolved
-        for a particular prefix:
-        
-+---+
-        mvn help:describe -Dfull=true \
-                                -DgroupId=org.apache.maven.plugins \
-                                -DartifactId=maven-help-plugin
-+---+
diff --git a/src/site/apt/effective-pom-mojo.apt 
b/src/site/apt/effective-pom-mojo.apt
deleted file mode 100644
index 5f4e3c2..0000000
--- a/src/site/apt/effective-pom-mojo.apt
+++ /dev/null
@@ -1,28 +0,0 @@
-  ---
-  Maven Help Plugin :: Effective POM Mojo
-  ---
-  John Casey
-  ---
-  12-October-2005
-  ---
-  
-Effective POM Mojo
-
-*Summary
-
-  The <<<effective-pom>>> mojo is used to make visible the POM that results 
from
-  the application of interpolation, inheritance, and active profiles. It 
provides
-  a useful way of removing the guesswork about just what ends up in the POM 
that
-  Maven uses to build your project. It will iterate over all projects in the 
current
-  build session, printing the effective POM for each.
-  
-  Optionally, the output parameter can be specified to divert this output to a
-  file.
-  
-*Configurable Parameters
-
-*---------------+----------------------------+--------------+-------------------+--------------+
-| <<Parameter>> | <<Description>>            | <<Type>>     | <<Default 
Value>> | <<Required>> |
-*---------------+----------------------------+--------------+-------------------+--------------+
-| output        | Write output to this path. | java.io.File | <<(none)>>       
 | No           |
-*---------------+----------------------------+--------------+-------------------+--------------+
diff --git a/src/site/apt/effective-settings-mojo.apt 
b/src/site/apt/effective-settings-mojo.apt
deleted file mode 100644
index d63c6c1..0000000
--- a/src/site/apt/effective-settings-mojo.apt
+++ /dev/null
@@ -1,26 +0,0 @@
-  ---
-  Maven Help Plugin :: Effective Settings Mojo
-  ---
-  John Casey
-  ---
-  12-October-2005
-  ---
-  
-Effective Settings Mojo
-
-*Summary
-
-  The <<<effective-settings>>> mojo is used to view the Settings that Maven 
-  actually uses to run the build. This Settings instance is a result of merging
-  the global file with the user's file, with the user's file taking precedence.
-  
-  Optionally, the output parameter can be specified to divert this output to a
-  file.
-  
-*Configurable Parameters
-
-*---------------+----------------------------+--------------+-------------------+--------------+
-| <<Parameter>> | <<Description>>            | <<Type>>     | <<Default 
Value>> | <<Required>> |
-*---------------+----------------------------+--------------+-------------------+--------------+
-| output        | Write output to this path. | java.io.File | <<(none)>>       
 | No           |
-*---------------+----------------------------+--------------+-------------------+--------------+
diff --git a/src/site/apt/examples/describe-configuration.apt 
b/src/site/apt/examples/describe-configuration.apt
new file mode 100644
index 0000000..e225d38
--- /dev/null
+++ b/src/site/apt/examples/describe-configuration.apt
@@ -0,0 +1,62 @@
+ ------
+ Configuring Describe Mojo
+ ------
+ John Casey
+ Maria Odea Ching
+ ------
+ 10 July 2006
+ ------
+
+Configuring Describe Mojo
+
+  Below are other configuration examples for the Describe mojo.
+
+* The <<<plugin>>> Parameter
+
+  The <<<plugin>>> parameter is meant to provide two things: convenience and 
prefix-based access.
+
+  The convenience comes when specifying a plugin by groupId:artifactId, or by 
groupId:artifactId:version. Where the more
+  traditional specification of separate fields would mean specifying this:
+
++---+
+mvn help:describe -DgroupId=org.somewhere
+    -DartifactId=some-plugin -Dversion=0.0.0
++---+
+
+  the use of the plugin parameter allows this:
+
++---+
+mvn help:describe -Dplugin=org.somewhere:some-plugin:0.0.0
++---+
+
+  On the other hand, the plugin parameter also offers the option to specify a 
plugin by its prefix, like this:
+
++---+
+mvn help:describe -Dplugin=help
++---+
+
+* The <<<mojo>>> Parameter
+
+ You can use the <<<mojo>>> parameter of the Describe Mojo to show or display 
relative information about the particular mojo
+ of the plugin you specified.
+
+ For example, when you execute the following command:
+
++-----+
+mvn help:describe -Dmojo=describe -DgroupId=org.apache.maven.plugins
+    -DartifactId=maven-help-plugin
++-----+
+
+ This would display brief information relative to the Describe Mojo only.
+
+* The <<<full>>> Parameter
+
+ If you want to show or display detailed information about the mojo, you can 
use the <<<full>>> parameter, as
+ shown below:
+
++-----+
+mvn help:describe -Dmojo=describe -DgroupId=org.apache.maven.plugins
+    -DartifactId=maven-help-plugin -Dfull=true
++-----+
+
+ This would display information such as the mojo implementation, its 
parameters and component requirements, among others.
diff --git a/src/site/apt/index.apt b/src/site/apt/index.apt
new file mode 100644
index 0000000..e2307c8
--- /dev/null
+++ b/src/site/apt/index.apt
@@ -0,0 +1,42 @@
+ ------
+ Introduction
+ ------
+ Maria Odea Ching
+ ------
+ 7 July 2006
+ ------
+
+
+Maven 2 Help Plugin
+
+ The Maven 2 Help Plugin is used to get relative information about a project. 
It can be used to get a description
+ of a particular plugin, including the plugin's mojos with their parameters 
and component requirements, the effective pom
+ and effective settings of the current build, and the profiles applied to the 
current project being built.
+
+* Goals Overview
+
+  The Help plugin has 4 goals:
+
+  * {{{active-profiles-mojo.html}help:active-profiles}} lists the profiles 
which are currently active for the build.
+
+  * {{{describe-mojo.html}help:describe}} describes the attirbutes of a plugin 
and/or plugin mojo. For its execution, it requires
+    the groupId and artifactId or the plugin prefix of the plugin to be 
specified.
+
+  * {{{effective-pom-mojo.html}help:effective-pom}} displays the effective POM 
for the current build, with the active
+    profiles factored in.
+
+  * {{{effective-settings-mojo.html}help:effective-settings}} prints out the 
calculated settings for the project, given any
+    profile enhancement and the inheritance of the global settings into the 
user-level settings.
+
+* Usage
+
+   Instructions on how to use the Help Plugin can be found 
{{{usage.html}here}}.
+
+* Examples
+
+   To provide you with better understanding on some usages of the Help plugin, 
you can take a look into the
+   following example(s):
+
+   * {{{examples/describe-configuration.html}Configuring Describe Mojo}}
+
+
diff --git a/src/site/apt/usage.apt b/src/site/apt/usage.apt
new file mode 100644
index 0000000..8af5102
--- /dev/null
+++ b/src/site/apt/usage.apt
@@ -0,0 +1,78 @@
+ ------
+ Usage
+ ------
+ John Casey
+ Maria Odea Ching
+ ------
+ 10 July 2006
+ ------
+
+Usage
+
+ Below are the different goals and configuration of the Help plugin.
+
+* The <<<help:active-profiles>>> Mojo
+
+  The <<<active-profiles>>> mojo is used to discover which profiles have been 
applied to the projects currently being built.
+  For each project in the build session, it will output a list of profiles 
which have been applied to that project, along
+  with the source of the profile (POM, settings.xml, or profiles.xml).
+
+  Optionally, the output parameter can be specified to divert this output to a 
file.
+
+  You can execute this mojo using the following command:
+
++-----+
+mvn help:active-profiles -Doutput=/path/to/file
++-----+
+
+* The <<<help:describe>>> Mojo
+
+  The <<<describe>>> mojo is used to discover information about Maven plugins. 
Given a plugin prefix or groupId, artifactId,
+  and optionally version, the mojo will lookup that plugin and output details 
about it. If the user also specifies
+  which mojo to describe, the <<describe>> mojo will limit output to the 
details of that mojo, including parameters.
+
+  Optionally, the output parameter can be specified to divert this output to a 
file.
+
+  This mojo requires either the groupId and artifactId parameters or the 
plugin parameter to be specified:
+
++-----+
+mvn help:describe -DgroupId=org.somewhere
+    -DartifactId=some-plugin -Dversion=0.0.0
++-----+
+
+ or
+
++-----+
+mvn help:active-profiles -Dplugin=org.somewhere:some-plugin:0.0.0
++-----+
+
+ (NOTE: version is always optional here.)
+
+* The <<<help:effective-pom>>> Mojo
+
+  The <<<effective-pom>>> mojo is used to make visible the POM that results 
from the application of interpolation, inheritance,
+  and active profiles. It provides a useful way of removing the guesswork 
about just what ends up in the POM that Maven uses
+  to build your project. It will iterate over all projects in the current 
build session, printing the effective POM for each.
+
+  Optionally, the output parameter can be specified to divert this output to a 
file.
+
+  The mojo can be executedd using the following command:
+
++-----+
+mvn help:effective-profiles -Doutput=/path/to/file
++-----+
+
+* The <<<help:effective-settings>>> Mojo
+
+  The <<<effective-settings>>> mojo is used to view the Settings that Maven 
actually uses to run the build. This Settings
+  instance is a result of merging the global file with the user's file, with 
the user's file taking precedence.
+
+  Optionally, the output parameter can be specified to divert this output to a 
file.
+
+  The mojo can be executedd using the following command:
+
++-----+
+mvn help:effective-settings -Doutput=/path/to/file
++-----+
+
+
diff --git a/src/site/fml/faq.fml b/src/site/fml/faq.fml
new file mode 100644
index 0000000..38e68a7
--- /dev/null
+++ b/src/site/fml/faq.fml
@@ -0,0 +1,14 @@
+<?xml version="1.0"?>
+<faqs id="FAQ" title="Frequently Asked Questions">
+  <part id="General">
+    <faq id="What is the Maven 2 Help Plugin">
+      <question>What is the Maven 2 Help Plugin?</question>
+      <answer>
+        <p>
+          The Maven 2 Help Plugin can be used to get relative information 
about a particular project. You can use it
+          to get a description of a specific plugin, or get the effective 
settings or effective pom of the current project build.
+        </p>
+      </answer>
+    </faq>
+  </part>
+</faqs>
\ No newline at end of file
diff --git a/src/site/site.xml b/src/site/site.xml
index e58efad..5149594 100644
--- a/src/site/site.xml
+++ b/src/site/site.xml
@@ -2,7 +2,7 @@
 
 <!--
 /*
- * Copyright 2001-2005 The Apache Software Foundation.
+ * Copyright 2001-2006 The Apache Software Foundation.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -32,11 +32,15 @@
       <item name="Maven 2" href="http://maven.apache.org/maven2/"/>
     </links>
 
-    <menu name="Goals">
-      <item name="active-profiles" href="/active-profiles-mojo.html"/>
-      <item name="describe" href="/describe-mojo.html"/>
-      <item name="effective-pom" href="/effective-pom-mojo.html"/>
-      <item name="effective-settings" href="/effective-settings-mojo.html"/>
+    <menu name="Overview">
+      <item name="Introduction" href="index.html"/>
+      <item name="Goals" href="plugin-info.html"/>
+      <item name="How To Use" href="usage.html"/>
+      <item name="FAQs" href="faq.html"/>
+    </menu>
+
+    <menu name="Examples">
+      <item name="Configuring Describe Mojo" 
href="/examples/describe-configuration.html"/>
     </menu>
     ${reports}
   </body>

-- 
To stop receiving notification emails like this one, please contact
"commits@maven.apache.org" <commits@maven.apache.org>.

Reply via email to