Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Blocker
-
Resolution: Fixed
-
Affects Version/s: 2.0-beta-1
-
Fix Version/s: 2.0-beta-1
-
Component/s: None
-
Labels:None
-
Environment:Windows XP, Cygwin
-
Complexity:Expert
-
Number of attachments :
Description
The attached files set the scene:
- test-repo.zip - expand this into the root context of a local web server on 127.0.0.1:8080 for a test repo
- projects.zip - expand this for the projects
- settings.xml - the ~/.m2/settings.xml file
The scenario is as follows:
- test-repo contains a single artifact C
- project B depends on C
- project A depends on B & defines test-repo
- settings.xml also defines test-repo
The build process is:
- m2 install B (downloads C, installs B ok)
- m2 install A (finds B and C in local repo, installs A ok)
Now the problem is if C is then deleted the second step fails - i.e. m2 only looks in the central repo for C and not the custom test-repo, even though test-repo is defined in both A's POM and settings.xml.
This didn't happen in 2.0-alpha-3 - is this intentional?
Activity
Brett Porter
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Assignee | John Casey [ jdcasey ] | |
| Fix Version/s | 2.0-beta-1 [ 11040 ] |
John Casey
made changes -
| Original Estimate | 4 hours [ 14400 ] | |
| Remaining Estimate | 4 hours [ 14400 ] | |
| Complexity | Intermediate | Expert |
John Casey
made changes -
| Status | Open [ 1 ] | In Progress [ 3 ] |
John Casey
logged work - 22/Aug/05 3:30 PM
-
- Time Spent:
- 2 hours
- Simply aggregating remote repositories down the transitivity line...local project repositories have precedence over those of the dependencies, and so on. This ensures that locally defined repositories can host artifacts that would otherwise be resolved from the central repository, for example. Super-POM repositories will only be appended to the end, to ensure that any other repository has the first chance to resolve it.
John Casey
made changes -
| Remaining Estimate | 4 hours [ 14400 ] | 0 minutes [ 0 ] |
| Time Spent | 2 hours [ 7200 ] |
John Casey
made changes -
| Resolution | Fixed [ 1 ] | |
| Status | In Progress [ 3 ] | Closed [ 6 ] |
Brett Porter
made changes -
| Status | Closed [ 6 ] | Reopened [ 4 ] |
| Resolution | Fixed [ 1 ] |
Brett Porter
made changes -
| Fix Version/s | 2.0-beta-1 [ 11040 ] | |
| Fix Version/s | 2.0-beta-2 [ 11861 ] |
John Casey
made changes -
| Status | Reopened [ 4 ] | In Progress [ 3 ] |
John Casey
made changes -
| Fix Version/s | 2.0-beta-1 [ 11040 ] | |
| Fix Version/s | 2.0-beta-2 [ 11861 ] | |
| Status | In Progress [ 3 ] | Closed [ 6 ] |
| Resolution | Fixed [ 1 ] |
Vincent Massol
made changes -
| Workflow | Maven [ 38809 ] | Maven New [ 47886 ] |
yeah, this is a bug. probably a regression related to recent fixes in profile merging.