0

我从三重播放切换并分别从 1.0 和 1.1 响应到 1.1-SNAPSHOT 和 1.2-SNAPSHOT,以便能够使用来自 git 的最新代码(例如 AbsoluteLayout)

现在,当我尝试使用 HTML5 打包游戏时

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

谢谢!

4

2 回答 2

1

快照版本不能从Maven Central获得,只有发布版本。

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

于 2012-01-17T21:38:35.097 回答
1

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

于 2012-02-19T22:40:41.047 回答