当我尝试通过maven运行showcase样本时(使用“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入门的所有步骤进行操作。
答案 0 :(得分:0)
我认为这与此错误有关:https://github.com/rgladwell/m2e-android/issues/89
您可以尝试使用主更新站点(http://rgladwell.github.com/m2e-android/updates/master/),直到新版本从m2e-android发布。