Get hands-on training for JIRA Software, Confluence, and more at Atlassian Summit Europe. Register now ›

Maven 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.

Fresh ideas, announcements, and inspiration for your team, delivered weekly.

Subscribe now

Fresh ideas, announcements, and inspiration for your team, delivered weekly.

Subscribe now