Maven 1 repository changes
December 4, 2006 1:40 PMMaven 1 has recently started to produce a lot of 301 errors (after attempting to download certain dependencies) when building a project with a clean local repository.
The reason for this is that the public Maven 1 repository is being moved to http://mirrors.ibiblio.org/pub/mirrors/maven from http://www.ibiblio.org/maven. Maven 1 doesn't understand redirects and therefore reports a 301 HTTP error when attempting to download certain dependencies (such as commons-logging for example).
To fix this, you simply have to add http://mirrors.ibiblio.org/pub/mirrors/maven to the list of remote repositories in project.properties:
maven.repo.remote=http://repository.atlassian.com,http://mirrors.ibiblio.org/pub/mirrors/maven,http://www.ibiblio.org/maven
If you are building old releases with Maven 1 please update your list of repositories. We'll include the new mirror in all new releases of our software.



Copyright © 2009 Atlassian Pty Ltd.

15 Comment(s)
Thanks a lot for this info. Took me sometime to find this page.
I'll add the error in my comment so that next time someone searches for the error he gets this page.
Error retreiving artifact from [http://www.ibiblio.org/maven java.io.IOException: Unknown error downloading; status code was 301
-raghu
By Raghu at December 6, 2006 6:10 AM
Andreas,
Thanks for the post. By the way I noticed that you said to add the extra path to 'project.properties', but with the Confluence source distribution the file to add to is actually 'build.properties'. I'm not sure about JIRA.
This is a minor point but might help clarify the task for someone.
Thanks!!!
By Brendan Patterson at December 7, 2006 8:41 AM
Thanks Andreas for the tip, I was affected by that :) and looking in the wrong file.
By Imran at December 11, 2006 10:03 AM
thanks ....the above tip was helpful ....
command executed: maven site
maven version: 1.0.2
Attempting to download commons-jelly-tags-xml-20030211.142705.jar.
Error retrieving artifact from [http://www.ibiblio.org/maven/commons-jelly/jars/commons-jelly-t
ags-xml-20030211.142705.jar]: java.io.IOException: Unknown error downloading; status code was:
301
WARNING: Failed to download commons-jelly-tags-xml-20030211.142705.jar.
Attempting to download jdepend-2.7.jar.
Error retrieving artifact from [http://www.ibiblio.org/maven/jdepend/jars/jdepend-2.7.jar]: jav
a.io.IOException: Unknown error downloading; status code was: 301
WARNING: Failed to download jdepend-2.7.jar.
BUILD FAILED
File...... C:\Documents and Settings\schitullapally\.maven\cache\maven-xdoc-plugin-1.8\plugin.j
elly
Element... attainGoal
Line...... 693
Column.... 57
The build cannot continue because of the following unsatisfied dependencies:
By sreedhar at December 11, 2006 3:23 PM
Thanks very much!
I have spent also the whole days resolving that problems, but it seems like that my effort is almost meaningless, I'm so disappointed,..., thanks to your great help, I could rebuild the former project finally.
By James at December 20, 2006 1:08 AM
Thank you very much. I used to follow the redirect to http://mirrors.ibiblio.org/pub/mirrors/maven2 however certain packages have
different trees under maven-2 and under maven-1.
For instance, consider
http://mirrors.ibiblio.org/pub/mirrors/maven/taglibs/tlds/fmt-1.0.6.tld
The corresponding maven-2 link would be
http://mirrors.ibiblio.org/pub/mirrors/maven2/taglibs/fmt/1.0.6/fmt-1.0.6.tld
By Dmitri at December 22, 2006 7:15 AM
I have no idea where I can set the maven.repo.remote.
By Jay at July 22, 2007 1:38 AM
Hi Jay,
You can set this property in the project.properties file for your project. This file is usually located at the same level as your project.xml in your file tree. If you don't have this file, simply create one, and create the property as described in this blog post.
Cheers,
Andreas
By Andreas Knecht at July 22, 2007 4:01 PM
http://mirrors.ibiblio.org/pub/mirrors/maven seems to have some access difficulties. I found another repository: http://www.astrogrid.org/maven
Hope that helps !
By enouvellon at July 24, 2007 8:13 AM
Hi.
Thank You very much for your info.
It took a while to get to this page...
Thanks
senthil
By senthil at August 9, 2007 10:52 AM
Same Here! Long time.
Thanks!
Ed
By Ed at October 16, 2007 1:14 PM
Thanks a lot ! This is very useful information.
I way troubleshooting this problem for more than 4 hours. And finally tired and search the failure text in google and landed in this page :).
Thanks !
Sathish
By Sathish Kumar Kandasamy at October 29, 2007 5:13 AM
Excellent work. Found my jar. Good man.
By the way, is there a "master index" of Jars. We could do with a search thingie on this.
By Steve Jones at January 7, 2008 3:22 AM
Steve,
The closest I've seen to something like that is http://mvnrepository.com/.
Cheers,
Andreas
By Andreas Knecht at January 7, 2008 1:13 PM
Cheers! This saved me a lot of headaches
By Seto at April 2, 2008 1:45 AM