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

Need better handling of malformed poms in local cache, like check for an update every run

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 2.0
    • Fix Version/s: None
    • Labels:
      None
    • Flags:
      Patch

      Description

      If a pom has a typo in it, it is downloaded and parsed with a (misspelled) error message printed

      [m2:libraries] [WARNING] POM for 'org.hibernate:hibernate-tools:pom:3.1.0.beta2' is invalid. It will be ignored for artifact resolution. Reason: Parse error reading POM. Reason: expected > to finsh end tag not < from line 7 (position: TEXT seen ...</dependency>\r\n </dependencies\r\n<... @29:2)

      but if the pom is corrected in the source repository, the local system doesnt check for a change, it just goes with what is there.

      Invalid pom files should be remembered and replacements looked for, because there is no value in retaining them.

        Attachments

        1. MNG-1954.txt
          62 kB
          ruel loehr

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                steve_l Steve Loughran
              • Votes:
                3 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: