$ mvn package (Maven 3.9.16, same POM) [INFO] Scanning for projects... [ERROR] [ERROR] Some problems were encountered while processing the POMs: [ERROR] Malformed POM /lifecycle/pom.xml: Unknown attribute 'root' for tag 'project' (position: START_TAG seen ...->\n... @3:64) @ /lifecycle/pom.xml, line 3, column 64 [FATAL] 'modelVersion' of '4.1.0' is newer than the versions supported by this version of Maven: [4.0.0]. Building this project requires a newer version of Maven. @ line 4, column 17 @ [ERROR] The build could not read 1 project -> [Help 1] [ERROR] [ERROR] The project com.ankurm.m4:lifecycle-demo:1.0.0 (/lifecycle/pom.xml) has 2 errors [ERROR] Malformed POM /lifecycle/pom.xml: Unknown attribute 'root' for tag 'project' (position: START_TAG seen ...->\n... @3:64) @ /lifecycle/pom.xml, line 3, column 64 -> [Help 2] [ERROR] 'modelVersion' of '4.1.0' is newer than the versions supported by this version of Maven: [4.0.0]. Building this project requires a newer version of Maven. @ line 4, column 17 [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/ProjectBuildingException [ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/ModelParseException