Maven Project creation command stuck

Add -X to your command to enable Maven's debug logging.

If it's stuck on something like

[DEBUG] Searching for remote catalog: http://repo.maven.apache.org/maven2/archetype-catalog.xml

you probably have a connection problem. Since it has been working for you before, you obviously don't need to configure a proxy. Instead - since you are using Windows - my guess is, that your virus scanner/personal firewall is blocking or rather "scanning" the connection, resulting in a slow response. Try temporarily disabling your virus scanner/personal firewall and see if that helps.


You can simply use local archetype-catalog.xml file instead of the remote one.

The option -DarchetypeCatalog=internal can do it well.

So, you are going to generate your project instantly now:

mvn -B archetype:generate -DarchetypeCatalog=internal -DgroupId=com.mycompany.app -DartifactId=my-app

Tags:

Java

Maven