为了账号安全,请及时绑定邮箱和手机立即绑定

出这个错该怎么解决啊?

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 19.868 s

[INFO] Finished at: 2017-10-19T22:43:39+08:00

[INFO] Final Memory: 8M/19M

[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:3.0.1:generate (default-cli) on project standalone-pom: Execution default-cli of goal org.apache.maven.plugins:maven-archetype-plugin:3.0.1:generate failed: Plugin org.apache.maven.plugins:maven-archetype-plugin:3.0.1 or one of its dependencies could not be resolved: Failed to collect dependencies at org.apache.maven.plugins:maven-archetype-plugin:jar:3.0.1 -> org.apache.maven.archetype:archetype-descriptor:jar:3.0.1: Failed to read artifact descriptor for org.apache.maven.archetype:archetype-descriptor:jar:3.0.1: Could not transfer artifact org.apache.maven.archetype:archetype-descriptor:pom:3.0.1 from/to central (https://repo.maven.apache.org/maven2): repo.maven.apache.org: Unknown host repo.maven.apache.org -> [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/PluginResolutionException


正在回答

1 回答

应该是没有连上仓库,可以尝试增加镜像仓库,尝试在settings.xml中增加以下代码

  <mirror>

      <id>UK</id>

      <mirrorOf>central</mirrorOf>

      <name>UK Central</name>

      <url>http://uk.maven.org/maven2</url>

    </mirror>


0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消
项目管理利器——maven
  • 参与学习       173090    人
  • 解答问题       742    个

使用maven来构建和管理Java项目,从环境配置,到maven核心知识

进入课程

出这个错该怎么解决啊?

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信