2012-05-19 38 views
0

當試圖執行以下命令:的Maven給MojoExecutionException與產生掛毯

mvn archetype:generate -DarchetypeCatalog=http://tapestry.apache.org. 

我收到以下錯誤信息:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2 
.2:generate (default-cli) on project standalone-pom: Execution default-cli of go 
al org.apache.maven.plugins:maven-archetype-plugin:2.2:generate failed: Plugin o 
rg.apache.maven.plugins:maven-archetype-plugin:2.2 or one of its dependencies co 
uld not be resolved: The following artifacts could not be resolved: org.codehaus 
.groovy:groovy:jar:1.8.3, org.apache.ant:ant:jar:1.8.1: Could not transfer artif 
act org.codehaus.groovy:groovy:jar:1.8.3 from/to central (http://repo.maven.apac 
he.org/maven2): GET request of: org/codehaus/groovy/groovy/1.8.3/groovy-1.8.3.ja 
r from central failed: Read timed out -> [Help 1] 

[ERROR] For more information about the errors and possible solutions, please rea 
d the following articles: 
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResoluti 
onException 

所以,筆者走訪了

https://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

它說要在掛毯文件中查看這個錯誤的含義,但我在那找不到它。 Thx提前與我得到的任何幫助。

回答