当我尝试通过 maven 运行展示示例时(使用“mvn test”和“mvn test -Ptest-java”),我得到:
[INFO] Scanning for projects...
[ERROR]
[ERROR] The project com.googlecode.playn:playn-showcase:1.0-SNAPSHOT (E:\Desarrollo\Git\playn-samples\showcase\pom.xml) has 1 error
[ERROR] Non-resolvable parent POM: Could not find artifact com.googlecode.playn:playn-project:pom:1.4-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 6, column 11 -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of errors, re-run Maven with the -e switch.
[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 创建项目,但是当我尝试通过 Eclipse 创建一个新的 playn 1.3.1 项目时,我得到:
'Creating playn-archetype' has encountered a problem.
Unable to create project from archetype
[com.googlecode.playn:playn-archetype:1.3.1]
Details: Unable to create project from archetype [com.googlecode.playn:playn-archetype:1.3.1]
The defined artifact is not an archetype
(playn 1.4 也是如此)
当我尝试将 playn 1.3.1 或 1.4 项目导入 Eclipse(通过 Maven 创建)时,出现下一个错误:
'Importing Maven projects' has encountered a problem.
An internal error ocurred during: "Importing Maven projects".
Details: An internal error occurred during: "Importing Maven projects".
com/android/io/StreamException
所以我不能通过 Eclipse 运行任何项目。
我使用 Eclipse Indigo 3.7、maven 3.0.4 和 JDK 7u5;我按照所有显示 playn 开始的步骤进行操作。