Tuesday, January 02, 2007

ibiblio maven repository 301 eorror

I was getting following error
Error retreiving artifact from [http://www.ibiblio.org/maven java.io.IOException: Unknown error downloading; status code was 301

public maven repository on ibiblio was moved to a mirror site. This is indicated by HTTP response status 301, which indicates file is permanently moved. Maven 1.0.2 do not seem to understand redirect.

Solution: Add http://mirrors.ibiblio.org/pub/mirrors/maven to the list of remote repositories in project.properties in addition to the original entry (http://www.ibiblio.org/maven).

For Maven 2, this should not cause any problem, as you can specify mirrors in settings.xml. For more details see the following link: http://maven.apache.org/guides/mini/guide-mirror-settings.html

No comments: