[英]Maven: Failed to retrieve pluginorg.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved
Below is my error when I execute maven build 以下是我执行Maven构建时的错误
[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.
Similar questions have already been asked. 已经提出了类似的问题。 It's a proxy/network issue.
这是代理/网络问题。
Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resolved 插件org.apache.maven.plugins:maven-clean-plugin:2.5或其依赖项之一无法解析
Maven: Failed to retrieve plugin descriptor error Maven:无法检索插件描述符错误
Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved 插件org.apache.maven.plugins:maven-install-plugin:2.4或其依赖项之一无法解析
Please try Googling first, or making your question more specific, like mentioning what all steps you took already to solve the problem. 请先尝试使用Google搜索,或让您的问题更具体,例如提及已解决问题的所有步骤。
Please add correct proxy information. 请添加正确的代理信息。
<proxies>
<proxy>
<id>proxy</id>
<active>true</active>
<protocol>http</protocol>
<host>proxy.example.com</host>
<port>8080</port>
</proxy>
</proxies>
or apply it to your LAN settings. 或将其应用于您的LAN设置。 Whatever your requirment.
无论您有什么要求。 It is Proxy issue.
这是代理问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.