尝试运行playn给出的基本示例,想要使用该工具包。我正在按照此处的指示进行操作:http://code.google.com/p/playn/wiki/GettingStarted

但是,在执行克隆并从命令行运行mvn compile exec:java之后,它会给出以下响应:

mvn编译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

仍然有点失落。有任何想法吗?

最佳答案

我们刚刚更新了通过Maven调用Java后端的方式。您应该在PlayN Wiki上查看最新的“入门指南”。

但是,这也可以解决您的问题:

cd playn-samples
git pull
cd showcase
mvn test -Ptest-java

10-07 19:34