大潘_IT 2016-09-15 01:29 采纳率: 100%
浏览 1401
已采纳

maven 执行指令创建项目是报错

尝试换了多个版本 同样的错误提示
指令 mvn archetype:create -DgroupId=com.test.maven -DartifactId=test1 -DpackageName=com.test.maven.test1
刚开始下载一些东西,一会就报这个错误
貌似是有一个插件找不到,求解

[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.apac
he.maven.plugins:maven-archetype-plugin:2.4:create for parameter #: Cannot create instance of interface org.apache.maven.artifact.repository.ArtifactRepository: org.apache.maven
.artifact.repository.ArtifactRepository.() -> [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

  • 写回答

2条回答 默认 最新

  • wbsjhbl 2016-09-15 05:21
    关注

    可能是以下的原因导致的:
    1、JAVA_HOME没有设置或者设置有误、m2_home设置有误
    2、要删除/org/apache/maven/plugins/下的maven-archetype-plugin
    3、archetype:create命令已经过期,需要使用 archetype:generate 来进行代替(方案可行)
    4、maven-archetype-plugin 2.4版本的插件有问题,换其它版本进行创建(方案可行)

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 对于相关问题的求解与代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料