大潘_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条)

报告相同问题?

悬赏问题

  • ¥15 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?