[
https://jira.codehaus.org/browse/MNG-5162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=284763#comment-284763
]
Aleksandr Panzin commented on MNG-5162:
---------------------------------------
Exactly the same problem with Maven 2.2.1. Gets stuck no matter what.
Using single fetching or multiple fetching makes no difference
(-Dmaven.artifact.threads=1 or -Dmaven.artifact.threads=5)
To be fair, Maven tends to get stuck hen downloading on 1.5.0_22 and 1.6.0_27
also.
I'd say that this is a Critical bug on Java7, since it renders Maven unusable.
(Microsoft Windows7 x64 [Version 6.1.7601]; Java HotSpot(TM) 64-Bit Server VM
(build 21.0-b17, mixed mode); Java HotSpot(TM) 64-Bit Server VM (build
20.2-b06, mixed mode) ;Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_22-b03,
mixed mode))
Problem most critical on:
Apache Maven 2.2.1 (r801777; 2009-08-06 20:16:01+0100)
Java version: 1.7.0
Java home: C:\Program Files\Java\jdk1.7.0\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 7" version: "6.1" arch: "amd64" Family: "windows"
Apache Maven 3.0.3 (r1075438; 2011-02-28 17:31:09+0000)
Maven home: c:\x\apache-maven-3.0.3\bin\..
Java version: 1.7.0, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.7.0\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"
Problems rarely occur on:
Apache Maven 2.2.1 (r801777; 2009-08-06 20:16:01+0100)
Java version: 1.5.0_22
Java home: C:\Program Files\Java\jdk1.5.0_22\jre
Default locale: en_IE, platform encoding: Cp1252
OS name: "windows 7" version: "6.1" arch: "amd64" Family: "windows"
Apache Maven 3.0.3 (r1075438; 2011-02-28 17:31:09+0000)
Maven home: c:\x\apache-maven-3.0.3\bin\..
Java version: 1.5.0_22, vendor: Sun Microsystems Inc.
Java home: C:\Program Files\Java\jdk1.5.0_22\jre
Default locale: en_IE, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"
> Maven stuck on downloading dependencies when using java 7.
> ----------------------------------------------------------
>
> Key: MNG-5162
> URL: https://jira.codehaus.org/browse/MNG-5162
> Project: Maven 2 & 3
> Issue Type: Bug
> Components: Dependencies
> Affects Versions: 3.0.1, 3.0.3
> Environment: Windows 7 Professional x64
> Reporter: Lukas Stampf
> Attachments: dump.tdump, edb.zip, java6.jpg, java7.jpg
>
>
> When JAVA_HOME is set to the Java 7 JDK and I run "mvn clean install" on my
> project the following happens:
> Maven downloads the dependencies to my local repository, as usual, but on
> some dependencies he stops while downloading and never continues. He is just
> stuck. I then must use CTRL+C and start from the beginning with my build, but
> it doesnt help because he gets stuck at the same dependencies again. In my
> local repository, where the failed dependency belongs is just a tmp file
> like: org.apache.servicemix.bundles.serp-1.13.1_4.jar.tmp90088a9d7e9e4642
> When I set JAVA_HOME to java 6 Update 27 everything works fine.
> The problem does not seem to be related to JAR size because, I saw it fail on
> 19kb dependencies as well.
> I have the impression it happens mostly to JARs with "long" names.
> Attached you will find a subproject of the project I am working on. it
> contains the org.apache.servicemix.bundles.serp-1.13.1_4 dependency, which is
> one of almost all servicemix bundles that is failing for me, when i use java7.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira