Class 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