我是 J2EE 开发的新手。我正在关注共享的教程 @ http://www.tutorialspoint.com/jsf/jsf_first_application.htm
用于创建基于 maven 的应用程序。问题是当我运行第一个命令时
mvn archetype:create -DgroupId=com.tutorialspoint.test -DartifactId=helloworld -DarchetypeArtifactId=maven-archetype-webapp
我遇到以下错误:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2
.3:create (default-cli) on project standalone-pom: Unable to parse configuration
of mojo org.apache.maven.plugins:maven-archetype-plugin:2.3:create for paramete
r #: Cannot create instance of interface org.apache.maven.artifact.repository.Ar
tifactRepository: org.apache.maven.artifact.repository.ArtifactRepository.<init>
() -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginConfigurationException
它要求去上面的位置,但那里没有太多可用的信息。你能帮我解决这个问题吗?
谢谢。
最佳答案
您似乎遇到了与 this question 中相同的问题.
答案似乎是你应该使用 generate 而不是 create :
mvn archetype:generate -DgroupId=com.tutorialspoint.test -DartifactId=helloworld -DarchetypeArtifactId=maven-archetype-webapp -DinteractiveMode=false
关于java - 无法使用 maven-archetype-webapp 插件创建基于 maven 的应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30269710/