Hi,
I am using maven-googlewebtoolkit2-plugin to compile my project. I created
simple project to set image as background with CssResource&ClientBundle. In
development mode and compiled with GEP it is working. The compiled css style
is included in cache.html file and loaded, but with
maven-googlewebtoolkit2-plugin the out put files are cache.js and the
compiled css is missing.
Here is my build:
<plugin>
<groupId>com.totsp.gwt</groupId>
<artifactId>maven-googlewebtoolkit2-plugin</artifactId>
<version>2.0-RC1</version>
<configuration>
<contextXml>${basedir}/src/main/webapp/META-INF/contextGwtShell.xml</contextXml>
<logLevel>INFO</logLevel>
<compileTargets>
<value>claire.ClaireClient</value>
</compileTargets>
<runTarget>ClaireClient.html</runTarget>
<style>DETAILED</style>
<noServer>false</noServer>
<extraJvmArgs>-Xmx512m</extraJvmArgs>
<gwtVersion>${gwtVersion}</gwtVersion>
<output>${project.build.directory}/bft</output>
</configuration>
<executions>
<execution>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
</plugin>
I also tried to use maven gwt plugin but i got:
[INFO] Compiling module claire.ClaireClient
[INFO] [ERROR] Unexpected
[INFO] java.lang.NoSuchFieldError:
reportUnusedDeclaredThrownExceptionIncludeDocCommentReference
[INFO] at
com.google.gwt.dev.javac.JdtCompiler.getCompilerOptions(JdtCompiler.java:309)
[INFO] at
com.google.gwt.dev.javac.JdtCompiler$CompilerImpl.<init>(JdtCompiler.java:147)
[INFO] at
com.google.gwt.dev.javac.JdtCompiler.doCompile(JdtCompiler.java:465)
[INFO] at
com.google.gwt.dev.javac.CompilationStateBuilder$CompileMoreLater.compile(CompilationStateBuilder.java:141)
[INFO] at
com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom(CompilationStateBuilder.java:279)
[INFO] at
com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java:181)
[INFO] at
com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java:280)
[INFO] at com.google.gwt.dev.Precompile.precompile(Precompile.java:502)
[INFO] at com.google.gwt.dev.Precompile.precompile(Precompile.java:414)
[INFO] at com.google.gwt.dev.Compiler.run(Compiler.java:201)
[INFO] at com.google.gwt.dev.Compiler$1.run(Compiler.java:152)
[INFO] at
com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:87)
[INFO] at
com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:81)
[INFO] at com.google.gwt.dev.Compiler.main(Compiler.java:159)
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
So one application compiled with gep is working, but with the
maven-googlewebtoolkit2-plugin is not.
Please help.
Regards.
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.