Author: hboutemy
Date: Fri Nov 1 00:15:56 2013
New Revision: 1537774
URL: http://svn.apache.org/r1537774
Log:
added markup
Modified:
maven/site/trunk/content/xdoc/developers/mojo-api-specification.xml
Modified: maven/site/trunk/content/xdoc/developers/mojo-api-specification.xml
URL:
http://svn.apache.org/viewvc/maven/site/trunk/content/xdoc/developers/mojo-api-specification.xml?rev=1537774&r1=1537773&r2=1537774&view=diff
==============================================================================
--- maven/site/trunk/content/xdoc/developers/mojo-api-specification.xml
(original)
+++ maven/site/trunk/content/xdoc/developers/mojo-api-specification.xml Fri Nov
1 00:15:56 2013
@@ -337,8 +337,8 @@ under the License.
See
<a
href="/plugin-tools/maven-plugin-plugin/examples/using-annotations.html">Using
annotations documentation</a>.
</p>
- <p>The plugin descriptor must be provided in a jar resource with the
- path:
+ <p>The plugin descriptor (see <a
href="/ref/current/maven-plugin-api/plugin.html">descriptor reference</a>)
+ must be provided in a jar resource with the path:
<code>META-INF/maven/plugin.xml</code>, and it must contain the
following:
</p>
<table>
@@ -348,26 +348,26 @@ under the License.
<th>Notes</th>
</tr>
<tr>
- <td>mojos</td>
+ <td><code>mojos</code></td>
<td>Yes</td>
<td>Descriptors for each Mojo provided by the plugin, each inside a
- <b>mojo</b>
+ <b><code>mojo</code></b>
sub-element. Mojo descriptors are covered in detail
below. Obviously, a plugin without any declared Mojos doesn't
make sense, so the
- <b>mojos</b>
+ <b><code>mojos</code></b>
element is required, along with
at least one
- <b>mojo</b>
+ <b><code>mojo</code></b>
sub-element.
</td>
</tr>
<tr>
- <td>dependencies</td>
+ <td><code>dependencies</code></td>
<td>Yes</td>
<td>A set of dependencies which the plugin requires in order to
function. Each dependency is provided inside a
- <b>dependency</b>
+ <b><code>dependency</code></b>
sub-element. Dependency specifications are covered below. Since
all plugins must have a dependency on
<code>maven-plugin-api</code>
@@ -389,15 +389,15 @@ under the License.
<th>Notes</th>
</tr>
<tr>
- <td>aggregator</td>
- <td>@aggregator</td>
+ <td><code>aggregator</code></td>
+ <td><code>@aggregator</code></td>
<td>No</td>
<td>Flags this Mojo to run it in a multi module way, i.e. aggregate
the build with the set of
projects listed as modules.</td>
</tr>
<tr>
- <td>configurator</td>
- <td>@configurator <roleHint></td>
+ <td><code>configurator</code></td>
+ <td><code>@configurator <roleHint></code></td>
<td>No</td>
<td>The configurator type to use when injecting parameter values
into this Mojo. The value is
normally deduced from the Mojo's implementation language, but can
be specified to allow a
@@ -407,13 +407,13 @@ under the License.
</td>
</tr>
<tr>
- <td>execute</td>
+ <td><code>execute</code></td>
<td>
<ul>
- <li>@execute phase="<phaseName>"
- lifecycle="<lifecycleId>"</li>
- <li>@execute phase="<phaseName>"</li>
- <li>@execute goal="<goalName>"</li>
+ <li><code>@execute phase="<phaseName>"
+ lifecycle="<lifecycleId>"</code></li>
+ <li><code>@execute
phase="<phaseName>"</code></li>
+ <li><code>@execute goal="<goalName>"</code></li>
</ul>
</td>
<td>No</td>
@@ -425,35 +425,35 @@ under the License.
<a
href="../guides/introduction/introduction-to-the-lifecycle.html">build
lifecycle</a>.</td>
</tr>
<tr>
- <td>executionStrategy</td>
- <td>@executionStrategy <strategy></td>
+ <td><code>executionStrategy</code></td>
+ <td><code>@executionStrategy <strategy></code></td>
<td>No</td>
<td>Specify the execution strategy. <i>NOTE: Currently supports
<b>once-per-session</b>,
<b>always</b>.</i>
</td>
</tr>
<tr>
- <td>goal</td>
- <td>@goal <goalName></td>
+ <td><code>goal</code></td>
+ <td><code>@goal <goalName></code></td>
<td>Yes</td>
<td>The name for the Mojo that users will reference from the command
line to execute the Mojo
directly, or inside a POM in order to provide Mojo-specific
configuration.</td>
</tr>
<tr>
- <td>inheritByDefault</td>
- <td>@inheritByDefault <true|false></td>
+ <td><code>inheritByDefault</code></td>
+ <td><code>@inheritByDefault <true|false></code></td>
<td>No. Default: <code>true</code></td>
<td>Specify that the Mojo is inherited.</td>
</tr>
<tr>
- <td>instantiationStrategy </td>
- <td>@instantiationStrategy <per-lookup></td>
+ <td><code>instantiationStrategy</code></td>
+ <td><code>@instantiationStrategy <per-lookup></code></td>
<td>No. Default: <code>per-lookup</code></td>
<td>Specify the instantiation strategy.</td>
</tr>
<tr>
- <td>phase</td>
- <td>@phase <phaseName></td>
+ <td><code>phase</code></td>
+ <td><code>@phase <phaseName></code></td>
<td>No</td>
<td>
Defines a default phase to bind a mojo execution to if the user
does not explicitly set a phase in the POM.
@@ -463,8 +463,8 @@ under the License.
</td>
</tr>
<tr>
- <td>requiresDependencyResolution</td>
- <td>@requiresDependencyResolution <requiredClassPath></td>
+ <td><code>requiresDependencyResolution</code></td>
+ <td><code>@requiresDependencyResolution
<requiredClassPath></code></td>
<td>No</td>
<td>
Flags this Mojo as requiring the dependencies in the specified
class path to be resolved before it can
@@ -518,8 +518,8 @@ under the License.
</td>
</tr>
<tr>
- <td>requiresDependencyCollection</td>
- <td>@requiresDependencyCollection <requiredClassPath></td>
+ <td><code>requiresDependencyCollection</code></td>
+ <td><code>@requiresDependencyCollection
<requiredClassPath></code></td>
<td>No</td>
<td>
Flags this mojo as requiring information about the dependencies
that would make up the specified class path.
@@ -534,32 +534,32 @@ under the License.
</td>
</tr>
<tr>
- <td>requiresDirectInvocation</td>
- <td>@requiresDirectInvocation <true|false></td>
+ <td><code>requiresDirectInvocation</code></td>
+ <td><code>@requiresDirectInvocation <true|false></code></td>
<td>No. Default: <code>false</code></td>
<td>Flags this Mojo to be invoke directly.</td>
</tr>
<tr>
- <td>requiresOnline</td>
- <td>@requiresOnline <true|false></td>
+ <td><code>requiresOnline</code></td>
+ <td><code>@requiresOnline <true|false></code></td>
<td>No. Default: <code>false</code></td>
<td>Flags this Mojo to require online mode for its operation.</td>
</tr>
<tr>
- <td>requiresProject</td>
- <td>@requiresProject <true|false></td>
+ <td><code>requiresProject</code></td>
+ <td><code>@requiresProject <true|false></code></td>
<td>No. Default: <code>true</code></td>
<td>Flags this Mojo to run inside of a project.</td>
</tr>
<tr>
- <td>requiresReports</td>
- <td>@requiresReports <true|false></td>
+ <td><code>requiresReports</code></td>
+ <td><code>@requiresReports <true|false></code></td>
<td>No. Default: <code>false</code></td>
<td>Flags this Mojo to require reports. Unsupported since Maven
3.0.</td>
</tr>
<tr>
- <td>threadSafe</td>
- <td>@threadSafe <true|false></td>
+ <td><code>threadSafe</code></td>
+ <td><code>@threadSafe <true|false></code></td>
<td>No. Default: <code>false</code></td>
<td>
Marks this mojo as being thread-safe, i.e. the mojo safely
supports concurrent execution during parallel builds.
@@ -571,7 +571,7 @@ under the License.
<!-- Autodetect -->
<tr>
- <td>description</td>
+ <td><code>description</code></td>
<td>none (detected)</td>
<td>No</td>
<td>The description of this Mojo's functionality. <i>Using the
toolset, this will be the
@@ -581,13 +581,13 @@ under the License.
</td>
</tr>
<tr>
- <td>implementation</td>
+ <td><code>implementation</code></td>
<td>none (detected)</td>
<td>Yes</td>
<td>The Mojo's fully-qualified class name (or script path in the
case of non-Java Mojos).</td>
</tr>
<tr>
- <td>language</td>
+ <td><code>language</code></td>
<td>none (detected)</td>
<td>No. Default: <code>java</code></td>
<td>The implementation language for this Mojo (Java, beanshell,
etc.).</td>
@@ -595,16 +595,16 @@ under the License.
<!-- Javadoc -->
<tr>
- <td>deprecated</td>
- <td>@deprecated <deprecated-text></td>
+ <td><code>deprecated</code></td>
+ <td><code>@deprecated <deprecated-text></code></td>
<td>No</td>
<td>Specify the version when the Mojo was deprecated to the API.
Similar to Javadoc deprecated.
This will trigger a warning when a user tries to configure a
parameter
marked as deprecated.</td>
</tr>
<tr>
- <td>since</td>
- <td>@since <since-text></td>
+ <td><code>since</code></td>
+ <td><code>@since <since-text></code></td>
<td>No</td>
<td>Specify the version when the Mojo was added to the API. Similar
to Javadoc since.</td>
</tr>
@@ -635,16 +635,16 @@ under the License.
<th>Notes</th>
</tr>
<tr>
- <td>alias</td>
- <td>@parameter alias="myAlias"</td>
+ <td><code>alias</code></td>
+ <td><code>@parameter alias="myAlias"</code></td>
<td>No</td>
<td>Specifies an alias which can be used to configure this parameter
from the POM. This is
primarily useful to improve user-friendliness, where Mojo field
names are not intuitive to
the user or are otherwise not conducive to configuration via the
POM.</td>
</tr>
<tr>
- <td>configuration</td>
- <td>@component role="..." roleHint="..."</td>
+ <td><code>configuration</code></td>
+ <td><code>@component role="..."
roleHint="..."</code></td>
<td>No</td>
<td>Populates the field with an instance of a Plexus component. This
is like declaring a
<i>requirement</i> in a Plexus component. The default requirement
will have a role equal
@@ -657,10 +657,10 @@ under the License.
expression="${component.yourpackage.YourComponentClass#roleHint}"</code>.
</td>
</tr>
<tr>
- <td>configuration</td>
- <td>maven-plugin-plugin 2.x: <code>@parameter
expression="${aSystemProperty}"
+ <td><code>configuration</code></td>
+ <td>maven-plugin-plugin 2.x:<br /><code>@parameter
expression="${aSystemProperty}"
default-value="${anExpression}"</code><br /><br />
- maven-plugin-plugin 3.x: <code>@parameter
property="aSystemProperty"
+ maven-plugin-plugin 3.x:<br /><code>@parameter
property="aSystemProperty"
default-value="${anExpression}"</code></td>
<td>No</td>
<td><p>Specifies the expressions used to calculate the value to be
injected into this parameter of
@@ -680,8 +680,8 @@ under the License.
</td>
</tr>
<tr>
- <td>editable</td>
- <td>@readonly</td>
+ <td><code>editable</code></td>
+ <td><code>@readonly</code></td>
<td>No</td>
<td>Specifies that this parameter cannot be configured directly by
the user (as in the case of
POM-specified configuration). This is useful when you want to
force the user to use common
@@ -695,8 +695,8 @@ under the License.
</td>
</tr>
<tr>
- <td>required</td>
- <td>@required</td>
+ <td><code>required</code></td>
+ <td><code>@required</code></td>
<td>No</td>
<td>Whether this parameter is required for the Mojo to function.
This is used to validate the
configuration for a Mojo before it is injected, and before the
Mojo is executed from some
@@ -707,7 +707,7 @@ under the License.
<!-- Autodetect -->
<tr>
- <td>description</td>
+ <td><code>description</code></td>
<td>none (detected)</td>
<td>No</td>
<td>The description of this parameter's use inside the Mojo.
<i>Using the toolset, this is
@@ -717,7 +717,7 @@ under the License.
</td>
</tr>
<tr>
- <td>name</td>
+ <td><code>name</code></td>
<td>none (detected)</td>
<td>Yes</td>
<td>The name of the parameter, to be used in configuring this
parameter from the Mojo's
@@ -726,7 +726,7 @@ under the License.
</td>
</tr>
<tr>
- <td>type</td>
+ <td><code>type</code></td>
<td>none (detected)</td>
<td>Yes</td>
<td>The Java type for this parameter. This is used to validate the
result of any expressions
@@ -738,16 +738,16 @@ under the License.
<!-- Javadoc -->
<tr>
- <td>deprecated</td>
- <td>@deprecated <deprecated-text></td>
+ <td><code>deprecated</code></td>
+ <td><code>@deprecated <deprecated-text></code></td>
<td>No</td>
<td>Specify the version when the Mojo was deprecated to the API.
Similar to Javadoc deprecated.
This will trigger a warning when a user tries to configure a
parameter
marked as deprecated.</td>
</tr>
<tr>
- <td>since</td>
- <td>@since <since-text></td>
+ <td><code>since</code></td>
+ <td><code>@since <since-text></code></td>
<td>No</td>
<td>Specify the version when the Mojo was added to the API. Similar
to Javadoc since.</td>
</tr>