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:
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) public class InvokerReport extends org.apache.maven.reporting.AbstractMavenReportGenerate 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 siteto 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.I18Ni18nInternationalization component.protected FileoutputDirectoryThe output directory for the report.protected org.apache.maven.project.MavenProjectprojectThe Maven Project.protected org.apache.maven.doxia.siterenderer.RenderersiteRendererDoxia Site Renderer component.
-
Constructor Summary
Constructors Constructor Description InvokerReport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanGenerateReport()protected voidexecuteReport(Locale locale)StringgetDescription(Locale locale)StringgetName(Locale locale)protected StringgetOutputDirectory()StringgetOutputName()protected org.apache.maven.project.MavenProjectgetProject()protected org.apache.maven.doxia.siterenderer.RenderergetSiteRenderer()-
Methods inherited from class org.apache.maven.reporting.AbstractMavenReport
closeReport, execute, generate, generate, generate, getCategoryName, getInputEncoding, getOutputEncoding, getReportOutputDirectory, getSink, getSinkFactory, isExternalReport, setReportOutputDirectory
-
-
-
-
Field Detail
-
project
@Parameter(defaultValue="${project}", readonly=true, required=true) protected org.apache.maven.project.MavenProject projectThe Maven Project.
-
siteRenderer
@Component protected org.apache.maven.doxia.siterenderer.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 File outputDirectoryThe 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(Locale locale) throws org.apache.maven.reporting.MavenReportException
- Specified by:
executeReportin classorg.apache.maven.reporting.AbstractMavenReport- Throws:
org.apache.maven.reporting.MavenReportException
-
getOutputDirectory
protected String getOutputDirectory()
- Overrides:
getOutputDirectoryin classorg.apache.maven.reporting.AbstractMavenReport
-
getProject
protected org.apache.maven.project.MavenProject getProject()
- Overrides:
getProjectin classorg.apache.maven.reporting.AbstractMavenReport
-
getSiteRenderer
protected org.apache.maven.doxia.siterenderer.Renderer getSiteRenderer()
- Overrides:
getSiteRendererin classorg.apache.maven.reporting.AbstractMavenReport
-
getOutputName
public String getOutputName()
-
canGenerateReport
public boolean canGenerateReport()
- Specified by:
canGenerateReportin interfaceorg.apache.maven.reporting.MavenReport- Overrides:
canGenerateReportin classorg.apache.maven.reporting.AbstractMavenReport
-
-