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

Provide informative messages when POM is invalid

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0
    • 2.0.1
    • None
    • None

    Description

      When a pom is invalid the error message should identify the problem. For example, in the POM below the closing "dependencies" element is misspelled, yet the error messages is only:

      [WARNING] POM for: 'springframework:spring:pom:1.2.6' does not appear to
      > be valid. Its will be ignored for artifact resolution.
      > Reason: Parse error reading POM
      > [DEBUG] springframework:spring:jar:1.2.6 (selected for compile)


      <project>
      > <modelVersion>4.0.0</modelVersion>
      > <groupId>springframework</groupId>
      > <artifactId>spring</artifactId>
      > <!-- Really 1.2.6-SNAPSHOT -->
      > <version>1.2.6</version>
      >
      > <dependencies>
      > <dependency>
      > <groupId>commons-logging</groupId>
      > <artifactId>commons-logging</artifactId>
      > <version>1.0.4</version>
      > <scope>compile</scope>
      > </dependency>
      > </depenencies>
      >
      > </project>

      Attachments

        1. MNG-1404.patch
          2 kB
          David Jackman

        Activity

          People

            jdcasey John Dennis Casey
            memelet Barry Kaplan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: