You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Jason van Zyl (JIRA)" <ji...@codehaus.org> on 2009/12/27 19:08:56 UTC

[jira] Commented: (MNG-1592) Top level element in POM is not correctly validated

    [ http://jira.codehaus.org/browse/MNG-1592?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=204205#action_204205 ] 

Jason van Zyl commented on MNG-1592:
------------------------------------

You get something like this now:

[INFO] Scanning for projects...
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]   The project org.apache.maven:maven:3.0-SNAPSHOT (/Users/jvanzyl/js/org/apache/maven/maven-3/trunk/pom.xml) has 1 error
[ERROR]     Malformed POM /Users/jvanzyl/js/org/apache/maven/maven-3/trunk/pom.xml: Expected root element 'project' but found 'model' (position: START_TAG seen ...apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">... @13:203)  @  (/Users/jvanzyl/js/org/apache/maven/maven-3/trunk/pom.xml) -> [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

> Top level element in POM is not correctly validated
> ---------------------------------------------------
>
>                 Key: MNG-1592
>                 URL: http://jira.codehaus.org/browse/MNG-1592
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Plugins and Lifecycle
>    Affects Versions: 2.0
>            Reporter: Carlos Sanchez
>            Assignee: Jason van Zyl
>             Fix For: 3.x
>
>         Attachments: it1019.patch
>
>
> this pom doesn't make the build break
> <modelzz>
>   <modelVersion>4.0.0</modelVersion>
>   <groupId>test</groupId>
>   <artifactId>test</artifactId>
>   <version>1.0</version>
> </modelzz>
> and I'm starting to see wrong poms with a top level <model> instead of <project>

-- 
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