You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by arro <he...@gmail.com> on 2012/04/23 09:03:34 UTC

Re: Maven 3.0.3 hanging / having timeouts often?

Sorry for resurrecting an old thread, but I'm having the exact same problem
with Maven 3.0.4 timing out while trying to download artifacts.

Right now I'm running Maven from home, with no proxy. The problem also
occured when I tried to use the same laptop at work, with a Nexus repository
manager. I then assumed it was some kind of temporary network problem, but
since I'm seeing the same thing again, I guess it must have something to do
with the computer setup.

I'm on Windows 7 and cygwin (CYGWIN_NT-6.1-WOW64). I have removed my
~/.m2/settings.xml to see if that made any difference -- it did not. There
does not appear to be any network problem, I can download the artifacts
manually (in Firefox) just fine.

Anyone else seen this problem?

/Henrik Arro


Andrew Robinson wrote
> 
> I have been using maven 2.2.1 for a while at my company and we just
> switched
> to maven 3. I have rebuilt my computer (ubuntu maverick 10.04 32-bit ==>
> ubuntu natty 11.04 64-bit) and installed maven 3.
> 
> In maven 3.0.3, (I have not seen it with maven 2.2.1), it stops
> downloading
> after a few to several downloads. If I ^C the build, and keep re-running
> it,
> it will eventually built. It only dies when maven is trying to download
> file. It may happen before any progress is display, partial progress or
> full
> progress.
> 


--
View this message in context: http://maven.40175.n5.nabble.com/Maven-3-0-3-hanging-having-timeouts-often-tp4388958p5658520.html
Sent from the Maven - Users mailing list archive at Nabble.com.

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


Re: Maven 3.0.3 hanging / having timeouts often?

Posted by Henrik Arro <he...@gmail.com>.
Thanks for the suggestion, but unfortunately the same behavior when running
Maven in a Windows command-line (cmd.exe).

Running "mvn -X" does not provide much useful information, as far as I can
tell, just a timeout after around 30 minutes:

[DEBUG] Using connector WagonRepositoryConnector with priority 0 for
http://repo.maven.apache.org/maven2
Downloading:
http://repo.maven.apache.org/maven2/org/codehaus/groovy/groovy/1.8.3/groovy-1.8.3.jar
[DEBUG] Writing resolution tracking file C:\Users\Henrik
Arro\.m2\repository\org\codehaus\groovy\groovy\1.8.3\groovy-1.8.3.jar.lastUpdated
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 30:02.959s
[INFO] Finished at: Wed Apr 25 09:35:49 CEST 2012
[INFO] Final Memory: 10M/105M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-archetype-plugin:2.2:generate (default-cli)
on project standalone-pom: Execution default-cli of goal
org.apache.maven.plugins:maven-archetype-plugin:2.2:generate failed: Plugin
o   rg.apache.maven.plugins:maven-archetype-plugin:2.2 or one of its
dependencies could not be resolved: Could not transfer artifact
org.codehaus.groovy:groovy:jar:1.8.3 from/to central
(http://repo.maven.apache.org/maven2): GET request of:
org/codehaus/groovy/groovy/1.8.3/groovy-1.8.3.jar from central failed: Read
timed out -> [Help 1]

...

Caused by: java.net.SocketTimeoutException: Read timed out
        at java.net.SocketInputStream.socketRead0(Native Method)
        at java.net.SocketInputStream.read(SocketInputStream.java:150)
        at java.net.SocketInputStream.read(SocketInputStream.java:121)
        at
org.apache.maven.wagon.providers.http.httpclient.impl.io.AbstractSessionInputBuffer.fillBuffer(AbstractSessionInputBuffer.java:149)
        at
org.apache.maven.wagon.providers.http.httpclient.impl.io.SocketInputBuffer.fillBuffer(SocketInputBuffer.java:110)
        at
org.apache.maven.wagon.providers.http.httpclient.impl.io.AbstractSessionInputBuffer.read(AbstractSessionInputBuffer.java:195)
        at
org.apache.maven.wagon.providers.http.httpclient.impl.io.ChunkedInputStream.read(ChunkedInputStream.java:173)
        at
org.apache.maven.wagon.providers.http.httpclient.conn.EofSensorInputStream.read(EofSensorInputStream.java:138)
        at
java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:238)
        at
java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158)
        at java.util.zip.GZIPInputStream.read(GZIPInputStream.java:116)
        at
org.apache.maven.wagon.AbstractWagon.transfer(AbstractWagon.java:493)
        at
org.apache.maven.wagon.AbstractWagon.getTransfer(AbstractWagon.java:339)
        ... 9 more



Wayne Fay wrote
> 
> Can you try building your projects with Maven 3.0.4 in Windows (not in
> the Cygwin environment) to see if there is any difference?
> 


