首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Maven :无法解析插件org.apache.maven.plugins:maven-clean-plugin:2.5或其依赖项之一

Maven :无法解析插件org.apache.maven.plugins:maven-clean-plugin:2.5或其依赖项之一
EN

Stack Overflow用户
提问于 2018-02-10 19:23:38
回答 3查看 6.4K关注 0票数 2

我尝试过删除.m2、删除和拉取项目,但仍然出现此错误。项目/ pom很好,它们可以在其他计算机上运行。

我使用的是Ubuntu 17.10、openjdk 1.8.151和maven 3.5

下面是跟踪信息:

代码语言:javascript
复制
[INFO] Scanning for projects...
[INFO] 
[INFO] ------------------------------------------------------------------------
[INFO] Building cookieFactory 0.1
[INFO] ------------------------------------------------------------------------
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.858 s
[INFO] Finished at: 2018-02-10T12:05:37+01:00
[INFO] Final Memory: 9M/212M
[INFO] ------------------------------------------------------------------------
[ERROR] Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-clean-plugin:jar:2.5: Could not transfer artifact org.apache.maven.plugins:maven-clean-plugin:pom:2.5 from/to central (https://repo.maven.apache.org/maven2): java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException

谢谢你的帮忙

EN

回答 3

Stack Overflow用户

回答已采纳

发布于 2018-02-27 23:22:17

安装官方Oracle JDK解决了这个问题。

票数 0
EN

Stack Overflow用户

发布于 2020-04-22 20:40:21

对我来说,这个错误是因为我将JDK版本从1.8改为1.6,所以您可以尝试在项目配置中更改JDK版本。

票数 0
EN

Stack Overflow用户

发布于 2020-07-28 04:14:17

我花了一整天才弄明白是因为jre/JDK7不支持https,我在windows10上安装了jre7,jdk8,jdk4。在将我的JAVA_HOME指针更改为jdk14之后,它是固定的。

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

https://stackoverflow.com/questions/48720203

复制
相关文章

相似问题

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