You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Hilco Wijbenga <hi...@gmail.com> on 2009/08/27 21:38:59 UTC

JAR file downloading blocked

Hi all,

I work at a large company with a Maven 1(!) setup. The team I work in
wanted to set up a nice environment with Maven 2, Hudson and Nexus but
as it turns out JAR file downloading is blocked by the firewall. Is
there any way to work around this?

The only solutions I can think of are (a) a sneaker net where we run
Maven at home and then copy the resulting Maven local repository into
our repository manager or (b) we somehow set up a tunnel to a server
outside the firewall that then can be used to do the actual
downloading. Option "a" would work but would be a serious PITA and
option "b" is too complicated. (Well, I guess there's an option "c":
work with Maven 1...)

Does anyone have a better idea?

Cheers,
Hilco

P.S. Obviously, getting the company to upgrade to Maven 2 is a no-go.

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


Re: JAR file downloading blocked

Posted by "Edelson, Justin" <Ju...@mtvstaff.com>.
repo1.maven.org blocks requests from wget. That's not a good test.

Justin

On Aug 27, 2009, at 5:50 PM, "Hilco Wijbenga"  
<hi...@gmail.com> wrote:

> 2009/8/27 Alexander <th...@gmail.com>:
>> Wow, maybe you should talk with your sysops?
>
> That feels too much like fighting windmills. :-)
>
>> 2009/8/28 Hilco Wijbenga <hi...@gmail.com>
>>> I work at a large company with a Maven 1(!) setup. The team I work  
>>> in
>>> wanted to set up a nice environment with Maven 2, Hudson and Nexus  
>>> but
>>> as it turns out JAR file downloading is blocked by the firewall. Is
>>> there any way to work around this?
>
> Actually, as it turns out things are not as clear-cut as I initially  
> thought.
>
> wget http://mirrors.ibiblio.org/pub/mirrors/maven/jetty/jars/jetty-4.2.10.jar
>  --->   works
> wget http://repo1.maven.org/maven2/jetty/jetty/4.2.10/jetty-4.2.10.jar
>  --->   does not work
>
> So I also tried
>
> wget http://mirrors.ibiblio.org/pub/mirrors/maven2/jetty/jetty/4.2.10/jetty-4.2.10.jar
>
> and, guess what: that works!
>
> So I've added iBiblio as a mirror of Central and it all works. Eat
> that, firewall! ;-)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>

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


Re: JAR file downloading blocked

Posted by Anders Hammar <an...@hammar.net>.
What you should do is set up Nexus to proxy central (repo1.maven.org). Then
configure your maven clients to use the nexus instance instead of going
directly to central (or any public mirror). There different ways of doing
this, at least one is outlined in the Nexus book by Sonatype. Have a look
there.

/Anders

On Thu, Aug 27, 2009 at 23:49, Hilco Wijbenga <hi...@gmail.com>wrote:

> 2009/8/27 Alexander <th...@gmail.com>:
> > Wow, maybe you should talk with your sysops?
>
> That feels too much like fighting windmills. :-)
>
> > 2009/8/28 Hilco Wijbenga <hi...@gmail.com>
> >> I work at a large company with a Maven 1(!) setup. The team I work in
> >> wanted to set up a nice environment with Maven 2, Hudson and Nexus but
> >> as it turns out JAR file downloading is blocked by the firewall. Is
> >> there any way to work around this?
>
> Actually, as it turns out things are not as clear-cut as I initially
> thought.
>
> wget
> http://mirrors.ibiblio.org/pub/mirrors/maven/jetty/jars/jetty-4.2.10.jar
>  --->   works
> wget http://repo1.maven.org/maven2/jetty/jetty/4.2.10/jetty-4.2.10.jar
>  --->   does not work
>
> So I also tried
>
> wget
> http://mirrors.ibiblio.org/pub/mirrors/maven2/jetty/jetty/4.2.10/jetty-4.2.10.jar
>
> and, guess what: that works!
>
> So I've added iBiblio as a mirror of Central and it all works. Eat
> that, firewall! ;-)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: JAR file downloading blocked

Posted by Tamás Cservenák <ta...@cservenak.net>.
btw, wget is banned from central....

