I would suggest trying to specify a local central mirror first - http://maven.apache.org/guides/mini/guide-mirror-settings.html http://docs.codehaus.org/display/MAVENUSER/Mirrors+Repositories
If that doesn't work or you need repeatable builds (like for production usage) then I'd suggest going with Nexus, which is easy to setup as a caching proxy for all of the repos your builds need. http://nexus.sonatype.org/ -Donald On 8/9/10 5:41 PM, Lin Sun wrote: > Hi Holly > > I wonder how you config the new settings.xml. Does it contain any > reference to the maven central repo? If not, I think we should not > see a message like "checking for updates from central" as it can be > configured to only to download from your local repo or internal repo. > > Lin > > > On Mon, Aug 9, 2010 at 8:44 AM, Holly Cummins <[email protected]> wrote: >> Hi all, >> >> I'm trying to set up a local mirror of the maven repository required by >> Aries. The central repository has been a bit too unavailable lately for >> production use. >> >> These are the steps I'm following: >> >> 1. Build Aries normally. >> 2. Move my .m2 cache to a new location on my filesystem, ${myrepository}. >> 3. Configure a new .m2/settings.xml to use the ${myrepository} as a >> mirror. >> 4. Build aries. All dependencies are downloaded normally, until we get to >> properties-maven-plugin, and then it dies in a heap: >> >> ... >> Downloading: >> file:///home/cumminsh/.m2good/repository/org/apache/maven/plugins/maven-antrun-plugin/1.2/maven-antrun-plugin-1.2.jar >> 22K downloaded (maven-antrun-plugin-1.2.jar) >> [INFO] artifact org.codehaus.mojo:properties-maven-plugin: checking for >> updates from central >
