I\'m following Maven in 5 Minutes manual with the following:
mvn archetype:generate -DgroupId=com.mycompany.app -DartifactId=my-app -DarchetypeArtifactId=maven-a
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://:
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.