[
http://jira.codehaus.org/browse/MNG-4623?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Benjamin Bentmann closed MNG-4623.
----------------------------------
Resolution: Fixed
Fix Version/s: (was: 3.0-beta-2)
3.0-beta-1
Assignee: Benjamin Bentmann
Fixed error message in
[r931492|http://svn.apache.org/viewvc?view=revision&revision=931492].
Still to be investigated is a potential regression in Modello. The error about
the duplicate element is generated from a parser invocation in non-strict mode
but in non-strict mode errors like that shouldn't be produced at all.
> model parsing errors can be less helpful in Maven 3
> ---------------------------------------------------
>
> Key: MNG-4623
> URL: http://jira.codehaus.org/browse/MNG-4623
> Project: Maven 2 & 3
> Issue Type: Improvement
> Components: Errors
> Affects Versions: 3.0-alpha-7
> Reporter: Brett Porter
> Assignee: Benjamin Bentmann
> Fix For: 3.0-beta-1
>
>
> I accidentally left out the <build> tag around extensions:
> {code:xml}
> </dependencies>
> ...
> <extensions>
> <extension>
> <groupId>org.apache.maven.wagon</groupId>
> <artifactId>wagon-ssh-external</artifactId>
> <version>1.0-beta-6</version>
> </extension>
> </extensions>
> ...
> <distributionManagement>
> {code}
> In Maven 2.2.1 the error was long winded but included:
> {code}
> Reason: Parse error reading POM. Reason: Unrecognised tag: 'extensions'
> (position: START_TAG seen ...</dependencies>\n <extensions>... @18:15) for
> project unknown at .../pom.xml
> {code}
> In Maven 3.0-SNAPSHOT, the error is:
> {code}
> [ERROR] Non-parseable POM .../pom.xml: Duplicated tag: 'artifactId'
> (position: START_TAG seen ...</groupId>\n <artifactId>... @21:19) ->
> [Help 2]
> {code}
> While it points at the right section, the first is much more accurate about
> what the problem was
--
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