Below is my error when I execute maven build
以下是我执行maven build时的错误
[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.
2 个解决方案
#1
1
Similar questions have already been asked. It's a proxy/network issue.
已经提出了类似的问题。这是代理/网络问题。
插件org.apache.maven.plugins:maven-clean-plugin:2.5或其中一个依赖项无法解析
Maven: Failed to retrieve plugin descriptor error
Maven:无法检索插件描述符错误
插件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.
请先尝试谷歌搜索,或者更具体地提出您的问题,例如提及您已经采取的所有步骤来解决问题。
#2
1
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. Whatever your requirment. It is Proxy issue.
或将其应用于您的LAN设置。无论你的要求是什么。这是代理问题。
#1
1
Similar questions have already been asked. It's a proxy/network issue.
已经提出了类似的问题。这是代理/网络问题。
插件org.apache.maven.plugins:maven-clean-plugin:2.5或其中一个依赖项无法解析
Maven: Failed to retrieve plugin descriptor error
Maven:无法检索插件描述符错误
插件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.
请先尝试谷歌搜索,或者更具体地提出您的问题,例如提及您已经采取的所有步骤来解决问题。
#2
1
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. Whatever your requirment. It is Proxy issue.
或将其应用于您的LAN设置。无论你的要求是什么。这是代理问题。