使用 Tripleplay 和 React SNAPSHOTs 时出现 Maven 错误
能够使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
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.
在 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.