Details

    • Type: New Feature New Feature
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0-alpha-5
    • Fix Version/s: 2.0-alpha-5
    • Component/s: None
    • Labels:
      None
    • Environment:
      all
    • Number of attachments :
      2

      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.

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

        Issue Links

          Activity

          Hide
          Sylvain Mougenot added a comment -

          Some attributes are to be included : filtered, encoding.
          see http://jira.codehaus.org/browse/ARCHETYPE-19

          Like :
          <resource filtered="false">src/main/resources/image.png</resource>
          <resource encoding="iso-8859-1">src/main/resources/index.html</resource>

          Show
          Sylvain Mougenot added a comment - Some attributes are to be included : filtered, encoding. see http://jira.codehaus.org/browse/ARCHETYPE-19 Like : <resource filtered="false" >src/main/resources/image.png</resource> <resource encoding="iso-8859-1" >src/main/resources/index.html</resource>
          Hide
          Herve Boutemy added a comment -

          an xsd generated from Modello descriptor archetype.mdo has just been published (with documentation)

          please have a look and confirm it is ok

          Show
          Herve Boutemy added a comment - an xsd generated from Modello descriptor archetype.mdo has just been published (with documentation ) please have a look and confirm it is ok
          Hide
          luke w patterson added a comment -

          > an xsd generated from Modello descriptor archetype.mdo has just been published (with documentation)

          good news, couple of questions:

          Show
          luke w patterson added a comment - > an xsd generated from Modello descriptor archetype.mdo has just been published (with documentation) good news, couple of questions: is this the right url http://maven.apache.org/xsd/archetype-1.0.0.xsd ? don't see anything there yet will an xsd for archetype-metadata.xml be published also?
          Hide
          Herve Boutemy added a comment -

          it takes a couple of hours to sync...

          what you expect as archetype-metadata is published as archetype-descriptor: see ARCHETYPE-237

          Show
          Herve Boutemy added a comment - it takes a couple of hours to sync... what you expect as archetype-metadata is published as archetype-descriptor: see ARCHETYPE-237

            People

            • Assignee:
              Herve Boutemy
              Reporter:
              Gregory Kick
            • Votes:
              18 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: