java - :maven-clean-plugin:2.5 错误或其依赖项之一无法解决
问题描述
尝试使用 maven 运行程序并不断收到此错误有关如何修复的任何想法?ps-我是 maven/tomcat/springframework 等的完整新手
ebitnami@ubuntu:~$ cd OpenESPI-Common-java/
bitnami@ubuntu:~/OpenESPI-Common-java$ mvn -Dmaven.test.skip=true clean install
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Common 1.3-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: http://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: 0.809s
[INFO] Finished at: Wed Jun 17 16:21:44 EDT 2020
[INFO] Final Memory: 6M/59M
[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 (http://repo.maven.apache.org/maven2): Failed to transfer file:
http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-
plugin-2.5.pom. Return code is: 501 , ReasonPhrase:HTTPS Required. -> [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
解决方案
推荐阅读
- javascript - 使用异步数据和 axios 创建 Nuxt.js 列表
- java - 如何使用 Java 服务限制线程数
- c++11 - 指向模板成员函数的指针类型不匹配
- javascript - javascript/node.js 中的 JSONP 解析
- python - 当只知道目标函数时,如何在 Gurobi 中设置起始解决方案?
- rally - 从 Rally API for Feature 获取特定字段
- java - 在 selenium 中使用 ashot 的可滚动屏幕截图不适用于 Internet Explorer 11 版本,但在 chrome 和 firefox 中运行良好
- css - 内联 CSS NodeJS 服务器
- weka - 删除带有值的weka数据集中的原始数据
- c# - 无法保存使用 ASP.NET C# Web 窗体接收的 Webhook 数据