Package org.nuiton.config.plugin
Class AggregateReportMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.reporting.AbstractMavenReport
org.nuiton.config.plugin.AggregateReportMojo
- 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="aggregate-report",
aggregator=true,
requiresReports=true,
requiresDependencyResolution=RUNTIME)
@Execute(phase=COMPILE)
public class AggregateReportMojo
extends org.apache.maven.reporting.AbstractMavenReport
Generates a report for declared application config via the
ApplicationConfigProvider mechanism on a aggregate mojo.
For each configuration, you can find all his options and actions.
- Since:
- 3.0
- Author:
- Tony - dev@tchemit.fr
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringoutputEncodingReport output encoding. -
Constructor Summary
Constructors Constructor Description AggregateReportMojo() -
Method Summary
Modifier and Type Method Description booleancanGenerateReport()protected java.lang.ClassLoadercreateClassLoader()protected voidexecuteReport(java.util.Locale locale)java.lang.StringgetCategoryName()java.lang.StringgetDescription(java.util.Locale locale)java.lang.StringgetName(java.util.Locale locale)protected java.lang.StringgetOutputDirectory()java.lang.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, getInputEncoding, getOutputEncoding, getReportOutputDirectory, getSink, getSinkFactory, isExternalReport, setReportOutputDirectory
-
Field Details
-
outputEncoding
@Parameter(property="config.outputEncoding", defaultValue="${project.reporting.outputEncoding}", required=true) protected java.lang.String outputEncodingReport output encoding. Note that this parameter is only relevant if the goal is run from the command line or from the default build lifecycle. If the goal is run indirectly as part of a site generation, the output encoding configured in the Maven Site Plugin is used instead.
-
-
Constructor Details
-
AggregateReportMojo
public AggregateReportMojo()
-
-
Method Details
-
createClassLoader
protected java.lang.ClassLoader createClassLoader() throws org.apache.maven.reporting.MavenReportException- Throws:
org.apache.maven.reporting.MavenReportException
-
getOutputName
public java.lang.String getOutputName() -
getDescription
public java.lang.String getDescription(java.util.Locale locale) -
getName
public java.lang.String getName(java.util.Locale locale) -
getCategoryName
public java.lang.String getCategoryName()- Specified by:
getCategoryNamein interfaceorg.apache.maven.reporting.MavenReport- Overrides:
getCategoryNamein classorg.apache.maven.reporting.AbstractMavenReport
-
canGenerateReport
public boolean canGenerateReport()- Specified by:
canGenerateReportin interfaceorg.apache.maven.reporting.MavenReport- Overrides:
canGenerateReportin classorg.apache.maven.reporting.AbstractMavenReport
-
getSiteRenderer
protected org.apache.maven.doxia.siterenderer.Renderer getSiteRenderer()- Overrides:
getSiteRendererin classorg.apache.maven.reporting.AbstractMavenReport
-
getOutputDirectory
protected java.lang.String getOutputDirectory()- Overrides:
getOutputDirectoryin classorg.apache.maven.reporting.AbstractMavenReport
-
getProject
protected org.apache.maven.project.MavenProject getProject()- Overrides:
getProjectin classorg.apache.maven.reporting.AbstractMavenReport
-
executeReport
protected void executeReport(java.util.Locale locale) throws org.apache.maven.reporting.MavenReportException- Specified by:
executeReportin classorg.apache.maven.reporting.AbstractMavenReport- Throws:
org.apache.maven.reporting.MavenReportException
-