2015-05-15 42 views
1

我是新来的J2EE development.I行家基础的应用是跟着教程分享@http://www.tutorialspoint.com/jsf/jsf_first_application.htm无法创建使用maven-原型 - web应用程序的插件

用于创建基于Maven的应用。问题是,当我运行的第一个命令

MVN原型:创建-DgroupId = com.tutorialspoint.test -DartifactId =的HelloWorld -DarchetypeArtifactId = Maven的原型 - web应用

我得到以下错误:

[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 

它要求去上面的位置,但没有太多的信息可用。那么请你帮我解决这个问题。

谢谢。

回答

8

您似乎有与this question相同的问题。

答案似乎是,你应该使用生成,而不是创造:

mvn archetype:generate -DgroupId=com.tutorialspoint.test -DartifactId=helloworld -DarchetypeArtifactId=maven-archetype-webapp -DinteractiveMode=false 
+0

非常感谢yannick1976 – user991282

相关问题