Creating a project with archetype:generate
in the same way as described in Maven in 5 Minutes.
Got this error:
[ERROR] The goal you specified requires a project to execute but there is no POM in this directory (/mnt/c/Users/etomort/quartz-poc). Please verify you invoked Maven from the correct directory. -> [Help 1]
org.apache.maven.lifecycle.MissingProjectException: The goal you specified requires a project to execute but there is no POM in this directory (/mnt/c/Users/etomort/quartz-poc). Please verify you invoked Maven from the correct directory.
Since it is such a basic thing, I just got confused...
I checked these two questions:
- Error “The goal you specified requires a project to execute but there is no POM in this directory” after executing maven command
- maven generating pom file
But neither the accepted answers solved the issue.
So, I am creating this question in case someone hits it and do not get it at first.
By the way, the Maven command entered is:
mvn archetype:generate -DgroupId=com.mycompany -DartifactId=quartz-poc -DarchetypeArtifactId= maven-archetype-quickstart -DarchetypeVersion=1.4 -DinteractiveMode=false