org.apache.maven.reporting.MavenReport
@Mojo(name="baseline-report",
threadSafe=true,
defaultPhase=SITE)
public final class BaselineReport
extends org.apache.maven.plugin.AbstractMojo
implements org.apache.maven.reporting.MavenReport
Modifier and Type | Field | Description |
---|---|---|
protected org.sonatype.plexus.build.incremental.BuildContext |
buildContext |
|
protected String |
comparisonArtifactId |
Artifact to compare the current code against.
|
protected String |
comparisonClassifier |
Classifier for the artifact to compare the current code against.
|
protected String |
comparisonGroupId |
Group id to compare the current code against.
|
protected String |
comparisonPackaging |
Artifact to compare the current code against.
|
protected String |
comparisonVersion |
Version to compare the current code against.
|
protected org.apache.maven.artifact.factory.ArtifactFactory |
factory |
|
protected boolean |
failOnError |
Whether to fail on errors.
|
protected boolean |
failOnWarning |
Whether to fail on warnings.
|
protected org.apache.maven.project.MavenProject |
project |
|
protected org.apache.maven.artifact.resolver.ArtifactResolver |
resolver |
|
protected org.apache.maven.execution.MavenSession |
session |
|
protected boolean |
skip |
Flag to easily skip execution.
|
protected List<String> |
supportedProjectTypes |
Project types which this plugin supports.
|
Constructor | Description |
---|---|
BaselineReport() |
Modifier and Type | Method | Description |
---|---|---|
boolean |
canGenerateReport() |
|
protected void |
close(Object context) |
|
protected void |
endBaseline(Object context) |
|
protected void |
endDiff(Object context,
int depth) |
|
protected void |
endPackage(Object context) |
|
void |
execute() |
|
protected void |
execute(Object context) |
|
void |
generate(org.codehaus.doxia.sink.Sink sink,
Locale locale) |
|
String |
getCategoryName() |
|
String |
getDescription(Locale locale) |
|
String |
getName(Locale locale) |
|
String |
getOutputName() |
|
File |
getReportOutputDirectory() |
|
protected Object |
init(Object context) |
|
boolean |
isExternalReport() |
|
void |
setReportOutputDirectory(File outputDirectory) |
|
protected void |
startBaseline(Object context,
String generationDate,
String bundleName,
String currentVersion,
String previousVersion) |
|
protected void |
startDiff(Object context,
int depth,
String type,
String name,
String delta,
String shortDelta) |
|
protected void |
startPackage(Object context,
boolean mismatch,
String packageName,
String shortDelta,
String delta,
aQute.bnd.version.Version newerVersion,
aQute.bnd.version.Version olderVersion,
aQute.bnd.version.Version suggestedVersion,
org.apache.felix.bundleplugin.baseline.DiffMessage diffMessage,
Map<String,String> attributes) |
@Parameter(property="baseline.skip", defaultValue="false") protected boolean skip
@Parameter(property="baseline.failOnError", defaultValue="true") protected boolean failOnError
@Parameter(property="baseline.failOnWarning", defaultValue="false") protected boolean failOnWarning
@Parameter(defaultValue="${project}", readonly=true, required=true) protected org.apache.maven.project.MavenProject project
@Parameter(defaultValue="${session}", readonly=true, required=true) protected org.apache.maven.execution.MavenSession session
@Component protected org.apache.maven.artifact.resolver.ArtifactResolver resolver
@Component protected org.apache.maven.artifact.factory.ArtifactFactory factory
@Parameter(defaultValue="${project.groupId}", property="comparisonGroupId") protected String comparisonGroupId
@Parameter(defaultValue="${project.artifactId}", property="comparisonArtifactId") protected String comparisonArtifactId
@Parameter(defaultValue="(,${project.version})", property="comparisonVersion") protected String comparisonVersion
@Parameter(defaultValue="${project.packaging}", property="comparisonPackaging") protected String comparisonPackaging
@Parameter(property="comparisonClassifier") protected String comparisonClassifier
@Parameter protected List<String> supportedProjectTypes
@Component protected org.sonatype.plexus.build.incremental.BuildContext buildContext
protected void close(Object context)
protected void startBaseline(Object context, String generationDate, String bundleName, String currentVersion, String previousVersion)
protected void startPackage(Object context, boolean mismatch, String packageName, String shortDelta, String delta, aQute.bnd.version.Version newerVersion, aQute.bnd.version.Version olderVersion, aQute.bnd.version.Version suggestedVersion, org.apache.felix.bundleplugin.baseline.DiffMessage diffMessage, Map<String,String> attributes)
protected void startDiff(Object context, int depth, String type, String name, String delta, String shortDelta)
protected void endDiff(Object context, int depth)
protected void endPackage(Object context)
protected void endBaseline(Object context)
public boolean canGenerateReport()
canGenerateReport
in interface org.apache.maven.reporting.MavenReport
public void generate(org.codehaus.doxia.sink.Sink sink, Locale locale) throws org.apache.maven.reporting.MavenReportException
generate
in interface org.apache.maven.reporting.MavenReport
org.apache.maven.reporting.MavenReportException
public String getCategoryName()
getCategoryName
in interface org.apache.maven.reporting.MavenReport
public String getDescription(Locale locale)
getDescription
in interface org.apache.maven.reporting.MavenReport
public String getName(Locale locale)
getName
in interface org.apache.maven.reporting.MavenReport
public String getOutputName()
getOutputName
in interface org.apache.maven.reporting.MavenReport
public File getReportOutputDirectory()
getReportOutputDirectory
in interface org.apache.maven.reporting.MavenReport
public boolean isExternalReport()
isExternalReport
in interface org.apache.maven.reporting.MavenReport
public void setReportOutputDirectory(File outputDirectory)
setReportOutputDirectory
in interface org.apache.maven.reporting.MavenReport
public final void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
protected void execute(Object context) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
Copyright © 2006–2019 The Apache Software Foundation. All rights reserved.