0

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

私は何をすべきか?助けてください!

4

1 に答える 1

3

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