diff --git a/maven-site/src/site/xdoc/developers/mojo-api-specification.xml b/maven-site/src/site/xdoc/developers/mojo-api-specification.xml
index ed9b75b709..ea4b958809 100644
--- a/maven-site/src/site/xdoc/developers/mojo-api-specification.xml
+++ b/maven-site/src/site/xdoc/developers/mojo-api-specification.xml
@@ -91,15 +91,13 @@
- void setLog( org.apache.maven.monitor.logging.Log )
+ void setLog( org.apache.maven.monitor.logging.Log )
Inject a standard Maven logging mechanism to allow this Mojo
to communicate events and feedback to the user.
-
- void execute() throws org.apache.maven.plugin.MojoExecutionException
-
+ void execute() throws org.apache.maven.plugin.MojoExecutionException
Perform whatever build-process behavior this Mojo implements.
This is the main trigger for the Mojo inside the Maven system,
and allows the Mojo to communicate fatal errors by throwing an
@@ -130,7 +128,7 @@
- public void setLog( org.apache.maven.monitor.logging.Log )
+ public void setLog( org.apache.maven.monitor.logging.Log )
[IMPLEMENTED]
@@ -139,7 +137,7 @@
to communicate events and feedback to the user.
- protected Log getLog()
+ protected Log getLog()
[IMPLEMENTED]
@@ -148,7 +146,7 @@
- void execute() throws org.apache.maven.plugin.MojoExecutionException
+ void execute() throws org.apache.maven.plugin.MojoExecutionException
[ABSTRACT]
@@ -175,73 +173,73 @@
Method Summary:
- void debug( java.lang.CharSequence )
+ void debug( java.lang.CharSequence )
Send a message to the user in the debug error level.
- void debug( java.lang.CharSequence, java.lang.Throwable )
+ void debug( java.lang.CharSequence, java.lang.Throwable )
Send a message (and accompanying exception) to the user in the
debug error level. The error's stacktrace will be output
when this error level is enabled.
- void debug( java.lang.Throwable )
+ void debug( java.lang.Throwable )
Send an exception to the user in the debug error level.
The stack trace for this exception will be output when this
error level is enabled.
- void info( java.lang.CharSequence )
+ void info( java.lang.CharSequence )
Send a message to the user in the info error level.
- void info( java.lang.CharSequence, java.lang.Throwable )
+ void info( java.lang.CharSequence, java.lang.Throwable )
Send a message (and accompanying exception) to the user in the
info error level. The error's stacktrace will be output
when this error level is enabled.
- void info( java.lang.CharSequence )
+ void info( java.lang.CharSequence )
Send an exception to the user in the info error level.
The stack trace for this exception will be output when this
error level is enabled.
- void warn( java.lang.CharSequence )
+ void warn( java.lang.CharSequence )
Send a message to the user in the warn error level.
- void warn( java.lang.CharSequence, java.lang.Throwable )
+ void warn( java.lang.CharSequence, java.lang.Throwable )
Send a message (and accompanying exception) to the user in the
warn error level. The error's stacktrace will be output
when this error level is enabled.
- void warn( java.lang.CharSequence )
+ void warn( java.lang.CharSequence )
Send an exception to the user in the warn error level.
The stack trace for this exception will be output when this
error level is enabled.
- void error( java.lang.CharSequence )
+ void error( java.lang.CharSequence )
Send a message to the user in the error error level.
- void error( java.lang.CharSequence, java.lang.Throwable )
+ void error( java.lang.CharSequence, java.lang.Throwable )
Send a message (and accompanying exception) to the user in the
error error level. The error's stacktrace will be output
when this error level is enabled.
- void error( java.lang.CharSequence )
+ void error( java.lang.CharSequence )
Send an exception to the user in the error error level.
The stack trace for this exception will be output when this
error level is enabled.
@@ -264,17 +262,17 @@
element name along with a javadoc annotation (if applicable) supporting
that piece of the plugin descriptor. A couple of examples are:
someElement
- (@annotation parameterName="parameterValue") or
+ (@annotation parameterName="parameterValue") or
someOtherElement (@annotation <rawAnnotationValue>).
The plugin descriptor must be provided in a jar resource with the
path: META-INF/maven/plugin.xml
, and it must contain the
following:
- - mojos - Descriptors for each Mojo provided by
+
- mojos - Descriptors for each Mojo provided by
the plugin, each inside a mojo sub-element. Mojo descriptors
are covered in detail below.
- - dependencies - A set of dependencies which the
+
- dependencies - A set of dependencies which the
plugin requires in order to function. Each dependency is provided
inside a dependency sub-element. Dependency specifications
are covered below. Using the plugin toolset, these dependencies
@@ -285,46 +283,46 @@
following:
- - goal. (@goal <goalName>) - The name for
+
- goal. (@goal <goalName>) - 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.
- - implementation (detected) - The
+
- implementation (detected) - The
Mojo's fully-qualified class name.
- - language (detected) - The implementation
+
- language (detected) - The implementation
language for this Mojo (marmalade, java, etc.). Optional,
default is java.
- - configurator (detected) - The configurator type
+
- configurator (detected) - The configurator type
used to inject parameters into the Mojo. Optional; will only be
used in very special cases, with a highly controlled vocabulary of
possible values. (Elements like this are why it's a good idea to
use the descriptor tools.)
- phase
- (@phase <phaseName>) - Specifies to which
+ (@phase <phaseName>) - Specifies to which
phase in the standard build lifecycle this Mojo binds. Optional;
only required if this Mojo participates in the standard build
process.
- executePhase
- (@executePhase <phaseName>) - Specifies
+ (@executePhase <phaseName>) - Specifies
the last phase in the standard build lifecycle to execute before
executing this Mojo, when the Mojo's goal is invoked directly.
Optional.
- instantiationStrategy
- (@instantiationStrategy <strategyName>) - Specifies
+ (@instantiationStrategy <strategyName>) - Specifies
the method Maven should use in instantiating this Mojo before it is
executed, which has implications for the Mojo's state and instance
reuse. Optional. Currently, only "per-lookup" is suppported.
(Brett: Can we deprecate this before alpha-2
release?)
- requiresDependencyResolution
- (@requiresDependencyResolution <requiredScope>) - Flags
+ (@requiresDependencyResolution <requiredScope>) - Flags
this Mojo as requiring the specified scope of dependencies to be
resolved before it can execute. Optional; Currently supports
"compile", "runtime", and "test" scopes.
- - description (detected) - The description of the
+
- description (detected) - The description of the
Mojo's functionality. Using the toolset, this will be the
class-level javadoc description provided.
- - parameters - Specifications for the parameters
+
- parameters - Specifications for the parameters
which this Mojo uses. Each parameter is specified in a
parameter sub-element. Parameters are discusses in
detail below.
@@ -347,47 +345,47 @@
plugin descriptor as follows:
- - name (detected) - The name of the parameter, to
+
- name (detected) - The name of the parameter, to
be used in configuring this parameter from the Mojo's declared
defaults (discussed below) or from the POM. Using the toolset,
this is detected as the java field name. It cannot be
specified in an annotation.
- - alias (@parameter alias="myAlias") - Specifies
+
- alias (@parameter alias="myAlias") - 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.
Optional.
- - type (detected) - The type of this parameter.
+
- type (detected) - The type of this parameter.
This is used to validate the result of any expressions used to
calculate the value which should be injected into the Mojo for this
parameter. Using the toolset, this is detected as the class of
this parameter's java field. It cannot be specified in an
annotation.
- - required (@required) - Whether this parameter is
+
- required (@required) - 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 half-state. Optional. Specification of
this annotation flags the parameter as required; there is
no true/false value.
- - editable (@readonly) - Specifies that this
+
- editable (@readonly) - 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 POM elements rather than plugin
configurations, as in the case where you want to use the artifact's
final name as a parameter. In this case, you want the user to
- modify <build><finalName/></build> rather than
+ modify <build><finalName/></build> rather than
specifying a value for finalName directly in the plugin
configuration section. It is also useful to ensure that - for
example - a List-typed parameter which expects items of type
Artifact doesn't get a List full of Strings. Optional.
Specification of this annotation flags the parameter as
non-editable; there is no true/false value.
- - description (detected) - The description for
+
- description (detected) - The description for
what this parameter is used for inside the Mojo. Using the
toolset, this is detected as the javadoc description for
the field. It cannot be specified as an annotation.
- expression
- (@parameter expression="${someExpression}") - Specifies
+ (@parameter expression="${someExpression}") - Specifies
the expression used to calculate the value to be injected into this
parameter of the Mojo at buildtime. This is commonly used to refer
to specific elements in the POM, such as
@@ -397,7 +395,7 @@
assumed, which can only be satisfied from POM configuration or
System properties. The use of '${' and '}' is required to
delimit actual expressions which may be evaluated.
- - deprecated (@deprecated) - Marks a parameter as
+
- deprecated (@deprecated) - Marks a parameter as
deprecated. The rules on deprecation are the same as normal java
with language elements. This will trigger a warning when a user
tries to configure a parameter marked as deprecated.
diff --git a/maven-site/src/site/xdoc/docs-required.xml b/maven-site/src/site/xdoc/docs-required.xml
index 135fe4f61c..58438a2c56 100644
--- a/maven-site/src/site/xdoc/docs-required.xml
+++ b/maven-site/src/site/xdoc/docs-required.xml
@@ -21,10 +21,11 @@
- dependency management
- plugin management
- plugin configuration
+ - plugin downloading
Documentation for plugin authors
- - plugin architecture
+ - plugin writing guide
Documentation for Maven developers