maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benjamin Bentmann (JIRA)" <j...@codehaus.org>
Subject [jira] Updated: (MNG-4617) Incorrect/misleading error message when typo in module section
Date Thu, 01 Apr 2010 16:58:22 GMT

     [ http://jira.codehaus.org/browse/MNG-4617?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Benjamin Bentmann updated MNG-4617:
-----------------------------------

    Attachment: MNG-4617.zip

The attached project yields
{noformat}
D:\MNG-4617>mvn validate -V
Apache Maven 3.0-alpha-7 (r921173; 2010-03-09 23:31:07+0100)
Java version: 1.5.0_21
Java home: D:\java\jdk-1.5\jre
Default locale: de_DE, platform encoding: Cp1252
OS name: "windows 7" version: "6.1" arch: "x86" Family: "windows"
[INFO] Scanning for projects...
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]   The project org.apache.maven.its.mng4616:test:0.1 (D:\MNG-4617\pom.xml) has 1 error
[ERROR]     Child module D:\MNG-4617\test of D:\MNG-4617\pom.xml does not exist
[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
{noformat}

> 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
>         Attachments: MNG-4617.zip
>
>
> 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

        

Mime
View raw message