Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.0.1
-
Fix Version/s: 1.1
-
Component/s: Standard Rules
-
Labels:None
-
Number of attachments :
Description
The DependencyVersionMap used by DependencyConvergense uses node.getArtifact().getVersion() when comparing versions. This makes the rule fail more often than needed because the version compare doens't ignore the fact that some snapshots may have been resolved to timestamp. If the code was node.getArtifact().getBaseVersion() instead then DependencyConvergense would only fail on real version mismatches.
Activity
Raman Gupta
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Attachment | menforcer-118.patch [ 59512 ] |
Paul Gier
made changes -
| Assignee | Robert Scholte [ rfscholte ] | |
| Fix Version/s | 1.1 [ 17443 ] | |
| Priority | Trivial [ 5 ] | Major [ 3 ] |
Paul Gier
made changes -
| Status | Open [ 1 ] | Closed [ 6 ] |
| Resolution | Fixed [ 1 ] |
I think this should be reported as a bug, and not an improvement. Maven 3 enforces timestamped versions, which makes the dependency converge rule almost useless with Maven 3 - because of this bug. The priority could also be lifted....