gpt4 book ai didi

java - PlayN 构建问题

转载 作者:行者123 更新时间:2023-12-02 00:19:27 24 4
gpt4 key购买 nike

我想创建一个 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

我该怎么办?请帮忙!

最佳答案

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

你有代理吗?如果是这样,你可以在maven的settings.xml上配置maven来访问它。 (在 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

关于java - PlayN 构建问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11310159/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com