【问题标题】:Nexus can not download dependencies of spring-bootNexus 无法下载 spring-boot 的依赖
【发布时间】:2021-12-31 21:03:11
【问题描述】:

我正在使用一个我没有配置的关系。我在运行 Windows Server 2012 的系统上使用远程桌面登录。当我想构建我的 spring-boot 应用程序并运行目标 mvn clean package 时,它​​会下载几个依赖项,然后因连接被拒绝错误而失败。我不明白这个。为什么可以下载前几个,但不能下载 spring-boot-starter-aop jar?什么连接被拒绝?是用来下载其他的吗?这是我的错误报告:

[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

【问题讨论】:

    标签: java maven nexus


    【解决方案1】:

    它没有下载任何一个。

    如果您查看订单,它实际上是第一个 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 (15 kB/s 时为 2.7 kB)

    【讨论】:

    • 你说得对,谢谢。重启后我需要重启nexus
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-06-12
    • 1970-01-01
    • 2018-05-13
    • 2019-07-13
    • 2019-01-27
    • 1970-01-01
    • 2014-08-12
    相关资源
    最近更新 更多