0

I want to create a PlayN game, but in Eclipse I get this errors:

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

What should I do? Please help!

4

1 回答 1

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
于 2012-07-03T12:21:30.907 回答