使用三重播放的maven错误并对SNAPSHOT做出反应

时间:2012-01-17 21:09:55

标签: maven playn

我从三重播放切换,分别从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

谢谢!

2 个答案:

答案 0 :(得分:1)

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

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

答案 1 :(得分:1)

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