PlayN建设的问题

时间:2012-07-03 11:41:51

标签: java eclipse maven playn

我想创建一个PlayN游戏,但在Eclipse中我得到了这个错误:

ArtifactTransferException: Failure to transfer com.google.collections:google-collections:jar:1.0 from http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact com.google.collections:google-collections:jar:1.0 from/to central (http://repo1.maven.org/maven2): No response received after 60000  pom.xml /playn-payments-server  line 2  Maven Dependency Problem
ArtifactTransferException: Failure to transfer com.googlecode.gwt-flash:gwt-flash:jar:1.2 from 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. Original error: Could not transfer artifact com.googlecode.gwt-flash:gwt-flash:jar:1.2 from/to forplay-legacy (http://forplay.googlecode.com/svn/mavenrepo): No response received after 60000  pom.xml /playn-flash    line 21 Maven Dependency Problem
ArtifactTransferException: Failure to transfer com.googlecode.gwt-flash:gwt-flash:jar:1.2 from 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. Original error: Could not transfer artifact com.googlecode.gwt-flash:gwt-flash:jar:1.2 from/to forplay-legacy (http://forplay.googlecode.com/svn/mavenrepo): No response received after 60000  pom.xml /playn-tests-flash  line 4  Maven Dependency Problem
ArtifactTransferException: Failure to transfer joda-time:joda-time:jar:1.6 from http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact joda-time:joda-time:jar:1.6 from/to central (http://repo1.maven.org/maven2): No response received after 60000  pom.xml /playn-payments-server  line 2  Maven Dependency Problem
Missing artifact com.google.collections:google-collections:jar:1.0  pom.xml /playn-payments-server  line 2  Maven Dependency Problem
Missing artifact com.googlecode.gwt-flash:gwt-flash:jar:1.2 pom.xml /playn-flash    line 21 Maven Dependency Problem
Missing artifact com.googlecode.gwt-flash:gwt-flash:jar:1.2 pom.xml /playn-tests-flash  line 4  Maven Dependency Problem
Missing artifact joda-time:joda-time:jar:1.6    pom.xml /playn-payments-server  line 2  Maven Dependency Problem
Open quote is expected for attribute "rename-to" associated with an  element type  "module".    TestsFlashGame.gwt.xml  /playn-tests-flash/src/main/java/playn/tests    line 16 XML Problem
The container 'Maven Dependencies' references non existing library 'C:\Users\Vukasin Manojlovic\.m2\repository\com\google\collections\google-collections\1.0\google-collections-1.0.jar'    playn-payments-server       Build path  Build Path Problem
The container 'Maven Dependencies' references non existing library 'C:\Users\Vukasin Manojlovic\.m2\repository\com\googlecode\gwt-flash\gwt-flash\1.2\gwt-flash-1.2.jar'    playn-flash     Build path  Build Path Problem
The container 'Maven Dependencies' references non existing library 'C:\Users\Vukasin Manojlovic\.m2\repository\com\googlecode\gwt-flash\gwt-flash\1.2\gwt-flash-1.2.jar'    playn-tests-flash       Build path  Build Path Problem
The project cannot be built until build path errors are resolved    playn-flash     Unknown Java Problem
The project cannot be built until build path errors are resolved    playn-payments-server       Unknown Java Problem
The project cannot be built until build path errors are resolved    playn-tests-flash       Unknown Java Problem

我该怎么办?请帮忙!

1 个答案:

答案 0 :(得分:3)

您的maven安装无法联系中央存储库以解决列出的依赖项,这通常是一个连接问题。

你是代理人吗?如果是这样,您可以配置maven以在maven的settings.xml上访问它。 (在Windows上,它位于您的用户个人资料文件夹中)

如果您仍然无法自动下载依赖项,您可以随时手动下载它们并将它们安装到本地存储库,发出:

mvn install:install-file -Dfile=<path-to-file> -DgroupId=<group-id> -DartifactId=<artifact-id> -Dversion=<version> -Dpackaging=<packaging>

对于你的第一个依赖应该是这样的:

mvn install:install-file -Dfile=google-collections.jar -DgroupId=com.google.collections -DartifactId=google-collections -Dversion=1.0 -Dpackaging=jar