Class BaselinePlugin
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.felix.bundleplugin.baseline.AbstractBaselinePlugin
org.apache.felix.bundleplugin.baseline.BaselinePlugin
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
@Mojo(name="baseline",
threadSafe=true,
requiresDependencyResolution=TEST,
defaultPhase=VERIFY)
public final class BaselinePlugin
extends AbstractBaselinePlugin
BND Baseline check between two bundles.
- Since:
- 2.4.1
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanWhether to log the results to the console or not, true by default.private static final Stringprivate FileAn XML output file to render to${project.build.directory}/baseline.xml.Fields inherited from class AbstractBaselinePlugin
buildContext, comparisonArtifactId, comparisonClassifier, comparisonGroupId, comparisonPackaging, comparisonVersion, factory, failOnError, failOnWarning, project, resolver, session, skip, supportedProjectTypesFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidendBaseline(Object context) protected voidprotected voidendPackage(Object context) protected Objectprivate booleanprivate voidprivate voidsimpleElement(org.codehaus.plexus.util.xml.XMLWriter xmlWriter, String name, String value) protected voidstartBaseline(Object context, String generationDate, String bundleName, String currentVersion, String previousVersion) protected voidprotected voidstartPackage(Object context, boolean mismatch, String name, String shortDelta, String delta, aQute.bnd.version.Version newerVersion, aQute.bnd.version.Version olderVersion, aQute.bnd.version.Version suggestedVersion, DiffMessage diffMessage, Map<String, String> attributes) Methods inherited from class AbstractBaselinePlugin
execute, executeMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
TABLE_PATTERN
- See Also:
-
xmlOutputFile
An XML output file to render to${project.build.directory}/baseline.xml. -
logResults
@Parameter(defaultValue="true", property="logResults") private boolean logResultsWhether to log the results to the console or not, true by default.
-
-
Constructor Details
-
BaselinePlugin
public BaselinePlugin()
-
-
Method Details
-
init
- Specified by:
initin classAbstractBaselinePlugin
-
close
- Specified by:
closein classAbstractBaselinePlugin
-
startBaseline
protected void startBaseline(Object context, String generationDate, String bundleName, String currentVersion, String previousVersion) - Specified by:
startBaselinein classAbstractBaselinePlugin
-
startPackage
protected void startPackage(Object context, boolean mismatch, String name, String shortDelta, String delta, aQute.bnd.version.Version newerVersion, aQute.bnd.version.Version olderVersion, aQute.bnd.version.Version suggestedVersion, DiffMessage diffMessage, Map<String, String> attributes) - Specified by:
startPackagein classAbstractBaselinePlugin
-
startDiff
-
endDiff
- Specified by:
endDiffin classAbstractBaselinePlugin
-
endPackage
- Specified by:
endPackagein classAbstractBaselinePlugin
-
endBaseline
- Specified by:
endBaselinein classAbstractBaselinePlugin
-
isLoggingResults
private boolean isLoggingResults() -
log
-
simpleElement
-