Maven Error No POM in this Project when performing archetype:generate

remove the \ then it should start to query for more informations.

I have no windows here, but on linux it shows the same behavior with

mvn archetype:generate /

HTH R


When some tutorials describes a mvn command to be executed that is covered in two rows or more, they might add an extra backslash at the new line (of the instruction) to indicate that the same command continues on next line.

This backslash should be removed BEFORE executing the command. For instance the command for setting up a Jersey Web Application might look like this:

mvn archetype:generate -DarchetypeGroupId=org.glassfish.jersey.archetypes \
-DarchetypeArtifactId=jersey-quickstart-webapp -DarchetypeVersion=2.2

but should be launched as below, without backslash:

mvn archetype:generate -DarchetypeGroupId=org.glassfish.jersey.archetypes -DarchetypeArtifactId=jersey-quickstart-webapp -DarchetypeVersion=2.2

If NOT removing this extra backslash you might get the error you described above.

Tags:

Java

Maven

Akka