完整报错内容如下:

D:\workspace\JavaWorkspace\hello_world>mvn clean
[WARNING]
[WARNING] Some problems were encountered while building the effective settings
[WARNING] Unrecognised tag: 'id' (position: START_TAG seen ...</profile>\r\n    -->\r\n\t<id>... @286:6)  @ D:\Java\apache-maven-3.8.3\conf\settings.xml, line 286, column 6
[WARNING]
[INFO] Scanning for projects...
[INFO]
[INFO] ---------------------< com.cwt.hello:hello_world >----------------------
[INFO] Building hello_world 0.0.1-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
Downloading from aliyunmaven: https://maven.aliyun.com/repository/public/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  6.242 s
[INFO] Finished at: 2021-10-10T16:57:58+08:00
[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 aliyunmaven (https://maven.aliyun.com/repository/public): transfer failed for https://maven.aliyun.com/repository/public/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.pom, proxy: ProxyInfo{host='proxy.host.net', userName='null', port=80, type='http', nonProxyHosts='null'} -> [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

经测试发现,是(D:\Java\apache-maven-3.8.3\conf\settings.xml)进行了如下配置导致的

<mirror><id>aliyunmaven</id><mirrorOf>*</mirrorOf><name>阿里云公共仓库</name><url>https://maven.aliyun.com/repository/public</url>
</mirror>

或者下面这种,等等 ...

<!--阿里云镜像网站配置--><mirror><id>nexus-aliyun</id><mirrorOf>central</mirrorOf><name>Nexus aliyun</name><url>http://maven.aliyun.com/nexus/content/groups/public</url><blocked>true</blocked></mirror>

删去上面的配置后,报错内容如下

D:\workspace\JavaWorkspace\hello_world>mvn clean
[WARNING]
[WARNING] Some problems were encountered while building the effective settings
[WARNING] Unrecognised tag: 'id' (position: START_TAG seen ...</profile>\r\n    -->\r\n\t<id>... @280:6)  @ D:\Java\apache-maven-3.8.3\conf\settings.xml, line 280, column 6
[WARNING]
[INFO] Scanning for projects...
[INFO]
[INFO] ---------------------< com.cwt.hello:hello_world >----------------------
[INFO] Building hello_world 0.0.1-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
Downloading from central: 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:  5.869 s
[INFO] Finished at: 2021-10-10T16:59:57+08:00
[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): transfer failed for https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.pom, proxy: ProxyInfo{host='proxy.host.net', userName='null', port=80, type='http', nonProxyHosts='null'} -> [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

这次报错是和代理有关

<proxy><id>optional</id><active>true</active><protocol>http</protocol><username>proxyuser</username><password>proxypass</password><host>proxy.host.net</host><port>80</port><nonProxyHosts>local.net|some.host.com</nonProxyHosts>
</proxy>

删去这部分配置后,即可恢复

D:\workspace\JavaWorkspace\hello_world>mvn clean
[WARNING]
[WARNING] Some problems were encountered while building the effective settings
[WARNING] Unrecognised tag: 'id' (position: START_TAG seen ...</profile>\r\n    -->\r\n\t<id>... @270:6)  @ D:\Java\apache-maven-3.8.3\conf\settings.xml, line 270, column 6
[WARNING]
[INFO] Scanning for projects...
[INFO]
[INFO] ---------------------< com.cwt.hello:hello_world >----------------------
[INFO] Building hello_world 0.0.1-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.pom (3.9 kB at 1.9 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-plugins/22/maven-plugins-22.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-plugins/22/maven-plugins-22.pom (0 B at 0 B/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/maven-parent/21/maven-parent-21.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/maven-parent/21/maven-parent-21.pom (0 B at 0 B/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/apache/10/apache-10.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/apache/10/apache-10.pom (0 B at 0 B/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.jar
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.jar (0 B at 0 B/s)
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ hello_world ---
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/maven-plugin-api/2.0.6/maven-plugin-api-2.0.6.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/maven-plugin-api/2.0.6/maven-plugin-api-2.0.6.pom (0 B at 0 B/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/maven/2.0.6/maven-2.0.6.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/maven/2.0.6/maven-2.0.6.pom (0 B at 0 B/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/maven-parent/5/maven-parent-5.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/maven-parent/5/maven-parent-5.pom (0 B at 0 B/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/apache/3/apache-3.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/apache/3/apache-3.pom (0 B at 0 B/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/3.0/plexus-utils-3.0.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/3.0/plexus-utils-3.0.pom (0 B at 0 B/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/sonatype/spice/spice-parent/16/spice-parent-16.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/sonatype/spice/spice-parent/16/spice-parent-16.pom (0 B at 0 B/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/sonatype/forge/forge-parent/5/forge-parent-5.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/sonatype/forge/forge-parent/5/forge-parent-5.pom (0 B at 0 B/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/maven-plugin-api/2.0.6/maven-plugin-api-2.0.6.jar
Downloading from central: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/3.0/plexus-utils-3.0.jar
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/maven-plugin-api/2.0.6/maven-plugin-api-2.0.6.jar (0 B at 0 B/s)
Downloaded from central: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/3.0/plexus-utils-3.0.jar (0 B at 0 B/s)
[INFO] Deleting D:\workspace\JavaWorkspace\hello_world\target
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  12.436 s
[INFO] Finished at: 2021-10-10T17:02:40+08:00
[INFO] ------------------------------------------------------------------------

执行mvn clean报错Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could相关推荐

  1. 使用 jacoco 连续两次执行 mvn test 报错

    最近发现个 mvn test 执行时候的问题,研究了一下 现象:使用 jacoco 统计单元测试报告插件,在不执行 mvn clean,连续执行两次 mvn test 会报以下错误: Cannot p ...

  2. yum命令报错在linux下,执行yum命令报错

    执行yum命令报错信息如下: [root@webserver ~]# yum list rpmdb: Thread/process 26604/140491933587200 failed: Thre ...

  3. 安装Phoenix时,执行./splline.py报错File “./sqlline.py“, line 25, in <module> import phoenix_utils File

    安装Phoenix时,执行./splline.py报错File "./sqlline.py", line 25, in <module> import phoenix_ ...

  4. kafka生产者报错:[org.apache.kafka.clients.NetworkClient:600] - Error while fetching metadata with corre

    在测试kafka写入数据的时候一直在报错: ... [org.apache.kafka.clients.NetworkClient:600]   - Error while fetching meta ...

  5. 阿里云CentOS8服务器执行yum命令报错404

    今天想在阿里云CentOS8服务器上面安装mysql,执行yum命令报错: Errors during downloading metadata for repository 'AppStream': ...

  6. cmake编译安装完成后 执行cmake --version报错 bash: /usr/bin/cmake: 没有那个文件或目录

    cmake编译安装完成后 执行cmake --version报错 bash: /usr/bin/cmake: 没有那个文件或目录 cmake 没有那个目录 - 未完代码 - 博客园 因为直接使用cma ...

  7. SAP SD VL02N对STO的交货单执行PGI,报错 -Fld selectn for mvmt type 643 acct 400020 differs for Business Area –

    SAP SD VL02N对STO的交货单执行PGI,报错 -Fld selectn for mvmt type 643 acct 400020 differs for Business Area – ...

  8. jmeter4.0 执行jmeter_server.bat报错

    Jmeter分布式执行 1. ------------------------------- Jmeter4.0  执行jmeter_server.bat   报错,是由于4.0要手工生成密钥 bin ...

  9. mvn deploy 报错:Return code is: 400, ReasonPhrase: Bad Request. -

    mvn deploy 报错:Return code is: 400, ReasonPhrase: Bad Request. -> TEST通过没有报错,但是最终部署到Nexus中时出现错误. 后 ...

  10. redhat6.4执行二进制程序报错:/lib/ld-linux.so.2: bad ELF interpreter: No such file or directory...

    redhat6.4执行二进制程序报错: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory 原因: 在64位的系统中执 ...

最新文章

  1. datatables增删改查php,jQuery+datatables插件实现Ajax加载数据与增删改查功能示例_白峰_前端开发者...
  2. Wix中注册c#开发的Activex控件
  3. “醒事”就在一瞬间 --- 一个真实的故事 (文PPT)
  4. vue可视化拖拽组件模板_基于 Vue 丝滑般拖拽排序组件VueSlicksort
  5. Oracle中的Round和Trunc
  6. 【英语学习】【Level 07】U03 Amazing wonders L3 A pearl of East Asia
  7. VB模拟指针模块mPoint.bas
  8. RSYNC及其算法简单介绍
  9. Codeforces Round #483 (Div. 1) A. Finite or not?
  10. php mysql过滤特殊字符_php特殊字符过滤,html标签处理
  11. 【软件工程】重要知识点
  12. Spring5学习笔记——【遇见狂神说】[IoC、DI、AOP]
  13. android第三方库进程,Android 第三方库AgentWeb的使用
  14. (015) 自动加载
  15. php screw.so,php screw加密
  16. java 操作日志 log
  17. sox处理mp3_SoX — 音频处理工具里的瑞士军刀
  18. 如何画一个精致的思维导图
  19. Android屏幕监视方法,Android 关于手机屏幕的那些事
  20. Python实现 天天向上的力量(嵩天老师)

热门文章

  1. C# 生成订单编号和取餐码
  2. 15款超好用的短链接在线生成器(新浪t.cn、腾讯url.cn)
  3. wireshark抓包分析POP3协议
  4. POP3协议与SMTP协议分析(winmail、Wireshark、ubuntu(QT)、foxmail)
  5. LeetCode 592
  6. 无线路由器桥接、中继、电力猫组网方法分享
  7. 计算机常用的辅存储器是,计算机常用的辅存储器有
  8. 安装 Vmware和创建虚拟机即密码破解
  9. Windows XP SP3英文版镜像
  10. Tkinter GUI设计中文文档