command line create maven web project failure -
with maven 3.0.3 in windows 7 cmd console:
mvn archetype:generate -dgroupid="com.maven" -dartifactid="web" -darchetypeartifactid=maven-archetype-quickstart -dinteractivemode=false
maven-archetype-quickstart works maven-achetype-webapp doesn't:
mvn archetype:generate -dgroupid="com.maven" -dartifactid="web" -darchetypeartifactid=maven-achetype-webapp -dinteractivemode=false
[info] scanning projects... [info] [info] ------------------------------------------------------------------------ [info] building maven stub project (no pom) 1 [info] ------------------------------------------------------------------------ [info] [info] >>> maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom >>> [info] [info] <<< maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom <<< [info] [info] --- maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom --- [info] generating project in batch mode [info] ------------------------------------------------------------------------ [info] build failure [info] ------------------------------------------------------------------------ [info] total time: 3.212s [info] finished at: tue feb 12 17:02:01 est 2013 [info] final memory: 14m/154m [info] ------------------------------------------------------------------------ [error] failed execute goal org.apache.maven.plugins:maven-archetype-plugin:2.2:generate (default-cli) on project standalone-pom: desired archetype not exist (org.apache.maven.archetypes:maven-achetype-webapp:1.0) -> [help 1] [error] [error] see total stack trace of errors, re-run maven -e switch. [error] re-run maven using -x switch enable total debug logging. [error] [error] more info errors , possible solutions, please read next articles: [error] [help 1] http://cwiki.apache.org/confluence/display/maven/mojofailureexception
i think might have typo: shouldn't maven-archetype-webapp
instead? (the r missing)
maven
No comments:
Post a Comment