You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Max Andersen (JIRA)" <ji...@codehaus.org> on 2010/04/01 18:40:22 UTC

[jira] Created: (MNG-4617) Incorrect/misleading error message when typo in module section

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

        

[jira] Updated: (MNG-4617) Incorrect/misleading error message when typo in module section

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
     [ 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

        

[jira] Commented: (MNG-4617) Incorrect/misleading error message when typo in module section

Posted by "Max Andersen (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-4617?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=216374#action_216374 ] 

Max Andersen commented on MNG-4617:
-----------------------------------

Sorry for the noise - I don't see any "test" file in my folder now, but I must have had one when doing this since I can't reproduce now either without putting a file named "test" next to the pom...

> 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
>            Assignee: Benjamin Bentmann
>         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

        

[jira] Closed: (MNG-4617) Incorrect/misleading error message when typo in module section

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-4617?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Bentmann closed MNG-4617.
----------------------------------

    Resolution: Cannot Reproduce
      Assignee: Benjamin Bentmann

> 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
>            Assignee: Benjamin Bentmann
>         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