Monday, February 6, 2012

Trouble running the GWT Maven compile goal

Hi,

I'm using GWT 2.4 and the Maven-GWT plugin. Below is my
configuration ...

<!-- GWT Maven Plugin -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>${gwtVersion}</version>
<executions>
<execution>
<id>clean-compile</id>
<phase>compile</phase>
<goals>
<goal>clean</goal>
<goal>compile</goal>
</goals>
</execution>
</executions>
<!-- Plugin configuration. There are many available options, see
gwt-maven-plugin
documentation at codehaus.org -->
<configuration>
<runTarget>index.html</runTarget>
<hostedWebapp>${webappDirectory}</hostedWebapp>
<i18nMessagesBundle>com.myco.clearing.product.client.Messages</
i18nMessagesBundle>
</configuration>
</plugin>

When I include this dependency

<dependency>
<groupId>org.openqa.selenium.server</groupId>
<artifactId>selenium-server</artifactId>
<version>2.0b3</version>
<scope>system</scope>
<systemPath>${project.basedir}/lib/selenium-server-
standalone-2.0b3.jar</systemPath>
</dependency>

I'm unable to run the GWT compile command (output is below). Is there
a way I can configure the plugin above to ignore the selenium-server
plugin I've included?

Thanks, - Dave

PS - The horrendous output when the GWT Maven compile command is
run ...

[INFO] --- gwt-maven-plugin:2.4.0:compile (clean-compile) @ myco-
productplus-web ---
[INFO] auto discovered modules [com.myco.clearing.common.CommonModule,
com.myco.clearing.product.ProductPlus]
[INFO] com.myco.clearing.common.CommonModule has no EntryPoint -
compilation skipped
[INFO] Compiling module com.myco.clearing.product.ProductPlus
[INFO] [ERROR] Unexpected internal compiler error
[INFO] java.lang.NoSuchFieldError:
reportUnusedDeclaredThrownExceptionIncludeDocCommentReference
[INFO] at
com.google.gwt.dev.javac.JdtCompiler.getCompilerOptions(JdtCompiler.java:
411)
[INFO] at com.google.gwt.dev.javac.JdtCompiler
$CompilerImpl.<init>(JdtCompiler.java:228)
[INFO] at
com.google.gwt.dev.javac.JdtCompiler.doCompile(JdtCompiler.java:700)
[INFO] at com.google.gwt.dev.javac.CompilationStateBuilder
$CompileMoreLater.compile(CompilationStateBuilder.java:235)
[INFO] at
com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom(CompilationStateBuilder.java:
447)
[INFO] at
com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java:
370)
[INFO] at
com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java:
360)
[INFO] at com.google.gwt.dev.Precompile.precompile(Precompile.java:
252)
[INFO] at com.google.gwt.dev.Precompile.precompile(Precompile.java:
233)
[INFO] at com.google.gwt.dev.Precompile.precompile(Precompile.java:
145)
[INFO] at com.google.gwt.dev.Compiler.run(Compiler.java:232)
[INFO] at com.google.gwt.dev.Compiler.run(Compiler.java:198)
[INFO] at com.google.gwt.dev.Compiler$1.run(Compiler.java:170)
[INFO] at
com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:88)
[INFO] at
com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:
82)

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment