@Mojo(name="report", threadSafe=true) @Execute(phase=PROCESS_CLASSES) public class PluginReport extends AbstractMavenReport
plugin-info.html
plugin overview page,
and one goal-mojo.html
per goal.Modifier and Type | Field and Description |
---|---|
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
|
CATEGORY_PROJECT_INFORMATION, CATEGORY_PROJECT_REPORTS, ROLE
Constructor and Description |
---|
PluginReport() |
Modifier and Type | Method and Description |
---|---|
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 org.apache.maven.project.MavenProject |
getProject() |
protected Renderer |
getSiteRenderer() |
closeReport, execute, generate, generate, generate, getCategoryName, getInputEncoding, getOutputEncoding, getReportOutputDirectory, getSink, getSinkFactory, isExternalReport, setReportOutputDirectory
getLog, getPluginContext, setLog, setPluginContext
@Component protected MojoScanner mojoScanner
@Parameter(property="goalPrefix") protected String goalPrefix
For example, horsefeature-maven-plugin becomes horsefeature.
(There is a special for maven-plugin-plugin; it is mapped to 'plugin'.
@Parameter(defaultValue="${project.artifacts}", required=true, readonly=true) protected Set<Artifact> dependencies
@Parameter(defaultValue="${project.remoteArtifactRepositories}", required=true, readonly=true) protected List<ArtifactRepository> remoteRepos
@Parameter(defaultValue="${localRepository}", required=true, readonly=true) protected ArtifactRepository local
public PluginReport()
protected Renderer getSiteRenderer()
getSiteRenderer
in class AbstractMavenReport
protected String getOutputDirectory()
getOutputDirectory
in class AbstractMavenReport
protected org.apache.maven.project.MavenProject getProject()
getProject
in class AbstractMavenReport
public boolean canGenerateReport()
canGenerateReport
in interface MavenReport
canGenerateReport
in class AbstractMavenReport
protected void executeReport(Locale locale) throws MavenReportException
executeReport
in class AbstractMavenReport
MavenReportException
public String getDescription(Locale locale)
public String getOutputName()
protected static ResourceBundle getBundle(Locale locale)
locale
- not nullCopyright © 2004–2016 The Apache Software Foundation. All rights reserved.