[ http://jira.codehaus.org/browse/ARCHETYPE-107?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_120357 ]
JR Boyens commented on ARCHETYPE-107: ------------------------------------- The easiest workaround I've found is to explicitly name the version of the archetype plugin like this: $ mvn org.apache.maven.plugins:maven-archetype-plugin:1.0-alpha-4:create Note that you'll also have to explicitly specify the archetypeVersion too > maven archetype missing dependency versions breaks archetype:create > -------------------------------------------------------------------- > > Key: ARCHETYPE-107 > URL: http://jira.codehaus.org/browse/ARCHETYPE-107 > Project: Maven Archetype > Issue Type: Bug > Components: Archetypes > Environment: linux 2.6 (Xubuntu) > Reporter: Andrew Waterman > Priority: Critical > > When I try to invoke the "create" goal in the 2.0.7 version of maven, I > receive the following error message when invoked from a directory with an > existing pom.xml: > Project ID: org.apache.maven.plugins:maven-archetype-plugin > POM Location: Artifact > [org.apache.maven.plugins:maven-archetype-plugin:pom:1.0-SNAPSHOT] > Validation Messages: > [0] 'dependencies.dependency.version' is missing for > org.apache.maven.archetype:maven-archetype-creator > Reason: Failed to validate POM for project > org.apache.maven.plugins:maven-archetype-plugin at Artifact > [org.apache.maven.plugins:maven-archetype-plugin:pom:1.0-SNAPSHOT] > The currently staged version of the maven-archetype-creator dependency > contains a missing version reference: > <dependency> > <groupId>org.apache.maven.archetype</groupId> > <artifactId>maven-archetype-model</artifactId> > </dependency> > [source: > http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-archetype-creator/1.0-alpha-7/maven-archetype-creator-1.0-alpha-7.pom] > This effectively breaks the archetype:create goal. -- 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