Abhijit, Perhaps you are using a HTTP proxy in your network environment? You may want to follow the following guides:
1. Maven proxy config: http://maven.apache.org/guides/mini/guide-proxies.html 2. Ant proxy config: http://ant.apache.org/manual/proxy.html 3. For wget, etc., via shell: "export http_proxy=your-proxy-host:port" Repeat for https where necessary. On Fri, Oct 21, 2011 at 12:14 PM, Abhijit Rao <bza...@gmail.com> wrote: > Hi all, > > When I try to build a project on my Linux box I see the following error: > > abhijit@abhijit-desktop:~/hadoop$ ant compile-c++-libhdfs -Dlibhdfs=1 > Buildfile: build.xml > ivy-download: > [get] Getting: > http://repo2.maven.org/maven2/org/apache/ivy/ivy/2.0.0-rc2/ivy-2.0.0-rc2.jar > [get] To: /home/abhijit/hadoop/ivy/ivy-2.0.0-rc2.jar > [get] Error getting > http://repo2.maven.org/maven2/org/apache/ivy/ivy/2.0.0-rc2/ivy-2.0.0-rc2.jarto > /home/abhijit/hadoop/ivy/ivy-2.0.0-rc2.jar > > BUILD FAILED > java.net.ConnectException: Connection timed out > > I'm unable download the file > http://repo2.maven.org/maven2/org/apache/ivy/ivy/2.0.0-rc2/ivy-2.0.0-rc2.jareven > with wget but it gets downloaded with a browser. > > Why does this happen? and is there a way to get this to work ? > > Thanks, > Abhijit > -- Harsh J