GitHub user sfussenegger opened a pull request:
https://github.com/apache/maven-enforcer/pull/16
MENFORCER-241 allow ignoring minor and patch level mismatches
this patch allows `dependencyConvergence` to only consider major and minor
version changes by introducing a new `degree` parameter. This patch maintains
backward compatibility but deprecates the `uniqueVersions` parameter.
usage:
```xml
<rules>
<dependencyConvergence>
<!-- one of MAJOR, MINOR, PATCH (default), UNIQUE (uniqueVersions=true)
-->
<degree>MAJOR</degree>
</dependencyConvergence>
</rules>
```
therefore these two are equal to maintain backward compatibility:
```xml
<rules>
<dependencyConvergence>
<degree>UNIQUE</degree>
</dependencyConvergence>
</rules>
<!-- equal -->
<rules>
<dependencyConvergence>
<uniqueVersions>true</uniqueVersions>
</dependencyConvergence>
</rules>
```
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/molindo/maven-enforcer
MENFORCER-241-version-mismatch-degree
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/maven-enforcer/pull/16.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #16
----
commit b95b1a3bb4ff65e9b54fddaee3c723d7b838a70b
Author: Stefan Fussenegger <[email protected]>
Date: 2015-10-13T11:58:49Z
MENFORCER-241 allow ignoring minor and patch level mismatches
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]