You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by bu...@apache.org on 2013/01/02 23:27:46 UTC

svn commit: r844670 - in /websites/staging/maven/trunk/content: ./ guides/plugin/guide-java-plugin-development.html maven-site-1.0-site.jar

Author: buildbot
Date: Wed Jan  2 22:27:46 2013
New Revision: 844670

Log:
Staging update by buildbot for maven

Modified:
    websites/staging/maven/trunk/content/   (props changed)
    websites/staging/maven/trunk/content/guides/plugin/guide-java-plugin-development.html
    websites/staging/maven/trunk/content/maven-site-1.0-site.jar

Propchange: websites/staging/maven/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Wed Jan  2 22:27:46 2013
@@ -1 +1 @@
-1428089
+1428090

Modified: websites/staging/maven/trunk/content/guides/plugin/guide-java-plugin-development.html
==============================================================================
--- websites/staging/maven/trunk/content/guides/plugin/guide-java-plugin-development.html (original)
+++ websites/staging/maven/trunk/content/guides/plugin/guide-java-plugin-development.html Wed Jan  2 22:27:46 2013
@@ -308,7 +308,7 @@ public class GreetingMojo extends Abstra
   -DgroupId=sample.plugin \
   -DartifactId=hello-maven-plugin \
   -DarchetypeGroupId=org.apache.maven.archetypes \
-  -DarchetypeArtifactId=maven-archetype-mojo</pre></div></div><div class="section"><h3><a name="Parameters">Parameters</a></h3><p>It is unlikely that a mojo will be very useful without parameters. Parameters provide a few very important functions:</p><ul><li>It provides hooks to allow the user to adjust the operation of the plugin to suit their needs.</li><li>It provides a means to easily extract the value of elements from the POM without the need to navigate the objects.</li></ul><div class="section"><h4>Defining Parameters Within a Mojo<a name="Defining_Parameters_Within_a_Mojo"></a></h4><p>Defining a parameter is as simple as creating an instance variable in the mojo and adding the proper annotations. Listed below is an example of a parameter for the simple mojo:</p><div class="source"><pre>    /**
+  -DarchetypeArtifactId=maven-archetype-plugin</pre></div></div><div class="section"><h3><a name="Parameters">Parameters</a></h3><p>It is unlikely that a mojo will be very useful without parameters. Parameters provide a few very important functions:</p><ul><li>It provides hooks to allow the user to adjust the operation of the plugin to suit their needs.</li><li>It provides a means to easily extract the value of elements from the POM without the need to navigate the objects.</li></ul><div class="section"><h4>Defining Parameters Within a Mojo<a name="Defining_Parameters_Within_a_Mojo"></a></h4><p>Defining a parameter is as simple as creating an instance variable in the mojo and adding the proper annotations. Listed below is an example of a parameter for the simple mojo:</p><div class="source"><pre>    /**
      * The greeting to display.
      */
     @Parameter( property = &quot;sayhi.greeting&quot;, defaultValue = &quot;Hello World!&quot; )

Modified: websites/staging/maven/trunk/content/maven-site-1.0-site.jar
==============================================================================
Binary files - no diff available.