Details

    • Type: New Feature New Feature
    • Status: 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

      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.png
        29 kB
        Gregory Kick
      2. archetype-v1_0_0.xsd
        2 kB
        Gregory Kick

        Issue Links

          Activity

          Gregory Kick created issue -
          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>
          Hervé Boutemy made changes -
          Field Original Value New Value
          Link This issue is duplicated by ARCHETYPE-237 [ ARCHETYPE-237 ]
          Hide
          Hervé 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
          Hervé 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
          Hervé 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
          Hervé 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
          Hervé Boutemy made changes -
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Closed [ 6 ]
          Assignee Herve Boutemy [ hboutemy ]
          Fix Version/s 2.0-alpha-5 [ 14254 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 09:05:55 UTC 2015 [ 1428224755734 ]
          Mark Thomas made changes -
          Workflow jira [ 12716524 ] Default workflow, editable Closed status [ 12748356 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 22:17:37 UTC 2015 [ 1428272257260 ]
          Mark Thomas made changes -
          Workflow jira [ 12953930 ] Default workflow, editable Closed status [ 12991069 ]
          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Closed Closed
          1341d 22h 59m 1 Hervé Boutemy 23/Mar/10 20:38

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development