I am not sure I understand the reluctance to test that POMs are well-formed.
A POM that is not well-formed is worthy of a note at least.
Compared to the cost of a download, the test for well-formed XML should
be pretty small for a file the size of a POM.
It should be possible to recognize the HTML returned by the "big-three"
repos in the case of an error and display the HTML body or part of it in
the error message.
Perhaps a standard could be agreed upon by the "big-three" to make it
easier for Maven to detect the fact that an error message has been
returned and have all three put out similar messages.
Ron
On 04/07/2012 6:24 PM, Wayne Fay wrote:
Ideally there would be some Maven magic which checks the contents of
the file and ensures it seems like a reasonable pom, jar, war, etc
before saving it to the local repo cache but that does not currently
exist beyond a feature request in JIRA.
I think that the suggestion to validate items returned is a good one
that we should raise with, I think, Aether.
I don't disagree. I'm not sure that we can guarantee much beyond "this
seems to be XML" (I'm not sure that we should test for it being
well-formed etc) or "this seems to be a zip file" (for jars, wars and
ears) but just a basic check of "this is not garbage HTML" would be
sufficient (and a big enhancement) for most users.
Wayne
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
--
Ron Wheeler
President
Artifact Software Inc
email: [email protected]
skype: ronaldmwheeler
phone: 866-970-2435, ext 102
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]