当我尝试通过maven运行showcase sample (使用"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入门的所有步骤。
发布于 2012-07-22 15:13:13
我认为它与这个bug有关:https://github.com/rgladwell/m2e-android/issues/89
你可以尝试主更新站点(http://rgladwell.github.com/m2e-android/updates/master/),直到新版本从m2e-android发布。
https://stackoverflow.com/questions/11522111
复制相似问题