I\'m following Maven in 5 Minutes manual with the following:
mvn archetype:generate -DgroupId=com.mycompany.app -DartifactId=my-app -DarchetypeArtifactId=maven-a
I ran into the same problem, and it looks like we have the similar setup
here is what I have to do:
Wrap all the "-D..."
inside double quotes, e.g.
mvn archetype:generate "-DarchetypeGroupId=org.apache.maven.archetypes" "-DarchetypeArtifactId=maven-archetype-quickstart" "-DgroupId=com.mycompany.app" "-DartifactId=my-app"
Make sure you have "HTTP_PROXY"
set properly in your envrironment variables
(check it by typing "echo $Env:HTTP_PROXY"
)