Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-4623

model parsing errors can be less helpful in Maven 3

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0-alpha-7
    • Fix Version/s: 3.0-beta-1
    • Component/s: Errors
    • Labels:
      None

      Description

      I accidentally left out the <build> tag around extensions:

        </dependencies>
      ...
        <extensions>
          <extension>
            <groupId>org.apache.maven.wagon</groupId>
            <artifactId>wagon-ssh-external</artifactId>
            <version>1.0-beta-6</version>
          </extension>
        </extensions>
      ...
        <distributionManagement>
      

      In Maven 2.2.1 the error was long winded but included:

      Reason: Parse error reading POM. Reason: Unrecognised tag: 'extensions' (position: START_TAG seen ...</dependencies>\n  <extensions>... @18:15)  for project unknown at .../pom.xml
      

      In Maven 3.0-SNAPSHOT, the error is:

      [ERROR]     Non-parseable POM .../pom.xml: Duplicated tag: 'artifactId' (position: START_TAG seen ...</groupId>\n      <artifactId>... @21:19) -> [Help 2]
      

      While it points at the right section, the first is much more accurate about what the problem was

        Attachments

          Activity

            People

            • Assignee:
              bentmann Benjamin Bentmann
              Reporter:
              brettporter Brett Porter
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: