2013-02-12 37 views
0

與行家3.0.3 7 CMD控制檯:命令行中的窗口創建行家web項目失敗

MVN原型:生成-DgroupId = 「com.maven」 -DartifactId = 「網」 -DarchetypeArtifactId =行家-原型-quickstart -DinteractiveMode =假

Maven的原型 - 快速入門的作品,但Maven的achetype-web應用並不:

MVN原型:產生-DgroupId = 「com.maven」 -DartifactId = 「網」 -DarchetypeArtifactId = maven-achetype-webapp -DinteractiveMode = false

[INFO] Scanning for 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 to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.2:generate (default-cli) on project standalone-pom: The desired archetype does 
not exist (org.apache.maven.archetypes:maven-achetype-webapp:1.0) -> [Help 1] 
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 
[ERROR] Re-run Maven using the -X switch to enable full debug logging. 
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles: 
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException 
+0

你有沒有試過用maven 3.0.4做這個? – Sam 2013-02-12 07:35:06

回答

2

我想你可能有一個錯字:它不應該是maven-aRchetype-webapp呢? (R缺失)