public class MavenReportExecution extends Object
Since Maven 3, reporting plugins (ie MavenReport
s) are not anymore prepared by Maven core.
This class will store all necessary information for later MavenReport
generation/execution:
MavenReport
,ClassLoader
for the report generation,Plugin
associated to the MavenReport
.
With this bean, a plugin wanting to generate a report (= "execute" the report) has to call the
MavenReport.generate(org.apache.maven.doxia.sink.Sink, java.util.Locale)
method, setting the current Thread
classLoader first with classLoader
.
This bean is instantiated by MavenReportExecutor
.
Constructor and Description |
---|
MavenReportExecution(org.apache.maven.reporting.MavenReport mavenReport) |
MavenReportExecution(org.apache.maven.model.Plugin plugin,
org.apache.maven.reporting.MavenReport mavenReport,
ClassLoader classLoader,
boolean userDefined) |
MavenReportExecution(String goal,
org.apache.maven.model.Plugin plugin,
org.apache.maven.reporting.MavenReport mavenReport,
ClassLoader classLoader,
boolean userDefined) |
Modifier and Type | Method and Description |
---|---|
boolean |
canGenerateReport()
execute Maven Report's
canGenerate() with adequate classloader. |
ClassLoader |
getClassLoader() |
String |
getGoal() |
org.apache.maven.reporting.MavenReport |
getMavenReport() |
org.apache.maven.model.Plugin |
getPlugin() |
boolean |
isUserDefined() |
void |
setClassLoader(ClassLoader classLoader) |
void |
setMavenReport(org.apache.maven.reporting.MavenReport mavenReport) |
void |
setPlugin(org.apache.maven.model.Plugin plugin) |
void |
setUserDefined(boolean userDefined) |
public MavenReportExecution(String goal, org.apache.maven.model.Plugin plugin, org.apache.maven.reporting.MavenReport mavenReport, ClassLoader classLoader, boolean userDefined)
public MavenReportExecution(org.apache.maven.model.Plugin plugin, org.apache.maven.reporting.MavenReport mavenReport, ClassLoader classLoader, boolean userDefined)
public MavenReportExecution(org.apache.maven.reporting.MavenReport mavenReport)
public boolean canGenerateReport() throws org.apache.maven.reporting.MavenReportException
canGenerate()
with adequate classloader.canGenerate()
resultorg.apache.maven.reporting.MavenReportException
- if anypublic org.apache.maven.reporting.MavenReport getMavenReport()
public void setMavenReport(org.apache.maven.reporting.MavenReport mavenReport)
public ClassLoader getClassLoader()
public void setClassLoader(ClassLoader classLoader)
public void setPlugin(org.apache.maven.model.Plugin plugin)
public org.apache.maven.model.Plugin getPlugin()
public String getGoal()
public boolean isUserDefined()
public void setUserDefined(boolean userDefined)
Copyright © 2002–2024 The Apache Software Foundation. All rights reserved.