Errors creating project from previously accepted archetype ----------------------------------------------------------
Key: ARCHETYPE-333 URL: http://jira.codehaus.org/browse/ARCHETYPE-333 Project: Maven Archetype Issue Type: Bug Affects Versions: 2.0-alpha-5 Environment: Maven 3.0 RC3, JDK 6, Ubuntu Reporter: Jesse Glick Priority: Critical {noformat} rm -rf test && mvn -DarchetypeVersion=1.0 -DgroupId=test -DarchetypeArtifactId=osgi-archetype -Dversion=1.0-SNAPSHOT -DarchetypeGroupId=org.codehaus.mojo.archetypes -Dpackage=test -DartifactId=test -B org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-4:generate {noformat} succeeds. The same with 2.0-alpha-5 fails: {noformat} [ERROR] Cannot parse archetype descriptor org.codehaus.plexus.util.xml.pull.XmlPullParserException: Unknown attribute 'id' for tag 'archetype-descriptor' (position: START_TAG seen ... id="osgi-archetype" partial="false" name="OSGI Bundle archetype">... @2:88) at org.apache.maven.archetype.metadata.io.xpp3.ArchetypeDescriptorXpp3Reader.checkUnknownAttribute(ArchetypeDescriptorXpp3Reader.java:99) at org.apache.maven.archetype.metadata.io.xpp3.ArchetypeDescriptorXpp3Reader.parseArchetypeDescriptor(ArchetypeDescriptorXpp3Reader.java:579) at org.apache.maven.archetype.metadata.io.xpp3.ArchetypeDescriptorXpp3Reader.read(ArchetypeDescriptorXpp3Reader.java:1212) at org.apache.maven.archetype.metadata.io.xpp3.ArchetypeDescriptorXpp3Reader.read(ArchetypeDescriptorXpp3Reader.java:1141) at org.apache.maven.archetype.common.DefaultArchetypeArtifactManager.loadFileSetArchetypeDescriptor(DefaultArchetypeArtifactManager.java:477) {noformat} Indeed the id attribute is not supposed to be there, and http://fisheye.codehaus.org/browse/mojo/trunk/mojo/mojo-archetypes/osgi-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml?r2=12260&r1=11739 fixed this and will be in the next archetype release. In the meantime, though, anyone trying to use the latest maven-archetype-plugin with the latest released archetype will be unable to, even though the unrecognized attribute did not actually harm anything. Please downgrade this class of error to a warning, at least for a while until corrected archetypes are broadly available. Will try to create & submit a patch upon request. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira