網站首頁 編程語言 正文
Maven 編譯提示:spring-boot-maven-plugin:2.1.9.RELEASE or one of its dependencies could not be resolved
作者:在奮斗的大道 更新時間: 2022-04-09 編程語言問題描述:今天使用mava-plugin 插件遍歷Maven項目提示如下錯誤信息:
[ERROR] Plugin org.springframework.boot:spring-boot-maven-plugin:2.1.9.RELEASE or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.springframework.boot:spring-boot-maven-plugin:jar:2.1.9.RELEASE: 1 problem was encountered while building the effective model for org.springframework.boot:spring-boot-maven-plugin:2.1.9.RELEASE
[ERROR] [FATAL] Non-parseable POM C:\Users\zzg\.m2\repository\org\springframework\boot\spring-boot-parent\2.1.9.RELEASE\spring-boot-parent-2.1.9.RELEASE.pom: processing instruction can not have PITarget with reserved xml name (position: END_TAG seen ...\n\n [ERROR] -> [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、maven-plugin插件讀取指定jar 失敗。
2、maven-plugin無法加載?C:\Users\zzg\.m2\repository\org\springframework\boot\spring-boot-parent\2.1.9.RELEASE\spring-boot-parent-2.1.9.RELEASE.pom, 因為xml 文件中包含PITarget
(=spring-boot-parent-2.1.9.RELEASE.jar 沒有正常加載)
解決版本:
移除C:\Users\zzg\.m2\repository\org\springframework\boot\spring-boot-parent\2.1.9.RELEASE 文件夾,重新編譯Maven 項目
C:\workspace\Single>mvn compile
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------< com.digipower:Single >------------------------
[INFO] Building Single 0.0.1-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/springframework/boot/spring-boot-parent/2.1.9.RELEASE/spring-boot-parent-2.1.9.RELEASE.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/springframework/boot/spring-boot-parent/2.1.9.RELEASE/spring-boot-parent-2.1.9.RELEASE.pom (1.8 kB at 1.7 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/springframework/boot/spring-boot-maven-plugin/2.1.9.RELEASE/spring-boot-maven-plugin-2.1.9.RELEASE.jar
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/springframework/boot/spring-boot-maven-plugin/2.1.9.RELEASE/spring-boot-maven-plugin-2.1.9.RELEASE.jar (68 kB at 103 kB/s)
[INFO]
[INFO] --- maven-resources-plugin:3.1.0:resources (default-resources) @ Single ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ Single ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 6 source files to C:\workspace\Single\target\classes
[INFO] /C:/workspace/Single/target/generated-sources/annotations/com/single/entity/helper/UcasAuthUserMapping.java: ?某些輸入文件使用了未經檢查或不安全的操作。
[INFO] /C:/workspace/Single/target/generated-sources/annotations/com/single/entity/helper/UcasAuthUserMapping.java: ?有關詳細信息, 請使用 -Xlint:unchecked 重新編譯。
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.832 s
[INFO] Finished at: 2021-11-03T11:08:32+08:00
[INFO] ------------------------------------------------------------------------
?
原文鏈接:https://blog.csdn.net/zhouzhiwengang/article/details/121117537
相關推薦
- 2022-09-20 Android開發Retrofit源碼分析_Android
- 2022-06-06 node中,如何手動實現觸發垃圾回收機制
- 2022-10-12 Docker安裝RabbitMQ的超詳細步驟_docker
- 2023-05-08 Android開發多手指觸控事件處理_Android
- 2023-04-01 C++11中的智能指針和垃圾回收使用_C 語言
- 2022-05-02 C語言如何實現一些算法或者函數你知道嗎_C 語言
- 2022-01-18 django中ajax發送post請求報403錯誤csrf禁止,解決只需三步
- 2022-12-10 MongoDB中的push操作詳解(將文檔插入到數組)_MongoDB
- 最近更新
-
- window11 系統安裝 yarn
- 超詳細win安裝深度學習環境2025年最新版(
- Linux 中運行的top命令 怎么退出?
- MySQL 中decimal 的用法? 存儲小
- get 、set 、toString 方法的使
- @Resource和 @Autowired注解
- Java基礎操作-- 運算符,流程控制 Flo
- 1. Int 和Integer 的區別,Jav
- spring @retryable不生效的一種
- Spring Security之認證信息的處理
- Spring Security之認證過濾器
- Spring Security概述快速入門
- Spring Security之配置體系
- 【SpringBoot】SpringCache
- Spring Security之基于方法配置權
- redisson分布式鎖中waittime的設
- maven:解決release錯誤:Artif
- restTemplate使用總結
- Spring Security之安全異常處理
- MybatisPlus優雅實現加密?
- Spring ioc容器與Bean的生命周期。
- 【探索SpringCloud】服務發現-Nac
- Spring Security之基于HttpR
- Redis 底層數據結構-簡單動態字符串(SD
- arthas操作spring被代理目標對象命令
- Spring中的單例模式應用詳解
- 聊聊消息隊列,發送消息的4種方式
- bootspring第三方資源配置管理
- GIT同步修改后的遠程分支