我正在尝试使用Struts wiki 中指出的struts2-archetype-blank原型设置 Struts2 项目。
mvn archetype:generate -B -DgroupId=tutorial -DartifactId=tutorial -DarchetypeGroupId=org.apache.struts -DarchetypeArtifactId=struts2-archetype-blank -DarchetypeVersion=2.1.8
但是我收到以下错误:
[INFO] Archetype repository missing. Using the one from [org.apache.struts:strus2-archetype-blank:2.3.8] found in catalog remote
Downloading: http://repo1.maven.org/maven2/org/apache/struts/struts2-archetype-
lank/2.1.8/struts2-archetype-blank-2.1.8.jar
[INFO] ------------------------------------------------------------------------<br/>
[INFO] BUILD FAILURE<br/>
[INFO] ------------------------------------------------------------------------<br/>
[INFO] Total time: 5.829s<br/>
[INFO] Finished at: Wed Jan 09 10:10:26 CET 2013<br/>
[INFO] Final Memory: 7M/17M<br/>
[INFO] ------------------------------------------------------------------------<br/>
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:.2:generate (default-cli) on project standalone-pom: The desired archetype does not exist <br/>(org.apache.struts:struts2-archetype-blank:2.1.8) -> [Help 1]<br/>
[ERROR]
我是否需要在我的 Maven 配置中使用特定的存储库才能使用此原型?