Class BaselineReport
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.felix.bundleplugin.baseline.BaselineReport
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo,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
BND Baseline report.
- Since:
- 2.4.1
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.sonatype.plexus.build.incremental.BuildContextprotected StringArtifact to compare the current code against.protected StringClassifier for the artifact to compare the current code against.protected StringGroup id to compare the current code against.protected StringArtifact to compare the current code against.protected StringVersion to compare the current code against.protected org.apache.maven.artifact.factory.ArtifactFactoryprotected booleanWhether to fail on errors.protected booleanWhether to fail on warnings.protected org.apache.maven.project.MavenProjectprotected org.apache.maven.artifact.resolver.ArtifactResolverprotected org.apache.maven.execution.MavenSessionprotected booleanFlag to easily skip execution.Project types which this plugin supports.Fields inherited from interface org.apache.maven.reporting.MavenReport
CATEGORY_PROJECT_INFORMATION, CATEGORY_PROJECT_REPORTS, ROLEFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected voidprotected voidendBaseline(Object context) protected voidprotected voidendPackage(Object context) final voidexecute()protected voidvoidgetDescription(Locale locale) protected ObjectbooleanvoidsetReportOutputDirectory(File outputDirectory) protected voidstartBaseline(Object context, String generationDate, String bundleName, String currentVersion, String previousVersion) protected voidprotected voidstartPackage(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) Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
skip
@Parameter(property="baseline.skip", defaultValue="false") protected boolean skipFlag to easily skip execution. -
failOnError
@Parameter(property="baseline.failOnError", defaultValue="true") protected boolean failOnErrorWhether to fail on errors. -
failOnWarning
@Parameter(property="baseline.failOnWarning", defaultValue="false") protected boolean failOnWarningWhether to fail on warnings. -
project
@Parameter(defaultValue="${project}", readonly=true, required=true) protected org.apache.maven.project.MavenProject project -
session
@Parameter(defaultValue="${session}", readonly=true, required=true) protected org.apache.maven.execution.MavenSession session -
resolver
@Component protected org.apache.maven.artifact.resolver.ArtifactResolver resolver -
factory
@Component protected org.apache.maven.artifact.factory.ArtifactFactory factory -
comparisonGroupId
@Parameter(defaultValue="${project.groupId}", property="comparisonGroupId") protected String comparisonGroupIdGroup id to compare the current code against. -
comparisonArtifactId
@Parameter(defaultValue="${project.artifactId}", property="comparisonArtifactId") protected String comparisonArtifactIdArtifact to compare the current code against. -
comparisonVersion
@Parameter(defaultValue="(,${project.version})", property="comparisonVersion") protected String comparisonVersionVersion to compare the current code against. -
comparisonPackaging
@Parameter(defaultValue="${project.packaging}", property="comparisonPackaging") protected String comparisonPackagingArtifact to compare the current code against. -
comparisonClassifier
Classifier for the artifact to compare the current code against. -
supportedProjectTypes
Project types which this plugin supports. -
buildContext
@Component protected org.sonatype.plexus.build.incremental.BuildContext buildContext
-
-
Constructor Details
-
BaselineReport
public BaselineReport()
-
-
Method Details
-
init
-
close
-
startBaseline
-
startPackage
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) -
startDiff
-
endDiff
-
endPackage
-
endBaseline
-
canGenerateReport
public boolean canGenerateReport()- Specified by:
canGenerateReportin interfaceorg.apache.maven.reporting.MavenReport
-
generate
public void generate(org.codehaus.doxia.sink.Sink sink, Locale locale) throws org.apache.maven.reporting.MavenReportException - Specified by:
generatein interfaceorg.apache.maven.reporting.MavenReport- Throws:
org.apache.maven.reporting.MavenReportException
-
getCategoryName
- Specified by:
getCategoryNamein interfaceorg.apache.maven.reporting.MavenReport
-
getDescription
- Specified by:
getDescriptionin interfaceorg.apache.maven.reporting.MavenReport
-
getName
- Specified by:
getNamein interfaceorg.apache.maven.reporting.MavenReport
-
getOutputName
- Specified by:
getOutputNamein interfaceorg.apache.maven.reporting.MavenReport
-
getReportOutputDirectory
- Specified by:
getReportOutputDirectoryin interfaceorg.apache.maven.reporting.MavenReport
-
isExternalReport
public boolean isExternalReport()- Specified by:
isExternalReportin interfaceorg.apache.maven.reporting.MavenReport
-
setReportOutputDirectory
- Specified by:
setReportOutputDirectoryin interfaceorg.apache.maven.reporting.MavenReport
-
execute
public final void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
execute
protected void execute(Object context) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException - Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-