Fork me on GitHub

Rule

A collection of version number comparison rules.

<ruleset xmlns="https://www.mojohaus.org/VERSIONS/RULE/2.1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="https://www.mojohaus.org/VERSIONS/RULE/2.1.0 https://www.mojohaus.org/versions/versions-model/xsd/rule-2.1.0.xsd"
  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.

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.