1. 程式人生 > >springboot 記錄一次原始碼編譯過程的糾錯

springboot 記錄一次原始碼編譯過程的糾錯

C:\Users\coffee\OneDrive\git\spring-boot-1.5.10\spring.boot>mvn clean install -Dmaven.test.skip=true
[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-parseable POM C:\Users\coffee\.m2\repository\org\springframework\data\build\spring
-data-build\1.9.10.RELEASE\spring-data-build-1.9.10.RELEASE.pom: processing instruction can not have PITarget with reserved xml name (position: END_TAG seen ...</pluginRepositories>\n\n</project>\n<?xml ... @244:7) @ C:\Users\coffee\.m2\repository\org\springframework\data\build\spring-data-build\1.9.10.RELEASE\spring
-data-build-1.9.10.RELEASE.pom, line 244, column 7 [ERROR] 'dependencies.dependency.version' for org.springframework.data:spring-data-redis:jar is missing. @ org.springframework.boot:coffee.spring-boot:[unknown-version], C:\Users\coffee\OneDrive\git\spring-boot-1.5.10\spring.boot\pom.xml, line 335, column 15 @ [
ERROR] The build could not read 1 project -> [Help 1] [ERROR] [ERROR] The project org.springframework.boot:coffee.spring-boot:1.5.10.BUILD-SNAPSHOT (C:\Users\coffee\OneDrive\git\spring-boot-1.5.10\spring.boot\pom.xml) has 2 errors [ERROR] Non-parseable POM C:\Users\coffee\.m2\repository\org\springframework\data\build\spring-data-build\1.9.10.RELEASE\spring-data-build-1.9.10.RELEASE.pom: processing instruction can not have PITarget with reserved xml name (position: END_TAG seen ...</pluginRepositories>\n\n</project>\n<?xml ... @244:7) @ C:\Users\coffee\.m2\repository\org\springframework\data\build\spring-data-build\1.9.10.RELEASE\spring-data-build-1.9.10.RELEASE.pom, line 244, column 7 -> [Help 2] [ERROR] 'dependencies.dependency.version' for org.springframework.data:spring-data-redis:jar is missing. @ org.springframework.boot:coffee.spring-boot:[unknown-version], C:\Users\coffee\OneDrive\git\spring-boot-1.5.10\spring.boot\pom.xml, line 335, column 15 [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/ProjectBuildingException [ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/ModelParseException C:\Users\coffee\OneDrive\git\spring-boot-1.5.10\spring.boot>

找出錯誤的關鍵性錯誤資訊

[ERROR]   The project org.springframework.boot:coffee.spring-boot:1.5.10.BUILD-SNAPSHOT (C:\Users\coffee\OneDrive\git\spring-boot-1.5.10\spring.boot\pom.xml) has 2 errors
[ERROR]     Non-parseable POM C:\Users\coffee\.m2\repository\org\springframework\data\build\spring-data-build\1.9.10.RELEASE\spring-data-build-1.9.10.RELEASE.pom: processing instruction can not have PITarget with reserved xml name (position: END_TAG seen ...</pluginRepositories>\n\n</project>\n<?xml ... @244:7)  @ C:\Users\coffee\.m2\repository\org\springframework\data\build\spring-data-build\1.9.10.RELEASE\spring-data-build-1.9.10.RELEASE.pom, line 244, column 7 -> [Help 2]
[ERROR]     'dependencies.dependency.version' for org.springframework.data:spring-data-redis:jar is missing. @ org.springframework.boot:coffee.spring-boot:[unknown-version], C:\Users\coffee\OneDrive\git\spring-boot-1.5.10\spring.boot\pom.xml, line 335, column 15
[ERROR]

提示這個編譯檔案
C:\Users\coffee.m2\repository\org\springframework\data\build\spring-data-build\1.9.10.RELEASE\spring-data-build-1.9.10.RELEASE.pom
有錯誤 line 244, column 7

順著錯誤去查詢

這裡寫圖片描述
發現這個檔案的內容竟然被拷貝了兩份。。。。

簡直了