Package org.revapi.maven
Class ReportAggregateMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.apache.maven.reporting.AbstractMavenReport
-
- org.revapi.maven.ReportMojo
-
- org.revapi.maven.ReportAggregateMojo
-
- 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-aggregate", aggregator=true, defaultPhase=SITE) @Execute(phase=PACKAGE) public class ReportAggregateMojo extends ReportMojoUses the configuration supplied at the top level aggregator project to run analysis on all sub-projects.The artifacts to compare are taken from the configurations of the child projects while the configuration of Revapi and the extensions to use are taken from the aggregator project. The analyses are run in succession using a single instance of Revapi. Therefore you need to configure your custom Revapi reporter(s) to somehow not overwrite their reports, but append to it. The default site page generator can do this and the
revapi-reporter-textreporter has anappendboolean parameter for this. If you're using some other reporter, consult its documentation on how to append to a report instead of overwriting it.- Since:
- 0.5.0
- Author:
- Lukas Krejci
-
-
Field Summary
-
Fields inherited from class org.revapi.maven.ReportMojo
alwaysCheckForReleaseVersion, analysisConfiguration, analysisConfigurationFiles, checkDependencies, disallowedExtensions, expandProperties, failOnMissingConfigurationFiles, failOnUnresolvedArtifacts, failOnUnresolvedDependencies, generateSiteReport, newArtifacts, newPromotedDependencies, newVersion, oldArtifacts, oldPromotedDependencies, oldVersion, outputDirectory, pipelineConfiguration, promotedDependencies, reportCriticality, reportSeverity, repositorySystem, repositorySystemSession, resolveProvidedDependencies, resolveTransitiveProvidedDependencies, skip, versionFormat
-
-
Constructor Summary
Constructors Constructor Description ReportAggregateMojo()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanGenerateReport()protected voidexecuteReport(Locale locale)protected static org.apache.maven.model.PluginfindRevapi(org.apache.maven.project.MavenProject project)protected static String[]getArtifacts(org.codehaus.plexus.util.xml.Xpp3Dom config, String artifactTag)StringgetDescription(Locale locale)protected StringgetOutputDirectory()StringgetOutputName()FilegetReportOutputDirectory()protected voidreportBody(ReportTimeReporter reporterWithResults, org.revapi.API oldAPI, org.revapi.API newAPI, org.apache.maven.doxia.sink.Sink sink, ResourceBundle messages)voidsetReportOutputDirectory(File reportOutputDirectory)-
Methods inherited from class org.revapi.maven.ReportMojo
endReport, getBundle, getName, getProject, niceList, prepareAnalyzer, startReport
-
Methods inherited from class org.apache.maven.reporting.AbstractMavenReport
closeReport, execute, generate, generate, generate, getCategoryName, getInputEncoding, getOutputEncoding, getSink, getSinkFactory, getSiteRenderer, isExternalReport
-
-
-
-
Method Detail
-
getOutputName
public String getOutputName()
- Specified by:
getOutputNamein interfaceorg.apache.maven.reporting.MavenReport- Overrides:
getOutputNamein classReportMojo
-
getReportOutputDirectory
public File getReportOutputDirectory()
- Specified by:
getReportOutputDirectoryin interfaceorg.apache.maven.reporting.MavenReport- Overrides:
getReportOutputDirectoryin classorg.apache.maven.reporting.AbstractMavenReport
-
getOutputDirectory
protected String getOutputDirectory()
- Overrides:
getOutputDirectoryin classReportMojo
-
setReportOutputDirectory
public void setReportOutputDirectory(File reportOutputDirectory)
- Specified by:
setReportOutputDirectoryin interfaceorg.apache.maven.reporting.MavenReport- Overrides:
setReportOutputDirectoryin classorg.apache.maven.reporting.AbstractMavenReport
-
getDescription
public String getDescription(Locale locale)
- Specified by:
getDescriptionin interfaceorg.apache.maven.reporting.MavenReport- Overrides:
getDescriptionin classReportMojo
-
canGenerateReport
public boolean canGenerateReport()
- Specified by:
canGenerateReportin interfaceorg.apache.maven.reporting.MavenReport- Overrides:
canGenerateReportin classReportMojo
-
executeReport
protected void executeReport(Locale locale) throws org.apache.maven.reporting.MavenReportException
- Overrides:
executeReportin classReportMojo- Throws:
org.apache.maven.reporting.MavenReportException
-
reportBody
protected void reportBody(ReportTimeReporter reporterWithResults, org.revapi.API oldAPI, org.revapi.API newAPI, org.apache.maven.doxia.sink.Sink sink, ResourceBundle messages)
- Overrides:
reportBodyin classReportMojo
-
findRevapi
protected static org.apache.maven.model.Plugin findRevapi(org.apache.maven.project.MavenProject project)
-
-