Package org.apache.maven.plugin.plugin
Class PluginReport
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.reporting.AbstractMavenReport
org.apache.maven.plugin.plugin.PluginReport
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
,org.apache.maven.reporting.MavenMultiPageReport
,org.apache.maven.reporting.MavenReport
@Mojo(name="report",
threadSafe=true)
@Execute(phase=PROCESS_CLASSES)
public class PluginReport
extends org.apache.maven.reporting.AbstractMavenReport
Generates the Plugin's documentation report:
plugin-info.html
plugin overview page,
and one goal-mojo.html
per goal.- Since:
- 2.0
- Author:
- Stephane Nicoll, Vincent Siveton
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
The goal prefix that will appear before the ":".protected org.apache.maven.artifact.repository.ArtifactRepository
Location of the local repository.protected MojoScanner
Mojo scanner tools.protected List<org.apache.maven.artifact.repository.ArtifactRepository>
List of Remote Repositories used by the resolverFields inherited from interface org.apache.maven.reporting.MavenReport
CATEGORY_PROJECT_INFORMATION, CATEGORY_PROJECT_REPORTS, ROLE
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
protected void
executeReport(Locale locale)
protected static ResourceBundle
getDescription(Locale locale)
protected String
protected org.apache.maven.project.MavenProject
protected org.apache.maven.doxia.siterenderer.Renderer
Methods inherited from class org.apache.maven.reporting.AbstractMavenReport
closeReport, execute, generate, generate, generate, getCategoryName, getInputEncoding, getOutputEncoding, getReportOutputDirectory, getSink, getSinkFactory, isExternalReport, setReportOutputDirectory
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
mojoScanner
Mojo scanner tools. -
goalPrefix
The goal prefix that will appear before the ":". By default, this plugin applies a heuristic to derive a heuristic from the plugin's artifactId.
It removes any occurrences of the regular expression -?maven-?, and then removes any occurrences of -?plugin-?.
For example, horsefeature-maven-plugin becomes horsefeature.
(There is a special case for maven-plugin-plugin: it is mapped to 'plugin')
- Since:
- 2.4
-
remoteRepos
@Parameter(defaultValue="${project.remoteArtifactRepositories}", required=true, readonly=true) protected List<org.apache.maven.artifact.repository.ArtifactRepository> remoteReposList of Remote Repositories used by the resolver- Since:
- 3.0
-
local
@Parameter(defaultValue="${localRepository}", required=true, readonly=true) protected org.apache.maven.artifact.repository.ArtifactRepository localLocation of the local repository.- Since:
- 3.0
-
-
Constructor Details
-
PluginReport
public PluginReport()
-
-
Method Details
-
getSiteRenderer
- Overrides:
getSiteRenderer
in classorg.apache.maven.reporting.AbstractMavenReport
-
getOutputDirectory
- Overrides:
getOutputDirectory
in classorg.apache.maven.reporting.AbstractMavenReport
-
getProject
- Overrides:
getProject
in classorg.apache.maven.reporting.AbstractMavenReport
-
canGenerateReport
- Specified by:
canGenerateReport
in interfaceorg.apache.maven.reporting.MavenReport
- Overrides:
canGenerateReport
in classorg.apache.maven.reporting.AbstractMavenReport
-
executeReport
- Specified by:
executeReport
in classorg.apache.maven.reporting.AbstractMavenReport
- Throws:
org.apache.maven.reporting.MavenReportException
-
getDescription
-
getName
-
getOutputName
-
getBundle
- Parameters:
locale
- not null- Returns:
- the bundle for this report
-