Hi Bernd, Thanks for the quick response.
For example, my project's pom defined only one repository (mycentral), but the dependencies maybe defined three other repository (jboss/redhat/codehaus) In Maven 3.0.5, I guess it download artifacts from 4 repos one by one, so mycentral is the first one to try, and if it gets artifact from that repo, and it's done. It will not try to download from the rest repos. In Maven 3.1.1, I guess it starts 4 threads to download artifact from 4 repos in parallel, so here comes the issue. in my server, I cannot access jboss/redhat/codehaus, I can only access mycentral. So the 1st thread get the artifact, but the other three threads are still trying to download the artifacts from jboss/redhat/codehaus, which are not accessible. and it's blocked until timeout, so this really slow down the build. I am not sure if what I am saying is correct behavior for Maven 3.1.1. If it's correct, seems my options are 1. configure the threads to just 1, so mycental always the first one to try. 2. block all external repositories, just left mycentral. Any other suggestions? Thanks, James -----Original Message----- From: Bernd Eckenfels [mailto:e...@zusammenkunft.net] Sent: Wednesday, March 12, 2014 10:43 AM To: Mao, James(Maode) Cc: users@maven.apache.org Subject: Re: Maven 3.1.1 dependency downloading issues Hello, Am Tue, 11 Mar 2014 09:20:57 +0000 schrieb "Mao, James(Maode)" <m...@ebay.com>: > Hi, > > I found that Maven 3.1.1 will try downloading the artifacts in > parallel. > This cause the issue, actually the first try already downloaded the > pom, but Maven still trying other repository in paralle. Not sure which issue? > In our CI > server we cannot access repository.jboss.org. that cause the system > hang until it's timeout. You typically add a mirror to external repositories onto your local repository. Then maven can get those artifacts and you will be able to archive a local copy to make your build process reproducible. > l Can we configure the threads number for parallel downloading. This is a 2.1 feature, it is described in the maven guide: http://maven.apache.org/guides/mini/guide-configuring-maven.html > l Why Maven 3.1.1 will try to download artifacts from > repository.jboss.org, we did not define in our settings.xml and pom. You have most likely some POMs in your project from JBoss/Redhat which have itself defined the JBoss repository. If it rresolves your dependencies it will download the other resources from the repositories defined in those dependend projects. > Can we remove those external repositories? You could have a look at the -X debug output and <exclude> the dependencies which have those repository requirements, but as I wrote above you typically have to operate a mirror sooner or later. BTW: no need to ask on both maven lists, the users list is perfectly fine, will remove the developer list from the distributon. Greertings Bernd --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org