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

Reply via email to