0
我正在嘗試使用Struts wiki中指出的struts2-archetype-blank原型來設置Struts2項目。
Struts2 maven原型
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的配置使用這個原型?
錯字?看看錯誤消息,有[...:strus ..]而不是struts。至少我發現它在這裏:https://repository.apache.org/index.html#nexus-search;gav~~struts2-archetype-blank~~~ – Adrian
阿德里安,這應該是一個答案國際海事組織 –