Hi, I have a problem with 404 server answers when maven downloads the maven-metadata.xml files.
We have 3 internal repositories, behind a simple apache (so it's all static), and we're using mirrors to access only our internal repos. From time to time, maven writes the "maven-metadata-myrepo2.xml" file for an artifact with the following content : <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>404 Not Found</title> </head><body> <h1>Not Found</h1> <p>The requested URL /maven2-repos/myrepo1/.../maven-metadata.xml was not found on this server.</p> </body></html> HTTP/1.1 404 Not Found Date: Wed, 26 Nov 2008 10:41:34 GMT Server: Apache/2.2.3 (Unix) mod_ssl/2.2.3 OpenSSL/0.9.8d Content-Length: 311 Keep-Alive: timeout=5, max=93 Connection: Keep-Alive Content-Type: text/html; charset=iso-8859-1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>404 Not Found</title> </head><body> <h1>Not Found</h1> <p>The requested URL /maven2-repos/myrepo2/.../maven-metadata.xml was not found on this server.</p> </body></html> As the content of the file is wrong (it is the 404 HTML answer and not the well-formatted XML), then maven fails with the following error : Unable to read local copy of metadata: Cannot read metadata from 'xxx/maven-metadata-myrepo2.xml' : in epilog non whitespace content is not allowed but got H (position: END_TAG seen ...</body></html>\nH... @8:2) The strange thing is that most of the time it is working well. So if anyone has a similar comportment, or knows why from times to times maven writes the 404 html answer to the file... Thanks for any answer, Vincent -- View this message in context: http://www.nabble.com/metadata-download-and-404-tp20699722p20699722.html Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
