Maven in 5 Minutes issue Maven in 5 Minutes issue powershell powershell

Maven in 5 Minutes issue


I am using Windows 7 SP1.

I was having the problem because I ran it using PowerShell.

It works fine when I ran it using CMD.EXE.

Thanks for everyone's help.


I ran into the same problem, and it looks like we have the similar setup

  • Windows 7
  • Powershell
  • HTTP proxy

here is what I have to do:

  1. 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"
  2. Make sure you have "HTTP_PROXY" set properly in your envrironment variables(check it by typing "echo $Env:HTTP_PROXY")


First, you should follow the advice of the error message. Call Maven with the additional flags to get more information.

Second, you should ensure that your internet connection is working from the command line. Are you able for example to download http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-archetype-plugin/2.2/maven-archetype-plugin-2.2.pom from your browser? If not, Maven is not able to download the necessary plugins, and so the normal bootstrapping that is necessary before your project can be build is not done. Check if your browser is using a proxy, and you don't have defined an environment variable HTTP_PROXY. If that is the case, define in the shell you are using your variable HTTP_PROXY by the command:

set HTTP_PROXY=http://<my.proxy.host>:<port>

with the right values for my.proxy.host and port. If that works then well, define the environment variable for the system, so that every open shell has that environment variable defined.

Please add that information to your question, and sorry for the wrong advice to call ping http://...., that cannot work.