--
View this message in context: http://maven.40175.n5.nabble.com/Maven-3-0-3-hanging-having-timeouts-often-tp4388958p5664251.html
Sent from the Maven - Users mailing list archive at Nabble.com.

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


Re: Maven 3.0.3 hanging / having timeouts often?

Posted by Wayne Fay <wa...@gmail.com>.
> Interesting. Do you have an example of another Java application that has
> network connectivity problems? Then I could try it to see if it is the
> combination Java / network hardware that is the culprit.

Problems like this on Windows are frequently related to some antivirus
or firewall (Windows or another). Try disabling your antivirus and any
firewalls you may be running (including the built-in Windows
firewall).

If you are running this on a computer "at work" there can also be
transparent Internet proxies (Squid) or antivirus appliances etc
between your machine and the download site. This is less common "at
home" but I know some ISPs are caching hits etc.

Wayne

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


RE: Maven 3.0.3 hanging / having timeouts often?

Posted by Bob Wang <bo...@ericsson.com>.
Hi,

You can use "where java" in the command line to check where your java is.

-----Original Message-----
From: Wayne Fay [mailto:waynefay@gmail.com] 
Sent: Wednesday, April 25, 2012 9:45 PM
To: Maven Users List
Subject: Re: Maven 3.0.3 hanging / having timeouts often?

> Just for the record, my JAVA_HOME is C:\Program 
> Files\Java\jdk1.7.0_03, but when I run "java -version", I get "java 
> version "1.6.0_31"". The computer in

That simply means you have another java in your path before the jdk1.7.0_03. Perhaps there is a "java.exe" file in c:\windows or something like that.

Wayne

---------------------------------------------------------------------
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: Maven 3.0.3 hanging / having timeouts often?

Posted by Wayne Fay <wa...@gmail.com>.
> Just for the record, my JAVA_HOME is C:\Program Files\Java\jdk1.7.0_03, but
> when I run "java -version", I get "java version "1.6.0_31"". The computer in

That simply means you have another java in your path before the
jdk1.7.0_03. Perhaps there is a "java.exe" file in c:\windows or
something like that.

Wayne

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


Re: Maven 3.0.3 hanging / having timeouts often?

Posted by Henrik Arro <he...@gmail.com>.
Interesting. Do you have an example of another Java application that has
network connectivity problems? Then I could try it to see if it is the
combination Java / network hardware that is the culprit.

Just for the record, my JAVA_HOME is C:\Program Files\Java\jdk1.7.0_03, but
when I run "java -version", I get "java version "1.6.0_31"". The computer in
question is a Sony Vaio laptop, with an Atheros AR9285 wireless network
adapter.

/Henrik Arro


martin.eisengardt wrote
> 
> I got some similar problems.
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=362418
> Seems that java itself or maven or any other thing is not liking my aviara
> firewall or my network device. There are some other java apps that
> sometime
> have the same connection problems resulting in timeouts. Are there any
> hints what maven is doing (activate debug option) or can you simply wait
> to
> see if it is the same network timeout issue?
> 


--
View this message in context: http://maven.40175.n5.nabble.com/Maven-3-0-3-hanging-having-timeouts-often-tp4388958p5664491.html
Sent from the Maven - Users mailing list archive at Nabble.com.

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


Re: Maven 3.0.3 hanging / having timeouts often?

Posted by "martin.eisengardt" <ma...@googlemail.com>.
I got some similar problems.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=362418
Seems that java itself or maven or any other thing is not liking my aviara
firewall or my network device. There are some other java apps that sometime
have the same connection problems resulting in timeouts. Are there any
hints what maven is doing (activate debug option) or can you simply wait to
see if it is the same network timeout issue?

On Mon, Apr 23, 2012 at 4:26 PM, Wayne Fay <wa...@gmail.com> wrote:

> > I'm on Windows 7 and cygwin (CYGWIN_NT-6.1-WOW64). I have removed my
> > ~/.m2/settings.xml to see if that made any difference -- it did not.
> There
> > does not appear to be any network problem, I can download the artifacts
> > manually (in Firefox) just fine.
>
> Can you try building your projects with Maven 3.0.4 in Windows (not in
> the Cygwin environment) to see if there is any difference?
>
> Wayne
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: Maven 3.0.3 hanging / having timeouts often?

Posted by Wayne Fay <wa...@gmail.com>.
> I'm on Windows 7 and cygwin (CYGWIN_NT-6.1-WOW64). I have removed my
> ~/.m2/settings.xml to see if that made any difference -- it did not. There
> does not appear to be any network problem, I can download the artifacts
> manually (in Firefox) just fine.

Can you try building your projects with Maven 3.0.4 in Windows (not in
the Cygwin environment) to see if there is any difference?

Wayne

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