On Thu, Aug 27, 2009 at 11:49 PM, Hilco
Wijbenga<hi...@gmail.com> wrote:
> 2009/8/27 Alexander <th...@gmail.com>:
>> Wow, maybe you should talk with your sysops?
>
> That feels too much like fighting windmills. :-)
>
>> 2009/8/28 Hilco Wijbenga <hi...@gmail.com>
>>> I work at a large company with a Maven 1(!) setup. The team I work in
>>> wanted to set up a nice environment with Maven 2, Hudson and Nexus but
>>> as it turns out JAR file downloading is blocked by the firewall. Is
>>> there any way to work around this?
>
> Actually, as it turns out things are not as clear-cut as I initially thought.
>
> wget http://mirrors.ibiblio.org/pub/mirrors/maven/jetty/jars/jetty-4.2.10.jar
>  --->   works
> wget http://repo1.maven.org/maven2/jetty/jetty/4.2.10/jetty-4.2.10.jar
>  --->   does not work
>
> So I also tried
>
> wget http://mirrors.ibiblio.org/pub/mirrors/maven2/jetty/jetty/4.2.10/jetty-4.2.10.jar
>
> and, guess what: that works!
>
> So I've added iBiblio as a mirror of Central and it all works. Eat
> that, firewall! ;-)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

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


Re: JAR file downloading blocked

Posted by Hilco Wijbenga <hi...@gmail.com>.
2009/8/27 Alexander <th...@gmail.com>:
> Wow, maybe you should talk with your sysops?

That feels too much like fighting windmills. :-)

> 2009/8/28 Hilco Wijbenga <hi...@gmail.com>
>> I work at a large company with a Maven 1(!) setup. The team I work in
>> wanted to set up a nice environment with Maven 2, Hudson and Nexus but
>> as it turns out JAR file downloading is blocked by the firewall. Is
>> there any way to work around this?

Actually, as it turns out things are not as clear-cut as I initially thought.

wget http://mirrors.ibiblio.org/pub/mirrors/maven/jetty/jars/jetty-4.2.10.jar
  --->   works
wget http://repo1.maven.org/maven2/jetty/jetty/4.2.10/jetty-4.2.10.jar
  --->   does not work

So I also tried

wget http://mirrors.ibiblio.org/pub/mirrors/maven2/jetty/jetty/4.2.10/jetty-4.2.10.jar

and, guess what: that works!

So I've added iBiblio as a mirror of Central and it all works. Eat
that, firewall! ;-)

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


Re: JAR file downloading blocked

Posted by Alexander <th...@gmail.com>.
Wow, maybe you should talk with your sysops?

2009/8/28 Hilco Wijbenga <hi...@gmail.com>

> Hi all,
>
> I work at a large company with a Maven 1(!) setup. The team I work in
> wanted to set up a nice environment with Maven 2, Hudson and Nexus but
> as it turns out JAR file downloading is blocked by the firewall. Is
> there any way to work around this?
>
> The only solutions I can think of are (a) a sneaker net where we run
> Maven at home and then copy the resulting Maven local repository into
> our repository manager or (b) we somehow set up a tunnel to a server
> outside the firewall that then can be used to do the actual
> downloading. Option "a" would work but would be a serious PITA and
> option "b" is too complicated. (Well, I guess there's an option "c":
> work with Maven 1...)
>
> Does anyone have a better idea?
>
> Cheers,
> Hilco
>
> P.S. Obviously, getting the company to upgrade to Maven 2 is a no-go.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


-- 
Regards,
Alexander

Re: JAR file downloading blocked

Posted by Wayne Fay <wa...@gmail.com>.
> I work at a large company with a Maven 1(!) setup. The team I work in
> wanted to set up a nice environment with Maven 2, Hudson and Nexus but
> as it turns out JAR file downloading is blocked by the firewall. Is
> there any way to work around this?

There are a number of Maven users on this list (mostly military?) who
have run into similar problems.

The easiest solution is the sneakernet option you proposed. Bear in
mind that you are defeating the entire purpose of the firewall (at
least in the minds of the people who put that rule in place) and as
such are probably violating various policies etc that may result in
job losses down the road. You really should try to resolve this
problem with the responsible teams -- surely there is a process in
place to allow whitelisting of sites etc, or perhaps they should
reconsider the Jar blocking policy entirely?

Wayne

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