@Mojo(name="report-aggregate", aggregator=true, defaultPhase=SITE) @Execute(phase=PACKAGE) public class ReportAggregateMojo extends ReportMojo
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-text
reporter
has an append
boolean parameter for this. If you're using some other reporter, consult its documentation on
how to append to a report instead of overwriting it.
alwaysCheckForReleaseVersion, analysisConfiguration, analysisConfigurationFiles, checkDependencies, disallowedExtensions, expandProperties, failOnMissingConfigurationFiles, failOnUnresolvedArtifacts, failOnUnresolvedDependencies, generateSiteReport, newArtifacts, newVersion, oldArtifacts, oldVersion, outputDirectory, pipelineConfiguration, reportCriticality, reportSeverity, repositorySystem, repositorySystemSession, resolveProvidedDependencies, resolveTransitiveProvidedDependencies, skip, versionFormat
Constructor and Description |
---|
ReportAggregateMojo() |
Modifier and Type | Method and Description |
---|---|
boolean |
canGenerateReport() |
protected void |
executeReport(Locale locale) |
protected static org.apache.maven.model.Plugin |
findRevapi(org.apache.maven.project.MavenProject project) |
protected static String[] |
getArtifacts(org.codehaus.plexus.util.xml.Xpp3Dom config,
String artifactTag) |
String |
getDescription(Locale locale) |
protected String |
getOutputDirectory() |
String |
getOutputName() |
File |
getReportOutputDirectory() |
protected void |
reportBody(ReportTimeReporter reporterWithResults,
org.revapi.API oldAPI,
org.revapi.API newAPI,
org.apache.maven.doxia.sink.Sink sink,
ResourceBundle messages) |
void |
setReportOutputDirectory(File reportOutputDirectory) |
endReport, getBundle, getName, getProject, niceList, prepareAnalyzer, startReport
closeReport, execute, generate, generate, generate, getCategoryName, getInputEncoding, getOutputEncoding, getSink, getSinkFactory, getSiteRenderer, isExternalReport
public String getOutputName()
getOutputName
in interface org.apache.maven.reporting.MavenReport
getOutputName
in class ReportMojo
public File getReportOutputDirectory()
getReportOutputDirectory
in interface org.apache.maven.reporting.MavenReport
getReportOutputDirectory
in class org.apache.maven.reporting.AbstractMavenReport
protected String getOutputDirectory()
getOutputDirectory
in class ReportMojo
public void setReportOutputDirectory(File reportOutputDirectory)
setReportOutputDirectory
in interface org.apache.maven.reporting.MavenReport
setReportOutputDirectory
in class org.apache.maven.reporting.AbstractMavenReport
public String getDescription(Locale locale)
getDescription
in interface org.apache.maven.reporting.MavenReport
getDescription
in class ReportMojo
public boolean canGenerateReport()
canGenerateReport
in interface org.apache.maven.reporting.MavenReport
canGenerateReport
in class ReportMojo
protected void executeReport(Locale locale) throws org.apache.maven.reporting.MavenReportException
executeReport
in class ReportMojo
org.apache.maven.reporting.MavenReportException
protected void reportBody(ReportTimeReporter reporterWithResults, org.revapi.API oldAPI, org.revapi.API newAPI, org.apache.maven.doxia.sink.Sink sink, ResourceBundle messages)
reportBody
in class ReportMojo
protected static org.apache.maven.model.Plugin findRevapi(org.apache.maven.project.MavenProject project)
Copyright © 2014-2021 Lukas Krejci. All Rights Reserved.