Issue Details (XML | Word | Printable)

Key: MNG-3408
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Nicolas Malassigné
Votes: 0
Watchers: 0
Operations

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

Artifacts with the same pair groupId:artifactId but different type are not resolved independently

Created: 18/Feb/08 11:00 AM   Updated: 12/Jun/08 07:59 PM
Component/s: Dependencies
Affects Version/s: 2.0.8
Fix Version/s: 3.0

Time Tracking:
Not Specified


 Description  « Hide
This problem is preventing for instance parallel builds to run in a continuous server, without broken builds being falsely reported from time to time.

Ex:

  • Project B is depending on artifacts from Project A.
  • Builds for Project A and Project B are both triggered at the same time.
  • The build of project A finishes earlier, so that Project A deploys its artifacts while Project B is still building (replacing the previous artifacts).

What can happen is that the build of Project B suddenly breaks, because it needs an artifact of Project A for which it already resolved the dependency, but yet of a different type. Maven is writing the local metadata file when resolving the pair groupId:artifactId of the first type, and is reading the same metadata file when resolving the same pair of the second type (which may come later in the build).

Actually I think that groupId:artifactId:type should be considered for the uniqueness of artifacts instead of groupId:artifactId, and this information be contained in the local metadata files.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.