您的位置:首页 > 大数据 > 人工智能

Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.4:create (default-cli) on p

2016-06-21 18:03 651 查看
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.4:create (default-cli) on project standalone-pom: Unable to parse configuration of mojo org.apache.maven.plugins:maven-archetype-plugin:2.4:create for parameter #: Abstract class
or interface 'org.apache.maven.artifact.repository.ArtifactRepository' cannot be instantiated -> [Help 1]

[ERROR]

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

[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 read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginConfigurationException
错误因可能是 archetype:create命令已经过期,需要使用 archetype:generate 来进行代替

例如:

mvn archetype:generate -DgroupId=org.project -DartifactId=project -DarchetypeArtifactId=maven-archetype-webapp
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: