使用 Tripleplay 和 React SNAPSHOTs 时出现 Maven 错误

发布于 2024-12-27 13:06:55 字数 1448 浏览 1 评论 0原文

能够使用 git 中的最新代码(例如 AbsoluteLayout)

将游戏打包为 HTML5 时

我从 Tripleplay 切换到 React,从 1.0 和 1.1 分别切换到 1.1-SNAPSHOT 和 1.2-SNAPSHOT,以便现在当我尝试使用mvn clean package

我得到:

[WARNING] The POM for com.threerings:react:jar:1.2-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for com.threerings:tripleplay:jar:1.1-SNAPSHOT is missing, no dependency information available
...
[ERROR] Failed to execute goal on project h4ck1t-core: Could not resolve dependencies for project com.jengibre:h4ck1t-core:jar:0.0.1-SNAPSHOT: The following artifacts could not be resolved: com.threerings:react:jar:1.2-SNAPSHOT, com.threerings:tripleplay:jar:1.1-SNAPSHOT: Failure to find com.threerings:react:jar:1.2-SNAPSHOT in http://forplay.googlecode.com/svn/mavenrepo was cached in the local repository, resolution will not be reattempted until the update interval of forplay-legacy 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

我尝试添加 -U 来强制更新,但没有效果

我的 pom 使用 PlayN 版本 1.0.3

谢谢!

I switched from tripleplay and react from 1.0 and 1.1 to 1.1-SNAPSHOT and 1.2-SNAPSHOT respectively, to be able to use the latest code from git (such as AbsoluteLayout)

now when I try to package the game for HTML5 using

mvn clean package

I get:

[WARNING] The POM for com.threerings:react:jar:1.2-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for com.threerings:tripleplay:jar:1.1-SNAPSHOT is missing, no dependency information available
...
[ERROR] Failed to execute goal on project h4ck1t-core: Could not resolve dependencies for project com.jengibre:h4ck1t-core:jar:0.0.1-SNAPSHOT: The following artifacts could not be resolved: com.threerings:react:jar:1.2-SNAPSHOT, com.threerings:tripleplay:jar:1.1-SNAPSHOT: Failure to find com.threerings:react:jar:1.2-SNAPSHOT in http://forplay.googlecode.com/svn/mavenrepo was cached in the local repository, resolution will not be reattempted until the update interval of forplay-legacy 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

I tried adding -U to force it for updates, with no effect

My pom uses PlayN version 1.0.3

thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

路弥 2025-01-03 13:06:55

Maven Central 不提供快照版本,仅发布版本。

您可以尝试查找快照存储库(如果存在),然后将其添加到 POM 的存储库部分。

Snapshot releases are not available from Maven Central, only released versions.

You could try and find a snapshot repository (if it exists) and then add it into the repositories section of your POM.

缱绻入梦 2025-01-03 13:06:55

在 playn-samples 项目中,编辑 core/pom.xml 并获取 Tripleplay 依赖项的 -SNAPSHOT 的 rif。
1.1 已发布到 mvn 主仓库。

In playn-samples project, edit core/pom.xml and get rif of -SNAPSHOT for the tripleplay dependency.
1.1 has been released to the mvn main repo.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文