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