Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.2.1, 3.0-alpha-5
-
None
Description
It can happen that Maven fetches broken maven-metadata.xml into the local repo (e.g. because it doesn't understand HTTP error codes properly and downloads HTML files or just because the remote repo serves crap). Currently, the bad metadata file for one repo will make the entire dependency resolution fail, regardless whether the repo/metadata in question is actually needed to complete the resolution.
We should just warn in case of unreadable metadata. If it was crucial for the current artifact resolution, it will still fail the build later on when all metadata has been merged (and the bits from the broken metadata are missing).