算法哥 2023-11-02 23:35 采纳率: 60%
浏览 127
已结题

关于#maven#的问题:执行mvn clean为什么删不掉target目录

执行mvn clean为什么删不掉target目录
以下为报错信息:

[WARNING] The POM for org.apache.maven.plugins:maven-clean-plugin:jar:2.5 is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  0.077 s
[INFO] Finished at: 2023-11-02T23:31:21+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resolved: org.apache.maven.plugins:maven-clean-plugin:jar:2.5 was not found in http://maven.aliyun.com/nexus/content/groups/public/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of nexus-aliyun has elapsed or updates are forced -> [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

  • 写回答

3条回答 默认 最新

  • IT•轩辕 2023-11-03 02:46
    关注
    • 提示插件在阿里远程仓库找不到仓库,失败被本地缓存了
    • 找到本地仓库失败的缓存文件并删掉
    • 或尝试使用-U选项 强制重新从阿里远程仓库拉取插件及其依赖
    • 希望我的回答满意,麻烦帮忙占下采纳谢谢
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

问题事件

  • 系统已结题 11月14日
  • 已采纳回答 11月6日
  • 创建了问题 11月2日