Playn无法编译HTML

  • 本文关键字:HTML 编译 Playn playn
  • 更新时间 :
  • 英文 :


android和java版本工作正常,但是当我尝试兼容html版本时,我只会得到错误。我通过选择Maven Build ...并在目标文本字段中输入集成测试来做到这一点(就像"入门指南"中的建议)。但是我只会遵循错误:

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
[INFO] Scanning for projects...
[INFO]                                                                        
[INFO] ------------------------------------------------------------------------
[INFO] Building PlayN Hello HTML 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ playn-hello-html ---
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ playn-hello-html ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory F:DocumentsProgrammierenPlayNgamehtmlsrcmainresources
[INFO]
[INFO] --- maven-compiler-plugin:2.3:compile (default-compile) @ playn-hello-html ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ playn-hello-html ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory F:DocumentsProgrammierenPlayNgamehtmlsrctestresources
[INFO]
[INFO] --- maven-compiler-plugin:2.3:testCompile (default-testCompile) @ playn-hello-html ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.10:test (default-test) @ playn-hello-html ---
[INFO] Surefire report directory: F:DocumentsProgrammierenPlayNgamehtmltargetsurefire-reports
-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Results :
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] --- gwt-maven-plugin:2.4.0:compile (default) @ playn-hello-html ---
[ERROR] Fehler: Hauptklasse com.google.gwt.dev.Compiler konnte nicht gefunden oder geladen werden
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.527s
[INFO] Finished at: Fri Nov 02 10:31:17 CET 2012
[INFO] Final Memory: 11M/28M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:gwt-maven-plugin:2.4.0:compile (default) on project playn-hello-html: Command [[
[ERROR] C:Program Files (x86)Javajre7binjava -Xmx256m -classpath F:DocumentsProgrammierenPlayNgamehtmlsrcmainjava;F:DocumentsProgrammierenPlayNgamehtmlsrcmainresources;F:DocumentsProgrammierenPlayNgamehtmltargetclasses;C:Users\.m2repositorycomgooglecodeplaynplayn-hello-core1.0-SNAPSHOTplayn-hello-core-1.0-SNAPSHOT.jar;C:Users\.m2repositorycomgooglecodeplaynplayn-core1.4playn-core-1.4.jar;C:Users\.m2repositorycomsamskivertpythagoras1.2pythagoras-1.2.jar;C:Users
.m2repositorycomgooglecodeplaynplayn-html1.4playn-html-1.4.jar;C:Users\.m2repositorycomgooglecodeplaynplayn-webgl1.4playn-webgl-1.4.jar;C:Users\.m2repositorycomgooglegwtgwt-user2.4.0gwt-user-2.4.0.jar;C:Users\.m2repositoryjavaxvalidationvalidation-api1.0.0.GAvalidation-api-1.0.0.GA.jar;C:Users\.m2repositoryjavaxvalidationvalidation-api1.0.0.GAvalidation-api-1.0.0.GA-sources.jar;C:Users\.m2repositorycomallen-sauergwtvoicesgwt-voices2.1.8gwt-voices-2.1.8.jar;C:Users\.m2repositorycomgooglegwtgwt-user2.4.0gwt-user-2.4.0.jar;C:Users\.m2repositoryjavaxvalidationvalidation-api1.0.0.GAvalidation-api-1.0.0.GA.jar;C:Users\.m2repositoryjavaxvalidationvalidation-api1.0.0.GAvalidation-api-1.0.0.GA-sources.jar;C:Users\.m2repositorycomgooglegwtgwt-dev2.4.0gwt-dev-2.4.0.jar com.google.gwt.dev.Compiler -gen F:DocumentsProgrammierenPlayNgamehtmltarget.generated -logLevel INFO -style PRETTY -war F:DocumentsProgrammierenPlayNgamehtmltargetplayn-hello-html-1.0-SNAPSHOT -localWorkers 8 -XdisableClassMetadata -XdisableCastChecking -XdisableRunAsync playn.sample.hello.HelloGame
[ERROR] ]] failed with status 1
[ERROR] -> [Help 1]
[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/MojoExecutionException

当我尝试Google-> GWT Compile(如Stackoverflow上的某个地方提到)时,它只是说这不是GWT项目!

我该怎么做才能使HTML版本正常工作?

问候Fleckdalm

尝试以下:

mvn clean -Phtml package

最新更新