Package org.apache.maven.plugins.invoker
Class InvokerReport
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.apache.maven.reporting.AbstractMavenReport
-
- org.apache.maven.plugins.invoker.InvokerReport
-
- All Implemented Interfaces:
ContextEnabled
,Mojo
,MavenMultiPageReport
,MavenReport
@Mojo(name="report", threadSafe=true) public class InvokerReport extends AbstractMavenReport
Generate a report based on the results of the Maven invocations. Note: This mojo doesn't fork any lifecycle, if you have a clean working copy, you have to use a command likemvn clean integration-test site
to ensure the build results are present when this goal is invoked.- Since:
- 1.4
- Author:
- Olivier Lamy
-
-
Field Summary
Fields Modifier and Type Field Description protected org.codehaus.plexus.i18n.I18N
i18n
Internationalization component.protected java.io.File
outputDirectory
The output directory for the report.protected MavenProject
project
The Maven Project.protected Renderer
siteRenderer
Doxia Site Renderer component.-
Fields inherited from interface org.apache.maven.reporting.MavenReport
CATEGORY_PROJECT_INFORMATION, CATEGORY_PROJECT_REPORTS, ROLE
-
-
Constructor Summary
Constructors Constructor Description InvokerReport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canGenerateReport()
protected void
executeReport(java.util.Locale locale)
java.lang.String
getDescription(java.util.Locale locale)
java.lang.String
getName(java.util.Locale locale)
protected java.lang.String
getOutputDirectory()
java.lang.String
getOutputName()
protected MavenProject
getProject()
protected Renderer
getSiteRenderer()
-
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 Detail
-
project
@Parameter(defaultValue="${project}", readonly=true, required=true) protected MavenProject project
The Maven Project.
-
siteRenderer
@Component protected Renderer siteRenderer
Doxia Site Renderer component.
-
i18n
@Component protected org.codehaus.plexus.i18n.I18N i18n
Internationalization component.
-
outputDirectory
@Parameter(defaultValue="${project.reporting.outputDirectory}", required=true) protected java.io.File outputDirectory
The output directory for the report. Note that this parameter is only evaluated if the goal is run directly from the command line. If the goal is run indirectly as part of a site generation, the output directory configured in the Maven Site Plugin is used instead.
-
-
Method Detail
-
executeReport
protected void executeReport(java.util.Locale locale) throws MavenReportException
- Specified by:
executeReport
in classAbstractMavenReport
- Throws:
MavenReportException
-
getOutputDirectory
protected java.lang.String getOutputDirectory()
- Overrides:
getOutputDirectory
in classAbstractMavenReport
-
getProject
protected MavenProject getProject()
- Overrides:
getProject
in classAbstractMavenReport
-
getSiteRenderer
protected Renderer getSiteRenderer()
- Overrides:
getSiteRenderer
in classAbstractMavenReport
-
getDescription
public java.lang.String getDescription(java.util.Locale locale)
-
getName
public java.lang.String getName(java.util.Locale locale)
-
getOutputName
public java.lang.String getOutputName()
-
canGenerateReport
public boolean canGenerateReport()
- Specified by:
canGenerateReport
in interfaceMavenReport
- Overrides:
canGenerateReport
in classAbstractMavenReport
-
-