repository problems (ibiblio.org) - redirections , HTTP response codes

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

repository problems (ibiblio.org) - redirections , HTTP response codes

David Balažic
Hi!

During a clean build (we wiped the local repository cache) we encountered a
problem with one artefact.

We used the latest maven version 3.5.4 with Java 8u171.

The error reported by maven is:



Downloading from central:
http://mirrors.ibiblio.org/pub/mirrors/maven2/org/springframework/roo/org.springframework.roo.annotations/1.0.2.RELEASE/org.springframework.roo.annotations-1.0.2.RELEASE.pom
[WARNING] Checksum validation failed, expected <html> but is
b113767b47336dcc165c5dd2222b5df4cb86b7ce from central for
http://mirrors.ibiblio.org/pub/mirrors/maven2/org/springframework/roo/org.springframework.roo.annotations/1.0.2.RELEASE/org.springframework.roo.annotations-1.0.2.RELEASE.pom
[WARNING] Could not validate integrity of download from
http://mirrors.ibiblio.org/pub/mirrors/maven2/org/springframework/roo/org.springframework.roo.annotations/1.0.2.RELEASE/org.springframework.roo.annotations-1.0.2.RELEASE.pom:
Checksum validation failed, expected <html> but is
b113767b47336dcc165c5dd2222b5df4cb86b7ce
[WARNING] Checksum validation failed, expected <html> but is
b113767b47336dcc165c5dd2222b5df4cb86b7ce from central for
http://mirrors.ibiblio.org/pub/mirrors/maven2/org/springframework/roo/org.springframework.roo.annotations/1.0.2.RELEASE/org.springframework.roo.annotations-1.0.2.RELEASE.pom
Downloaded from central:
http://mirrors.ibiblio.org/pub/mirrors/maven2/org/springframework/roo/org.springframework.roo.annotations/1.0.2.RELEASE/org.springframework.roo.annotations-1.0.2.RELEASE.pom
(101 kB at 25 kB/s)
[WARNING] The POM for
org.springframework.roo:org.springframework.roo.annotations:jar:1.0.2.RELEASE
is invalid, transitive dependencies (ifany) will not be available, enable
debug logging for more details
[WARNING] The POM for com.caucho:hessian:jar:4.0.7 is invalid, transitive
dependencies (if any) will not be available, enable debug loggingfor more
details
[WARNING] The POM for commons-fileupload:commons-fileupload:jar:1.2.2 is
invalid, transitive dependencies (if any) will not be available, enable
debug logging for more details
[WARNING] The POM for javax.xml.bind:jaxb-api:jar:2.1 is invalid,
transitive dependencies (if any) will not be available, enable debug
logging for more details
[WARNING] The POM for org.codehaus.jackson:jackson-core-asl:pom:1.6.4 is
invalid, transitive dependencies (if any) will not be available, enable
debug logging for more details
[WARNING] The POM for org.codehaus.jackson:jackson-mapper-asl:pom:1.6.4 is
invalid, transitive dependencies (if any) will not be available,enable
debug logging for more details
Downloading from central:
http://mirrors.ibiblio.org/pub/mirrors/maven2/org/springframework/roo/org.springframework.roo.annotations/1.0.2.RELEASE/org.springframework.roo.annotations-1.0.2.RELEASE.jar
[WARNING] Checksum validation failed, expected <html> but is
b113767b47336dcc165c5dd2222b5df4cb86b7ce from central for
http://mirrors.ibiblio.org/pub/mirrors/maven2/org/springframework/roo/org.springframework.roo.annotations/1.0.2.RELEASE/org.springframework.roo.annotations-1.0.2.RELEASE.jar
[WARNING] Could not validate integrity of download from
http://mirrors.ibiblio.org/pub/mirrors/maven2/org/springframework/roo/org.springframework.roo.annotations/1.0.2.RELEASE/org.springframework.roo.annotations-1.0.2.RELEASE.jar:
Checksum validation failed, expected <html> but is
b113767b47336dcc165c5dd2222b5df4cb86b7ce
[WARNING] Checksum validation failed, expected <html> but is
b113767b47336dcc165c5dd2222b5df4cb86b7ce from central for
http://mirrors.ibiblio.org/pub/mirrors/maven2/org/springframework/roo/org.springframework.roo.annotations/1.0.2.RELEASE/org.springframework.roo.annotations-1.0.2.RELEASE.jar
Downloaded from central:
http://mirrors.ibiblio.org/pub/mirrors/maven2/org/springframework/roo/org.springframework.roo.annotations/1.0.2.RELEASE/org.springframework.roo.annotations-1.0.2.RELEASE.jar
(101 kB at 28 kB/s)


