git使用mvn clean install 報錯緣由排查

使用命令行git-bath.exe 來拉代碼並進行編譯之類的服務,結果在拉依賴時一直報錯連的是144.131.254.26,看了maven的setting配置 文件 沒並無錯, 最終定位問題是 git窗口執行 mvn install 查的setting文件 ,默認使用的是 C:\Users\shoshana\.m2下setting文件,若是沒有的狀況下,纔會使用maven_home下的文件 ,git

解決方式:spring

將.m2下的文件直接刪除,再次執行命令就成功了。apache

----------------------------------------------------------------------------------------------------------------------------------------------------api

[INFO] Scanning for projects...
Downloading from mirrorId: http://144.131.254.26:8081/nexus/content/groups/public/org/springframework/boot/spring-boot-starter-parent/1.2.5.RELEASE/spring-boot-starter-parent-1.2.5.RELEASE.pom
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[WARNING] 'dependencies.dependency.version' for com.paypal.sdk:rest-api-sdk:jar is either LATEST or RELEASE (both of them are being deprecated) @ line 143, column 14
[FATAL] Non-resolvable parent POM for com.xiaoyi.orderpaymentservice:orderpaymentutilities-us:1.0.1: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:1.2.5.RELEASE from/to mirrorId (http://144.131.254.26:8081/nexus/content/groups/public/): Connect to 144.131.254.26:8081 [/144.131.254.26] failed: Connection timed out: connect and 'parent.relativePath' points at wrong local POM @ line 14, column 10
@
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project com.xiaoyi.orderpaymentservice:orderpaymentutilities-us:1.0.1 (D:\project\xy\07src\orderpayment\orderpaymentutilities\pom.xml) has 1 error
[ERROR] Non-resolvable parent POM for com.xiaoyi.orderpaymentservice:orderpaymentutilities-us:1.0.1: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:1.2.5.RELEASE from/to mirrorId (http://144.131.254.26:8081/nexus/content/groups/public/): Connect to 144.131.254.26:8081 [/144.131.254.26] failed: Connection timed out: connect and 'parent.relativePath' points at wrong local POM @ line 14, column 10 -> [Help 2]
[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/UnresolvableModelExceptionmaven

 

----------------------------------------------------------------------------------------------------------------------------------------------------spring-boot

相關文章
相關標籤/搜索