首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Maven:未能检索pluginorg.apache.maven.plugins:maven-install-plugin:2.4或无法解析其依赖项之一

Maven:未能检索pluginorg.apache.maven.plugins:maven-install-plugin:2.4或无法解析其依赖项之一
EN

Stack Overflow用户
提问于 2017-04-19 18:26:11
回答 2查看 3.2K关注 0票数 1

下面是我在执行maven build时的错误

代码语言:javascript
复制
[INFO] Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.4/maven-install-plugin-2.4.pom
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 1.975 s
    [INFO] Finished at: 2017-04-19T15:45:25+05:30
    [INFO] Final Memory: 8M/155M
    [INFO] ------------------------------------------------------------------------
    [ERROR] Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-install-plugin:jar:2.4: Could not transfer artifact org.apache.maven.plugins:maven-install-plugin:pom:2.4 from/to central (https://repo.maven.apache.org/maven2): Unexpected response code for CONNECT: 405 -> [Help 1]
    Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: Could not transfer artifact org.apache.maven.plugins:maven-install-plugin:pom:2.4 from/to central (https://repo.maven.apache.org/maven2): Failed to transfer fil
    : https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.4/maven-install-plugin-2.4.pom. Return code is: 405 , ReasonPhrase:Method Not Allowed.
EN

回答 2

Stack Overflow用户

发布于 2017-04-19 18:33:03

类似的问题已经被问过了。这是一个代理/网络问题。

Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resolved

Maven: Failed to retrieve plugin descriptor error

Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved

请先尝试谷歌搜索,或者让你的问题更具体,比如提到你已经采取了哪些步骤来解决问题。

票数 1
EN

Stack Overflow用户

发布于 2017-04-19 18:54:41

请添加正确的代理信息。

代码语言:javascript
复制
<proxies>
  <proxy>
    <id>proxy</id>
    <active>true</active>
    <protocol>http</protocol>
    <host>proxy.example.com</host>
    <port>8080</port>
  </proxy>
</proxies>

或将其应用于您的LAN设置。不管你有什么要求。这是代理问题。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/43493022

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档