Incorrect/misleading error message when typo in module section --------------------------------------------------------------
Key: MNG-4617 URL: http://jira.codehaus.org/browse/MNG-4617 Project: Maven 2 & 3 Issue Type: Bug Components: Command Line Affects Versions: 3.0-alpha-7 Reporter: Max Andersen I have a module in a folder called "tests" In the parent folder I put a pom with: <module>test</module> i.e. the folder name does not actually exist and the error received is: [ERROR] The build could not read 1 project -> [Help 1] [ERROR] The project (/Users/max/Documents/code/jbosstools/modular_build/test) has 1 error [ERROR] Non-parseable POM /Users/max/Documents/code/jbosstools/modular_build/test: only whitespace content allowed before start tag and not [ (position: START_DOCUMENT seen [... @1:1) -> [Help 2] [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 I would say it would make better sense to check if the file actually exists and report the file as not there instead of a parse error which send me on to a hunt for a typo in tests/pom.xml (since I didn't spot the missing 's' for a while :) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira