Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Maven: Why does my computer always download from http://repo1.maven.org?

Tags:

maven

I have two computers. One always downloads from http://repo1.maven.org. While another one downloads from http://repo.maven.apache.org.

Today, I got checksum error like this on the first computer.

[WARNING] Checksum validation failed, expected  but is 63801e851fe885601a0bd0eceb6501f7db37e47e for http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-archiver/1.0-alpha-6/plexus-archiver-1.0-alpha-6.pom

On the second computer, which is using http://repo.maven.apache.org working fine, no checksum errors.

I have been trying to change http://repo1.maven.org to http://repo.maven.apache.org but I cannot find where to change this.

I also wonder why different computers from same network got different repo to download and stuck with that repo forever.

like image 306
Surasin Tancharoen Avatar asked Aug 27 '13 16:08

Surasin Tancharoen


1 Answers

This was changed with Apache Maven 3.0.4, the related issue is MNG-5151

like image 163
Robert Scholte Avatar answered Oct 03 '22 18:10

Robert Scholte