Please verify you invoked Maven from the correct directory. -> [Help 1] code example
Example: Goal requires a project to execute but there is no POM in this directory
Check for the name of the file, i.e pom.xml file is spelled correctly with proper file extension .xml.
Example for this error are
pom.ml pm.xl