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

标签 java spring eclipse maven jakarta-ee

下面是我执行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.

最佳答案

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

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

请先尝试使用谷歌搜索,或者让您的问题更具体,例如提及您为解决问题已采取的所有步骤。

关于java - Maven:无法检索pluginorg.apache.maven.plugins:maven-install-plugin:2.4或其依赖项之一无法解析,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43493022/

相关文章:

java - 无法处理自定义异常 Java

java - 连接mysql的jar无法运行

java - 多日车辆路线 - 使用日指数较小的车辆

java - AppEngine 全文文档索引使用词干运算符进行搜索

java - 如何处理 Spring 包裹的 hibernate 异常?

java - Eclipse 代码格式化程序缺少规则

java - 在一个大的 Java 项目中,使用 eclipse 找不到属于一个包的 .java 文件

java - Spring Boot JAR 不包含 src 文件夹中的类

java - 在存储库中保存实体不起作用 SPRING

适用于 Ubuntu 的 Android API 目标级别 5 和 6