Press enter to see results or esc to cancel.


The goal you specified requires a project to execute but there is no POM in this directory

On executing the mvn generate the below error will come sometimes

mvn archetype:generate -DgroupId = com.chillyfacts.helloworld -DartifactId = helloworld -DarchetypeArtifactId = maven-archetype-webapp -DinteractiveMode = false
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.147 s
[INFO] Finished at: 2017-11-26T21:08:47+03:00
[INFO] Final Memory: 7M/116M
[INFO] ------------------------------------------------------------------------
[ERROR] The goal you specified requires a project to execute but there is no POM in this directory (C:\apache-maven-3.5.2). Please verify you invoked Maven from the correct directory. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MissingProjectException

Solution.
Update every parameter inside double quotes like this

mvn archetype:generate "-DgroupId = com.chillyfacts.helloworld" "-DartifactId = helloworld" "-DarchetypeArtifactId = maven-archetype-webapp" "-DinteractiveMode = false"

Comments

Leave a Comment