情深忆往缠绵 2023-02-24 20:13 采纳率: 44.6%
浏览 18
已结题

执行打包命令包maven-clean-plugin:2.5错误,谁知道怎么回事

问题遇到的现象和发生背景
PS D:\eclipse项目\Maven_Hellowrold> mvn clean package
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven_Hellowrold 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: http://jcenter.bintray.com/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.pom
二月 24, 2023 8:10:47 下午 org.apache.maven.wagon.providers.http.httpclient.impl.execchain.RetryExec execute
信息: I/O exception (org.apache.maven.wagon.providers.http.httpclient.NoHttpResponseException) caught when processing request to {}->http://jcenter.bintray.com:80: The target server failed to respond
二月 24, 2023 8:10:47 下午 org.apache.maven.wagon.providers.http.httpclient.impl.execchain.RetryExec execute
信息: Retrying request to {}->http://jcenter.bintray.com:80
二月 24, 2023 8:10:47 下午 org.apache.maven.wagon.providers.http.httpclient.impl.execchain.RetryExec execute
信息: I/O exception (org.apache.maven.wagon.providers.http.httpclient.NoHttpResponseException) caught when processing request to {}->http://jcenter.bintray.com:80: The target server failed to respond
二月 24, 2023 8:10:47 下午 org.apache.maven.wagon.providers.http.httpclient.impl.execchain.RetryExec execute
信息: Retrying request to {}->http://jcenter.bintray.com:80
二月 24, 2023 8:10:48 下午 org.apache.maven.wagon.providers.http.httpclient.impl.execchain.RetryExec execute
信息: I/O exception (org.apache.maven.wagon.providers.http.httpclient.NoHttpResponseException) caught when processing request to {}->http://jcenter.bintray.com:80: The target server failed to respond
二月 24, 2023 8:10:48 下午 org.apache.maven.wagon.providers.http.httpclient.impl.execchain.RetryExec execute
信息: Retrying request to {}->http://jcenter.bintray.com:80
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.366 s
[INFO] Finished at: 2023-02-24T20:10:48+08:00
[INFO] Final Memory: 8M/167M
[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 junit (http://jcenter.bintray.com/): jcenter.bintray.com:80 failed to respond -> [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

  • 写回答

1条回答 默认 最新

  • CodeBytes 2023-02-24 20:33
    关注

    该回答引用ChatGPT
    这个错误信息显示 Maven 找不到 org.apache.maven.plugins:maven-clean-plugin:2.5 这个插件的 POM 文件。错误信息中还显示从 jcenter.bintray.com 下载该插件的 POM 文件失败,可能是网络连接问题导致无法下载。你可以尝试重新执行 Maven 打包命令,如果问题仍然存在,你可以检查你的网络连接,或者切换到其他的 Maven 镜像源。你也可以尝试手动下载该插件的 POM 文件并安装到本地 Maven 仓库中。

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

问题事件

  • 已结题 (查看结题原因) 2月24日
  • 已采纳回答 2月24日
  • 创建了问题 2月24日

悬赏问题

  • ¥20 docker里部署springboot项目,访问不到扬声器
  • ¥15 netty整合springboot之后自动重连失效
  • ¥15 悬赏!微信开发者工具报错,求帮改
  • ¥20 wireshark抓不到vlan
  • ¥20 关于#stm32#的问题:需要指导自动酸碱滴定仪的原理图程序代码及仿真
  • ¥20 设计一款异域新娘的视频相亲软件需要哪些技术支持
  • ¥15 stata安慰剂检验作图但是真实值不出现在图上
  • ¥15 c程序不知道为什么得不到结果
  • ¥15 键盘指令混乱情况下的启动盘系统重装
  • ¥40 复杂的限制性的商函数处理