[
https://issues.apache.org/jira/browse/MNG-5300?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14906256#comment-14906256
]
Anders Hammar commented on MNG-5300:
------------------------------------
May I suggest that you file a new ticket for your issue? This original ticket
is for Maven 3.0.3 and there are so many changes in core and in aether than I
highly doubt the problem is the same.
Also, could you please verify that a 404 status is really returned and not only
a "404 page" (with some ok http status code)? To my knowledge, Maven does not
read the returning html but checks the http status code.
> 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)