Gradle无法从nexus存储库获取依赖关系?

问题描述 投票:0回答:1

我的詹金斯工作抛出此异常,而我想尝试连接到nexus存储库时,有人对此有何想法?我可以看到它在其他多个主题中都被提及,但是在那里找不到我的问题的任何解决方案。

The element type "hr" must be terminated by the matching end-tag "</hr>".
Could not resolve all files for configuration ':<dir>-web:xxx'.

及更高版本

13:10:29  * What went wrong:
13:10:29  Execution failed for task ':xx-web:qqq'.
13:10:29  > Could not resolve all files for configuration ':xx-web:qqq'.
13:10:29     > Could not resolve mt.com.bbb.xx:xx-commons:0.0.9.
13:10:29       Required by:
13:10:29           project :xxx-web
13:10:29        > Could not resolve mt.com.bbb.xx:xx-commons:0.0.9.
13:10:29           > Could not parse POM http://<service>/repository/maven-public/.../xx-commons/0.0.9/xx-commons-0.0.9.pom
13:10:29              > The element type "hr" must be terminated by the matching end-tag "</hr>".
java maven nexus
1个回答
0
投票

您需要告知Gradle回购位置:

repositories {
    maven {
          url "http://localhost:8081/nexus/content/groups/public"
    }
}

https://support.sonatype.com/hc/en-us/articles/213465358-How-do-I-configure-my-Gradle-build-to-download-artifacts-from-Nexus-

© www.soinside.com 2019 - 2024. All rights reserved.