2015-05-15 47 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

相關問題