org.apache.maven.plugin.plugin
Class PluginReport

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.apache.maven.reporting.AbstractMavenReport
          extended by org.apache.maven.plugin.plugin.PluginReport
All Implemented Interfaces:
ContextEnabled, Mojo, MavenMultiPageReport, MavenReport

public class PluginReport
extends AbstractMavenReport

Generates the Plugin's documentation report.

Since:
2.0
Version:
$Id: PluginReport.java 1338439 2012-05-14 21:33:29Z olamy $
Author:
Stephane Nicoll, Vincent Siveton
Is defined to be executed in:
phase:
process-classes
Is defined by the goal name:
report

Field Summary
protected  Set<Artifact> dependencies
          The set of dependencies for the current project
protected  String goalPrefix
          The goal prefix that will appear before the ":".
protected  ArtifactRepository local
          Location of the local repository.
protected  MojoScanner mojoScanner
          Mojo scanner tools.
protected  List<ArtifactRepository> remoteRepos
          List of Remote Repositories used by the resolver
 
Fields 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
PluginReport()
           
 
Method Summary
 boolean canGenerateReport()
          
protected  void executeReport(Locale locale)
          
protected static ResourceBundle getBundle(Locale locale)
           
 String getDescription(Locale locale)
          
 String getName(Locale locale)
          
protected  String getOutputDirectory()
          
 String getOutputName()
          
protected  MavenProject getProject()
          
protected  Renderer getSiteRenderer()
          
 
Methods inherited from class org.apache.maven.reporting.AbstractMavenReport
closeReport, execute, generate, generate, generate, getCategoryName, getReportOutputDirectory, getSink, getSinkFactory, isExternalReport, setReportOutputDirectory
 
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mojoScanner

protected MojoScanner mojoScanner
Mojo scanner tools.

Is a Plexus component defined by:

goalPrefix

protected String 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 for maven-plugin-plugin; it is mapped to 'plugin'.

Since:
2.4
Is defined by:
expression:
${goalPrefix}

dependencies

protected Set<Artifact> dependencies
The set of dependencies for the current project


remoteRepos

protected List<ArtifactRepository> remoteRepos
List of Remote Repositories used by the resolver

Since:
3.0
Is defined by:
expression:
${project.remoteArtifactRepositories}
Is readonly.
Is required.

local

protected ArtifactRepository local
Location of the local repository.

Since:
3.0
Is defined by:
expression:
${localRepository}
Is readonly.
Is required.
Constructor Detail

PluginReport

public PluginReport()
Method Detail

getSiteRenderer

protected Renderer getSiteRenderer()

Specified by:
getSiteRenderer in class AbstractMavenReport

getOutputDirectory

protected String getOutputDirectory()

Specified by:
getOutputDirectory in class AbstractMavenReport

getProject

protected MavenProject getProject()

Specified by:
getProject in class AbstractMavenReport

canGenerateReport

public boolean canGenerateReport()

Specified by:
canGenerateReport in interface MavenReport
Overrides:
canGenerateReport in class AbstractMavenReport

executeReport

protected void executeReport(Locale locale)
                      throws MavenReportException

Specified by:
executeReport in class AbstractMavenReport
Throws:
MavenReportException

getDescription

public String getDescription(Locale locale)


getName

public String getName(Locale locale)


getOutputName

public String getOutputName()


getBundle

protected static ResourceBundle getBundle(Locale locale)
Parameters:
locale - not null
Returns:
the bundle for this report


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.