[英]Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved
[英]Maven: Failed to retrieve pluginorg.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved
以下是我執行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.
已經提出了類似的問題。 這是代理/網絡問題。
插件org.apache.maven.plugins:maven-clean-plugin:2.5或其依賴項之一無法解析
插件org.apache.maven.plugins:maven-install-plugin:2.4或其依賴項之一無法解析
請先嘗試使用Google搜索,或讓您的問題更具體,例如提及已解決問題的所有步驟。
請添加正確的代理信息。
<proxies>
<proxy>
<id>proxy</id>
<active>true</active>
<protocol>http</protocol>
<host>proxy.example.com</host>
<port>8080</port>
</proxy>
</proxies>
或將其應用於您的LAN設置。 無論您有什么要求。 這是代理問題。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.