Class CompareWithBaselineMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.eclipse.tycho.plugins.p2.extras.CompareWithBaselineMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(defaultPhase=VERIFY, requiresProject=false, name="compare-version-with-baselines") public class CompareWithBaselineMojo extends org.apache.maven.plugin.AbstractMojo
This mojo compares versions the output artifacts of your module build with the version of the same artifacts available in configured baselines, in order to detect version inconsistencies (version moved back, or not correctly bumped since last release). Rules for "illegal" versions are:- version decreased compared to baseline
- same fully-qualified version as baseline, but with different binary content
- same major.minor.micro as baseline, with different qualifier (at least micro should be increased)
This mojo doesn't allow to use qualifier as a versioning segment and will most likely drive to false-positive errors if your qualifier has means to show versioniterations.- Author:
- mistria
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CompareWithBaselineMojo.ReportBehavior
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,ArtifactComparator>
artifactComparators
protected org.apache.maven.plugin.MojoExecution
execution
-
Constructor Summary
Constructors Constructor Description CompareWithBaselineMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute()
-
-
-
Field Detail
-
execution
@Parameter(property="mojoExecution", readonly=true) protected org.apache.maven.plugin.MojoExecution execution
-
artifactComparators
@Component(role=ArtifactComparator.class) protected Map<String,ArtifactComparator> artifactComparators
-
-