I have just installed: C:\workspaces>mvn --version Apache Maven 3.0.4 (r1232337; 2012-01-17 09:44:56+0100) Maven home: C:\apps\apache-maven-3.0.4\bin\.. Java version: 1.7.0_03, vendor: Oracle Corporation Java home: C:\Java\jdk1.7.0_03\jre Default locale: no_NO, platform encoding: Cp1252 OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"
Next I try to create a project according to "Get Started" guide. As warned, you have to restart the "mvn archetype:generate" some times, as it fails, or rather hangs, due to download timeouts,especially on large files. After running it some 20-30 times maybe, I'm stuck in download on a particular large file: C:\workspaces>scripts\mvn-arc-cre C:\workspaces>SET MAVEN_OPTS=-Dmaven.artifact.threads=1 C:\workspaces>mvn archetype:generate -DgroupId=net.innovatec.zaet.mavtst1 -DartifactId=mav-test-1 -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Maven Stub Project (No POM) 1 [INFO] ------------------------------------------------------------------------ [INFO] [INFO] >>> maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom >>> [INFO] [INFO] <<< maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom <<< [INFO] [INFO] --- maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom --- Downloading: http://mirrors.ibiblio.org/pub/mirrors/maven2/org/codehaus/groovy/groovy/1.8.3/groovy-1.8.3.jar 75/5394 KB Avbryte satsvis jobb (J/N)? n C:\workspaces> That is, download stops and never resumes, I tried waiting for 3 hours without any further progress. Rerunning, I can results like: ... 374/5394 KB 845/5394 KB 51/5394 KB I've reached as far as 2216/5394 KB , but still its not even half of the file size. I've tried different mirrors, Wi-Fi and LAN connection, different settings for "-Dmaven.artifact.threads=", and entering proxy settings (which should not be necessary according to what I know, and I had to guess what to set - it didn't work either). The local network is quite fast, but heavily loaded, meaning xfer can stop for some seconds now and then, typically visible on videos on youtube ;-) , but it always recovers after a while . I've successfully downloaded large files (Gigabyte Zip's) using Google Chrome and Firefox. I have unfortunately no possibility to try the computer on another network. Effectively, I cannot even get started using maven, since mvn stalls before it's created my project. Anyone got an idea how I can proceed? --arneT