我正在使用一個我沒有配置的連接。我在運行 Windows Server 2012 的系統上使用遠程桌面登錄。當我想構建我的 spring-boot 應用程式并運行目標 mvn clean 包時,它會下載幾個依賴項,然后因連接被拒絕錯誤而失敗。我不明白。為什么可以下載前幾個,但不能下載 spring-boot-starter-aop jar?什么連接被拒絕?那個是用來下載otheres的?這是我的錯誤報告:
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Application
[INFO] ------------------------------------------------------------------------
Downloading: http://192.168.1.142:8081/nexus/content/groups/public/org/aspectj/aspectjweaver/1.9.6/aspectjweaver-1.9.6.pom
Downloading: http://192.168.1.142:8081/nexus/content/groups/public/com/zaxxer/HikariCP/3.4.5/HikariCP-3.4.5.pom
Downloading: http://192.168.1.142:8081/nexus/content/groups/public/org/springframework/spring-jdbc/5.3.6/spring-jdbc-5.3.6.pom
Downloading: http://192.168.1.142:8081/nexus/content/groups/public/jakarta/transaction/jakarta.transaction-api/1.3.3/jakarta.transaction-api-1.3.3.pom
Downloading: http://192.168.1.142:8081/nexus/content/groups/public/jakarta/persistence/jakarta.persistence-api/2.2.3/jakarta.persistence-api-2.2.3.pom
Downloading: http://192.168.1.142:8081/nexus/content/groups/public/org/hibernate/hibernate-core/5.4.30.Final/hibernate-core-5.4.30.Final.pom
Downloading: http://192.168.1.142:8081/nexus/content/groups/public/org/springframework/data/spring-data-jpa/2.4.8/spring-data-jpa-2.4.8.pom
Downloading: http://192.168.1.142:8081/nexus/content/groups/public/org/springframework/spring-aspects/5.3.6/spring-aspects-5.3.6.pom
Downloading: http://192.168.1.142:8081/nexus/content/groups/public/org/liquibase/liquibase-core/3.10.3/liquibase-core-3.10.3.pom
Downloading: http://192.168.1.142:8081/nexus/content/groups/public/org/postgresql/postgresql/42.2.19/postgresql-42.2.19.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 11.778 s
[INFO] Finished at: 2021-11-22T09:16:05 01:00
[INFO] Final Memory: 19M/67M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project ecg-worklist: Could not resolve dependencies for project de.mdeset.worklist:ecg-worklist:war:1.0.0: Failed to collect dependencies at org.springframework.boot:
ot-starter-data-jpa:jar:2.4.5 -> org.springframework.boot:spring-boot-starter-aop:jar:2.4.5 -> org.aspectj:aspectjweaver:jar:1.9.6: Failed to read artifact descriptor for org.aspectj:aspectjweaver:jar:
uld not transfer artifact org.aspectj:aspectjweaver:pom:1.9.6 from/to Nexus (http://192.168.1.142:8081/nexus/content/groups/public/): Connect to 192.168.1.142:8081 [/192.168.1.142] failed: Connection r
onnect -> [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/DependencyResolutionException
uj5u.com熱心網友回復:
它不是下載其中任何一個。
如果您查看訂單,實際上第一個失敗了Downloading: http://192.168.1.142:8081/nexus/content/groups/public/org/aspectj/aspectjweaver/1.9.6/aspectjweaver-1.9.6.pom。
它告訴您它正在下載,但是在第一次嘗試期間它無法連接。
我的建議是先在沒有maven的情況下嘗試瀏覽器上的URL,看看是否可以訪問它:http://192.168.1.142:8081/nexus/content/groups/public/在瀏覽器中
如果任何這些依賴項的下載成功,您將看到 (downloading/downloaded)
從 cv-release下載:https://arm./springframework/session/spring-session-bom/2021.0.3/spring-session-bom-2021.0.3.pom
從 cv-release下載:https://arm./org/springframework/session/spring-session-bom/2021.0.3/spring-session-bom-2021.0.3.pom(2.7 kB at 15 kB/s)
轉載請註明出處,本文鏈接:https://www.uj5u.com/qiye/362863.html
下一篇:如何確定突出顯示區域的坐標邊界
