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 boolean
Whether to log the results to the console or not, true by default.private static final String
private File
An XML output file to render to${project.build.directory}/baseline.xml
.Fields inherited from class org.apache.felix.bundleplugin.baseline.AbstractBaselinePlugin
buildContext, comparisonArtifactId, comparisonClassifier, comparisonGroupId, comparisonPackaging, comparisonVersion, factory, failOnError, failOnWarning, project, resolver, session, skip, supportedProjectTypes
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
endBaseline
(Object context) protected void
protected void
endPackage
(Object context) protected Object
private boolean
private void
private void
simpleElement
(org.codehaus.plexus.util.xml.XMLWriter xmlWriter, String name, String value) protected void
startBaseline
(Object context, String generationDate, String bundleName, String currentVersion, String previousVersion) protected void
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) Methods inherited from class org.apache.felix.bundleplugin.baseline.AbstractBaselinePlugin
execute, execute
Methods 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:
init
in classAbstractBaselinePlugin
-
close
- Specified by:
close
in classAbstractBaselinePlugin
-
startBaseline
protected void startBaseline(Object context, String generationDate, String bundleName, String currentVersion, String previousVersion) - Specified by:
startBaseline
in 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:
startPackage
in classAbstractBaselinePlugin
-
startDiff
protected void startDiff(Object context, int depth, String type, String name, String delta, String shortDelta) - Specified by:
startDiff
in classAbstractBaselinePlugin
-
endDiff
- Specified by:
endDiff
in classAbstractBaselinePlugin
-
endPackage
- Specified by:
endPackage
in classAbstractBaselinePlugin
-
endBaseline
- Specified by:
endBaseline
in classAbstractBaselinePlugin
-
isLoggingResults
private boolean isLoggingResults() -
log
-
simpleElement
-