| Summary: | eclipse-repository fails to resolve Maven snaphot bundles | ||||||
|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Harald Wellmann <hwellmann.de> | ||||
| Component: | Tycho | Assignee: | Tobias Oberlies <t-oberlies> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | major | ||||||
| Priority: | P2 | CC: | igor, t-oberlies | ||||
| Version: | unspecified | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Bug Depends on: | |||||||
| Bug Blocks: | 342876 | ||||||
| Attachments: |
|
||||||
|
Description
Harald Wellmann
Created attachment 199693 [details]
Sample project to reproduce the problem
This is not nice: A build that fails the first time, but succeeds the second time. Thanks for the bug report - we'll look into it for 0.13 Fixed with 7a4b416 - a one-liner, but hard to find. @Igor: The fix was to replace Artifact.getVersion with Artifact.getBaseVersion. Neither method has any JavaDoc - are you aware of any unwanted effects this change could have? (In reply to comment #3) > Fixed with 7a4b416 - a one-liner, but hard to find. > > @Igor: The fix was to replace Artifact.getVersion with Artifact.getBaseVersion. > Neither method has any JavaDoc - are you aware of any unwanted effects this > change could have? No, no side effects, the change is good. For snapshots, artifact base version is always the same 1.2.3-SNAPSHOT, while version gets expanded to a new value each time new snapshot is deployed (but it is still the same for locally installed artifacts and inside reactor). For releases, version and base version are always the same. |