Maven Archetype
  1. Maven Archetype
  2. ARCHETYPE-282

When reading the archetype-metadata.xml file, would be helpful to know if the XML was badly formed

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0-alpha-4
    • Fix Version/s: 2.0
    • Component/s: Generator
    • Labels:
      None
    • Environment:
      Windows, but affects all envs
    • Flags:
      Patch

      Description

      If archetype-metadata.xml is malformed, say with a module element which is unclosed (missing slash), there is no error message displayed in the log output, even with the debug(-X) parameter set.

      The DefaultArchetypeArtifactManager class contains methods which catch exceptions but do not log the problem. The problem is just silently ignored. I've created a patch file to log the problem at WARN level so that anyone who has a problem can see why it occured.

        Activity

        Chris Melikian created issue -
        Hervé Boutemy made changes -
        Field Original Value New Value
        Component/s Archetypes [ 12127 ]
        Component/s Generator [ 12126 ]
        Hervé Boutemy made changes -
        Fix Version/s 2.0-alpha-6 [ 14604 ]
        Hide
        Hervé Boutemy added a comment -

        code simplification done in r1004061

        Show
        Hervé Boutemy added a comment - code simplification done in r1004061
        Hervé Boutemy made changes -
        Resolution Fixed [ 1 ]
        Assignee Herve Boutemy [ hboutemy ]
        Status Open [ 1 ] Closed [ 6 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 09:05:55 UTC 2015 [ 1428224755734 ]
        Mark Thomas made changes -
        Workflow jira [ 12716732 ] Default workflow, editable Closed status [ 12748298 ]
        Mark Thomas made changes -
        Flags Patch [ 10430 ]
        Patch Submitted Yes [ 10763 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 22:17:37 UTC 2015 [ 1428272257260 ]
        Mark Thomas made changes -
        Workflow jira [ 12954181 ] Default workflow, editable Closed status [ 12991456 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Closed Closed
        255d 8h 1 Hervé Boutemy 03/Oct/10 17:31

          People

          • Assignee:
            Hervé Boutemy
            Reporter:
            Chris Melikian
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development