gpt4 book ai didi

Maven 无法解析项目的依赖关系

转载 作者:行者123 更新时间:2023-12-01 08:17:40 25 4
gpt4 key购买 nike

从此页面https://github.com/serenity-bdd/serenity-demos我下载了导入到 eclipse 的文件。我尝试从“jbehave-webtests”项目运行测试。在运行这些测试期间,我收到以下错误:

[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Sample Serenity JBehave project 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for net.serenity-bdd:serenity-core:jar:1.1.22-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for net.serenity-bdd:serenity-rest-assured:jar:1.1.22-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for net.serenity-bdd:serenity-jbehave:jar:1.2.1-SNAPSHOT is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.690 s
[INFO] Finished at: 2016-03-21T10:33:24+01:00
[INFO] Final Memory: 7M/153M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project serenity-jbehave-showcase: Could not resolve dependencies for project net.serenitybdd.showcase:serenity-jbehave-showcase:jar:0.0.1-SNAPSHOT: The following artifacts could not be resolved: net.serenity-bdd:serenity-core:jar:1.1.22-SNAPSHOT, net.serenity-bdd:serenity-rest-assured:jar:1.1.22-SNAPSHOT, net.serenity-bdd:serenity-jbehave:jar:1.2.1-SNAPSHOT: Could not find artifact net.serenity-bdd:serenity-core:jar:1.1.22-SNAPSHOT -> [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

我运行测试的目标是:干净验证我认为基本目录设置正确“${workspace_loc:/serenity-demos/jbehave-webtests}”

如何解决这个问题?感谢您的任何建议。

最佳答案

正如您在 Maven 存储库中看到的:serenity-bdd ,

没有可用的版本 1.1.22。仅 rc 版本可供下载。您可以更改依赖项以使用这些 1.1.22-rc.x jar 之一,也可以升级到 1.1.24 及更高版本。

关于Maven 无法解析项目的依赖关系,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36128266/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com