The core reason is the fact, that the mirrors.ibiblio.org site does not
have this artefact but does not return a 404 HTTP response code, but a
regular HTML page (after two redirects).
Details:
 - first maven fetches this URL:
http://mirrors.ibiblio.org/pub/mirrors/maven2/org/springframework/roo/org.springframework.roo.annotations/1.0.2.RELEASE/org.springframework.roo.annotations-1.0.2.RELEASE.pom
the response is a 301 (Moved Permanently) with the header:
Location:
/maven2/org/springframework/roo/org.springframework.roo.annotations/1.0.2.RELEASE/org.springframework.roo.annotations-1.0.2.RELEASE.pom

 - the maven fetches
http://mirrors.ibiblio.org/maven2/org/springframework/roo/org.springframework.roo.annotations/1.0.2.RELEASE/org.springframework.roo.annotations-1.0.2.RELEASE.pom
which also returns 301 with Location: http://maven.ibiblio.org/maven2/
 - maven finally fetches http://maven.ibiblio.org/maven2/  which returns
code 200 OK , with a HTML file listing (index)


Now this is a error on that site, but as it is a common problem when using
maven I post here and hope for some useful answers.

(I already notified ibiblio, here:
https://answers.ibiblio.org/questions/2344/missing-maven-artefacts-spring-roo.html
)

Regards,
David
Reply | Threaded
Open this post in threaded view
|

Re: repository problems (ibiblio.org) - redirections , HTTP response codes

Karl Heinz Marbaise-3
Hi,

my first questions is: Why do you use ibiblio ? And not central ?

Kind Regards
Karl Heinz Marbaise
On 05/07/18 16:24, David Balažic wrote:

