3

尝试运行 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

还是有点失落。有任何想法吗?

4

3 回答 3

0

尝试MVN 的 Eclipse 说明。我试过了,直到几天前,一切都完美无缺。

于 2011-11-21T15:51:48.297 回答
0

您是否尝试过全新安装

git pull
mvn clean install 

可能有用

于 2011-11-15T03:45:10.800 回答
0

我们刚刚更新了通过 Maven 调用 Java 后端的方式。您应该查看 PlayN wiki 上最新的 GettingStarted 说明。

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

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