[ https://issues.apache.org/jira/browse/MNG-5300?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14905764#comment-14905764 ]
Mark A. Ziesemer commented on MNG-5300: --------------------------------------- Can this please be re-opened? I'm seeing the same issue, but not because of network connectivity, and using the current 3.3.3 version of Maven. In particular, I'm configured to search against multiple repositories. When an artifact isn't found in one, that server properly returns a HTTP 404. This includes for when Maven searches the repository for a maven-metadata-<artifact>.xml file. The server without the artifact returns a HTTP 404, but Maven downloads and keeps the 404 response - and then throws warnings when the checksum fails to validate, as well as when it tries to parse the HTTP 404 HTML response as XML. I can also open this as a new issue, if appropriate. Please advise, thanks! > 404 HTML page downloaded into .m2/repository instead of considering resource > as missing > --------------------------------------------------------------------------------------- > > Key: MNG-5300 > URL: https://issues.apache.org/jira/browse/MNG-5300 > Project: Maven > Issue Type: Bug > Components: Artifacts and Repositories, Dependencies > Affects Versions: 3.0.3 > Environment: Mac OSX Lion / Java 1.6 > Reporter: David Bosschaert > > Sometimes when I use Maven when connected to the internet via a mobile phone > maven doesn't process missing resources properly. Instead of considering a > resource not found, all of the files (poms, jars etc) contain the HTML below. > This basically pollutes my .m2/repository as the system thinks certain > resources are there where in fact they only contain this error message as > content. It only happens when I use my mobile phone to connect to the > internet, not when I'm connected otherwise. > All other applications work fine over the mobile phone connection, only maven > acts up like this. Is there any way to get around this? > {code:xml}<?xml version="1.0"?> > <!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" > "http://www.wapforum.org/DTD/xhtml-mobile10.dtd" > > <html xmlns="http://www.w3.org/1999/xhtml"> > <head> > <title>* Error *</title> > <!-- > Change href="style.css" below to the file name and > relative path or URL of your external style sheet. > --> > <!-- > <link rel="stylesheet" href="style.css" type="text/css"/> > <style> document-wide styles would go here </style> > --> > </head> > <body> > <h1>Sorry</h1> > <ul> > The requested item could not be found!<br/>(Status Code: > 404) > </ul> > </body> > </html>{code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)