Details
-
Type:
New Feature
-
Status:
Closed
-
Priority:
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 :
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.
Issue Links
- is duplicated by
-
ARCHETYPE-237
Provide schema for archetype descriptor
-
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>