Uploaded image for project: 'Maven Archetype'
  1. Maven Archetype
  2. ARCHETYPE-47

use an xml schema for archetype.xml

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-alpha-5
    • 2.0-alpha-5
    • None
    • None
    • all

    Description

      like pom.xml and settings.xml, i would like to see archetype.xml have an xml schema. not only does it provide quick validation, but it is useful for auto-completion in xml editors. it could also have applications in the maven-archetype-plugin because jaxb can provide quick-and-easy unmarshalling.

      i have included a schema constructed to match the description found in http://maven.apache.org/guides/mini/guide-creating-archetypes.html . it has been attached with a diagram of the structure for those not familiar with schema syntax. it's pretty simple.

      Attachments

        1. archetype-v1_0_0.xsd
          2 kB
          Gregory Kick
        2. archetype-v1_0_0.png
          29 kB
          Gregory Kick

        Issue Links

          Activity

            People

              hboutemy Herve Boutemy
              gk5885 Gregory Kick
              Votes:
              18 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: