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

Make parsing of settings.xml lenient with respect to unrecognized tags

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0-alpha-3
    • Component/s: Settings
    • Labels:
      None

      Description

      Currently, Maven parses the settings.xml in strict mode, making it error out upon occurrence of any tag that it does not understand. This makes co-existence of different Maven versions on the same machine more difficult as a user employing some newly added settings elements can't use the same settings.xml for old Maven versions.

      In principle, unrecognized elements don't hurt and can be safely ignored. The only benefit from the strict parsing is to tell the user about potential problems/typos in his settings.xml. This can however also be realized by warnings instead of errors.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: