Issue Details (XML | Word | Printable)

Key: MNG-612
Type: New Feature New Feature
Status: Open Open
Priority: Critical Critical
Assignee: Mark Hobson
Reporter: Brett Porter
Votes: 19
Watchers: 16
Operations

If you were logged in you would be able to see more operations.
Maven 2

implement conflict resolution techniques

Created: 20/Jul/05 01:36 AM   Updated: 25/Apr/08 04:00 AM
Component/s: Artifacts and Repositories, Design, Patterns & Best Practices
Affects Version/s: None
Fix Version/s: 3.0

Time Tracking:
Original Estimate: 8 hours
Original Estimate - 8 hours
Remaining Estimate: 8 hours
Remaining Estimate - 8 hours
Time Spent: Not Specified
Remaining Estimate - 8 hours

File Attachments: 1. Text File MNG-612-2.patch (43 kB)
2. Text File MNG-612-3.patch (46 kB)
3. Text File MNG-612.patch (45 kB)

Issue Links:
Duplicate
 
dependent
 


 Description  « Hide
currently, the collector only:
  • selects nearest "suggested" version in a valid range
  • latest version from the valid ranges if none suggested
  • fails if ranges are over-constrained

This needs to be configurable:

  • select newest, even if there is a nearer suggestion
  • select oldest, even if there is a nearer suggestion
  • fail if all suggestions don't equate or a range results instead of a single version
  • ignore over constrained ranges and fallback to some other algorithm
  • select snapshots even if they weren't explicitly specified


 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Mark Hobson added a comment - 23/Apr/07 12:00 PM
Attached an initial stab at this - patch is against 2.0.x. Will send an email to dev to discuss it further without clogging up JIRA.

Mark Hobson added a comment - 25/Apr/07 04:32 AM
Attaching slightly improved version of the patch:
  • better ConflictResolver API
  • made ArtifactCollector API change backwards-compatible

Mark Hobson added a comment - 20/Jun/07 05:17 AM
This issue should be targeted for 2.0.x since the new dependency graph API will make this patch obsolete in 2.1.


Mark Hobson added a comment - 04/Sep/07 10:33 AM

Mark Hobson added a comment - 25/Apr/08 04:00 AM
The maven-artifact changes from this patch have been committed to maven-artifact 3.x. Only Maven 2.1 is using this version, see MNG-3205 for switching Maven 2.0.x over. The rest of the patch outside of maven-artifact still needs to be applied to 2.0.x and 2.1.