找不到org.springframework.boot:spring-boot-test-support:jar:2.2.6.RELEASE

时间:2020-04-21 10:27:33

标签: java spring-boot maven

构建源代码时遇到错误。

[ERROR] Failed to execute goal on project spring-boot-actuator-autoconfigure: Could not resolve dependencies for project org.springframework.boot:spring-boot-actuator-autoconfigure:jar:2.2.6.RELEASE: Failure to find org.springframework.boot:spring-boot-test-support:jar:2.2.6.RELEASE in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [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

使用2.2.6版

存储库:https://github.com/spring-projects/spring-boot.git

克隆标签后,用于构建的

命令:

cd spring-boot-project / spring-boot /

mvn全新安装

1 个答案:

答案 0 :(得分:0)

这是解决方案: spring-boot-test-support是一个未发布的支持模块,必须先在本地构建和安装该模块,然后才能构建单个模块。 该模块位于spring-boot/spring-boot-project/spring-boot-tools/spring-boot-test-support/目录中

相关问题