3

ツールキットを試してみたい、playnによって与えられた基本的な例を実行しようとしています。私はここに与えられた指示に従っています:http ://code.google.com/p/playn/wiki/GettingStarted

ただし、クローンを作成し、コマンドラインからmvn compile exec:javaを実行すると、次の応答が返されます。

mvn compile exec:java

[INFO] Scanning for projects...
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]   
[ERROR]   The project com.googlecode.playn:playn-showcase-core:1.0-SNAPSHOT (/Users/keitama/Sites/Games/playn-samples/showcase/core/pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM for com.googlecode.playn:playn-showcase:1.0-SNAPSHOT: Failure to find com.googlecode.playn:playn-project:pom:1.0.1 in 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 and 'parent.relativePath' points at wrong local POM @ com.googlecode.playn:playn-showcase:1.0-SNAPSHOT, /Users/username/Sites/Games/playn-samples/showcase/pom.xml, line 6, column 11 -> [Help 2]
[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/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException

今は完全に失われました。与えられたヘルプページを見てきましたが、彼らは私に別の言語を話しているだけのようです。Mavenとplaynの両方の完全なスターターであるため、私はいたるところにいます。ヘルプ!

乾杯 :)

編集:

プルして以下の手順に従うと、次のエラーが発生します。

[INFO] Scanning for projects...
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]   
[ERROR]   The project com.googlecode.playn:playn-showcase:1.0-SNAPSHOT (/Users/username/Sites/Games/playn-samples/showcase/pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM: Failure to find com.googlecode.playn:playn-project:pom:1.0.1 in 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 and 'parent.relativePath' points at wrong local POM @ line 6, column 11 -> [Help 2]
[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/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException

また、コアで試してみると、代わりに次のエラーが発生します。

[INFO] Scanning for projects...
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]   
[ERROR]   The project com.googlecode.playn:playn-showcase-core:1.0-SNAPSHOT (/Users/username/Sites/Games/playn-samples/showcase/core/pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM for com.googlecode.playn:playn-showcase:1.0-SNAPSHOT: Failure to find com.googlecode.playn:playn-project:pom:1.0.1 in 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 and 'parent.relativePath' points at wrong local POM @ com.googlecode.playn:playn-showcase:1.0-SNAPSHOT, /Users/username/Sites/Games/playn-samples/showcase/pom.xml, line 6, column 11 -> [Help 2]
[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/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException

まだちょっと負けました。何か案は?

4

3 に答える 3

0

クリーンインストールを試してみましたか

git pull
mvn clean install 

うまくいくかもしれない

于 2011-11-15T03:45:10.800 に答える
0

Mavenを介してJavaバックエンドを呼び出す方法を更新しました。PlayNwikiで最新のGettingStartedの説明を確認する必要があります。

ただし、これで問題も解決するはずです。

cd playn-samples
git pull
cd showcase
mvn test -Ptest-java
于 2011-11-12T00:35:10.073 に答える
0

MVNのEclipse命令を試してください。私はそれらを試しましたが、数日前の時点で、すべてが問題なく機能しています。

于 2011-11-21T15:51:48.297 に答える