Fork me on GitHub

Rule

A collection of version number comparison rules. This is marked deprecated and will be removed with release 3.0.0 of the versions-maven-plugin. If you are user of this please vote on issue #157

<ruleset comparisonMethod=.. >
  <ignoreVersions>
    <ignoreVersion type=.. />
  </ignoreVersions>
  <rules>
    <rule groupId=.. artifactId=.. comparisonMethod=.. >
      <ignoreVersions>
        <ignoreVersion type=.. />
      </ignoreVersions>
    </rule>
  </rules>
</ruleset>

ruleset

Describes a set of rules for how versions of artifacts should be handled.

Attribute Type Description
comparisonMethod String The comparison method to use when no rule matches.
Element Type Description
ignoreVersions/ignoreVersion* List<IgnoreVersion> (Many) Version patterns to ignore for all artifacts.
rules/rule* List<Rule> (Many) No description.

ignoreVersion

A version to ignore.

Element Content: A version number or a regular expression for version numbers that should be ignored.

Attribute Type Description
type String The type of ignore mechanism to use. Allowed values are 'exact' and 'regex'.
Default value is: exact.

rule

Describes a rule for how versions of artifacts should be handled. This is marked deprecated and will be removed with release 3.0.0 of the versions-maven-plugin.

Attribute Type Description
groupId String The for groupId to which this rule applies. Wildcards with ? and * are valid. A rule applies to all child groupIds unless overridden by a subsequent rule. A rule without wildcards will override a rule with wildcards. A rule with ? wildcards will override a rule with * wildcards.
artifactId String The artifactId to which this rule applies. Wildcards with ? and * are valid. A rule without wildcards will override a rule with wildcards. A rule with ? wildcards will override a rule with * wildcards.
comparisonMethod String The comparison method that this rule specifies.
Element Type Description
ignoreVersions/ignoreVersion* List<IgnoreVersion> (Many) Version patterns to ignore for this rule.