> Hi!
>
> During a clean build (we wiped the local repository cache) we encountered a
> problem with one artefact.
>
> We used the latest maven version 3.5.4 with Java 8u171.
>
> The error reported by maven is:
>
>
>
> Downloading from central:
> http://mirrors.ibiblio.org/pub/mirrors/maven2/org/springframework/roo/org.springframework.roo.annotations/1.0.2.RELEASE/org.springframework.roo.annotations-1.0.2.RELEASE.pom
> [WARNING] Checksum validation failed, expected <html> but is
> b113767b47336dcc165c5dd2222b5df4cb86b7ce from central for
> http://mirrors.ibiblio.org/pub/mirrors/maven2/org/springframework/roo/org.springframework.roo.annotations/1.0.2.RELEASE/org.springframework.roo.annotations-1.0.2.RELEASE.pom
> [WARNING] Could not validate integrity of download from
> http://mirrors.ibiblio.org/pub/mirrors/maven2/org/springframework/roo/org.springframework.roo.annotations/1.0.2.RELEASE/org.springframework.roo.annotations-1.0.2.RELEASE.pom:
> Checksum validation failed, expected <html> but is
> b113767b47336dcc165c5dd2222b5df4cb86b7ce
> [WARNING] Checksum validation failed, expected <html> but is
> b113767b47336dcc165c5dd2222b5df4cb86b7ce from central for
> http://mirrors.ibiblio.org/pub/mirrors/maven2/org/springframework/roo/org.springframework.roo.annotations/1.0.2.RELEASE/org.springframework.roo.annotations-1.0.2.RELEASE.pom
> Downloaded from central:
> http://mirrors.ibiblio.org/pub/mirrors/maven2/org/springframework/roo/org.springframework.roo.annotations/1.0.2.RELEASE/org.springframework.roo.annotations-1.0.2.RELEASE.pom
> (101 kB at 25 kB/s)
> [WARNING] The POM for
> org.springframework.roo:org.springframework.roo.annotations:jar:1.0.2.RELEASE
> is invalid, transitive dependencies (ifany) will not be available, enable
> debug logging for more details
> [WARNING] The POM for com.caucho:hessian:jar:4.0.7 is invalid, transitive
> dependencies (if any) will not be available, enable debug loggingfor more
> details
> [WARNING] The POM for commons-fileupload:commons-fileupload:jar:1.2.2 is
> invalid, transitive dependencies (if any) will not be available, enable
> debug logging for more details
> [WARNING] The POM for javax.xml.bind:jaxb-api:jar:2.1 is invalid,
> transitive dependencies (if any) will not be available, enable debug
> logging for more details
> [WARNING] The POM for org.codehaus.jackson:jackson-core-asl:pom:1.6.4 is
> invalid, transitive dependencies (if any) will not be available, enable
> debug logging for more details
> [WARNING] The POM for org.codehaus.jackson:jackson-mapper-asl:pom:1.6.4 is
> invalid, transitive dependencies (if any) will not be available,enable
> debug logging for more details
> Downloading from central:
> http://mirrors.ibiblio.org/pub/mirrors/maven2/org/springframework/roo/org.springframework.roo.annotations/1.0.2.RELEASE/org.springframework.roo.annotations-1.0.2.RELEASE.jar
> [WARNING] Checksum validation failed, expected <html> but is
> b113767b47336dcc165c5dd2222b5df4cb86b7ce from central for
> http://mirrors.ibiblio.org/pub/mirrors/maven2/org/springframework/roo/org.springframework.roo.annotations/1.0.2.RELEASE/org.springframework.roo.annotations-1.0.2.RELEASE.jar
> [WARNING] Could not validate integrity of download from
> http://mirrors.ibiblio.org/pub/mirrors/maven2/org/springframework/roo/org.springframework.roo.annotations/1.0.2.RELEASE/org.springframework.roo.annotations-1.0.2.RELEASE.jar:
> Checksum validation failed, expected <html> but is
> b113767b47336dcc165c5dd2222b5df4cb86b7ce
> [WARNING] Checksum validation failed, expected <html> but is
> b113767b47336dcc165c5dd2222b5df4cb86b7ce from central for
> http://mirrors.ibiblio.org/pub/mirrors/maven2/org/springframework/roo/org.springframework.roo.annotations/1.0.2.RELEASE/org.springframework.roo.annotations-1.0.2.RELEASE.jar
> Downloaded from central:
> http://mirrors.ibiblio.org/pub/mirrors/maven2/org/springframework/roo/org.springframework.roo.annotations/1.0.2.RELEASE/org.springframework.roo.annotations-1.0.2.RELEASE.jar
> (101 kB at 28 kB/s)
>
>
> The core reason is the fact, that the mirrors.ibiblio.org site does not
> have this artefact but does not return a 404 HTTP response code, but a
> regular HTML page (after two redirects).
> Details:
>   - first maven fetches this URL:
> http://mirrors.ibiblio.org/pub/mirrors/maven2/org/springframework/roo/org.springframework.roo.annotations/1.0.2.RELEASE/org.springframework.roo.annotations-1.0.2.RELEASE.pom
> the response is a 301 (Moved Permanently) with the header:
> Location:
> /maven2/org/springframework/roo/org.springframework.roo.annotations/1.0.2.RELEASE/org.springframework.roo.annotations-1.0.2.RELEASE.pom
>
>   - the maven fetches
> http://mirrors.ibiblio.org/maven2/org/springframework/roo/org.springframework.roo.annotations/1.0.2.RELEASE/org.springframework.roo.annotations-1.0.2.RELEASE.pom
> which also returns 301 with Location: http://maven.ibiblio.org/maven2/
>   - maven finally fetches http://maven.ibiblio.org/maven2/  which returns
> code 200 OK , with a HTML file listing (index)
>
>
> Now this is a error on that site, but as it is a common problem when using
> maven I post here and hope for some useful answers.
>
> (I already notified ibiblio, here:
> https://answers.ibiblio.org/questions/2344/missing-maven-artefacts-spring-roo.html
> )
>
> Regards,
> David
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: repository problems (ibiblio.org) - redirections , HTTP response codes

michaelo
In reply to this post by David Balažic
Am 2018-07-05 um 16:24 schrieb David Balažic:

> Hi!
>
> During a clean build (we wiped the local repository cache) we encountered a
> problem with one artefact.
>
> We used the latest maven version 3.5.4 with Java 8u171.
>
> The error reported by maven is:
>
>
>
> Downloading from central:
> http://mirrors.ibiblio.org/pub/mirrors/maven2/org/springframework/roo/org.springframework.roo.annotations/1.0.2.RELEASE/org.springframework.roo.annotations-1.0.2.RELEASE.pom

There is no reason to use ibiblio or alike anymore. Central these days
is backed by several machines as well as people use repo managers.

Go to TLS-enabled Central only.


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]