我从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及更高版本。

10-07 19:03