Re: Excluding repositories

2009-11-21 Thread Wendy Smoak
2009/11/20 Gajo Csaba :
> One of the dependencies is trying to access a repository at
> download.java.net, and this site is blocked by our firewall. Is there a way
> to tell Maven to skip this repository? Either in settings.xml or pom.xml

Best is to use an internal repository manager like Archiva or Nexus.

To keep Maven from trying to contact it, figure out the repository id,
and then re-define that id as a  and 
with a different url that does work.

I would do this in settings.xml so it only has to be done once rather
than in each project.
http://maven.apache.org/ref/2.0.8/maven-settings/settings.html

-- 
Wendy

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Excluding repositories

2009-11-21 Thread alien.sulin
Do you user Nexus as your local repo? it can block the repository

2009/11/20 Gajo Csaba 

> Hello,
>
> One of the dependencies is trying to access a repository at
> download.java.net, and this site is blocked by our firewall. Is there a
> way to tell Maven to skip this repository? Either in settings.xml or pom.xml
>
> Thanks, Csaba
>
>
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


-- 
alien.sulin(苏琳冲)
SuLinchong
Qq387973308
Msn  sulinch...@hotmail.com