You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by David Hoffer <dh...@gmail.com> on 2012/01/05 20:45:37 UTC

gwt-maven-plugin build error

I'm getting the following error compiling with gwt-maven-plugin, I'm using
version 2.4.0.  Any ideas why?


[INFO] [ERROR] Unexpected internal compiler error
[INFO] java.lang.NoSuchFieldError:
reportUnusedDeclaredThrownExceptionIncludeDoc
CommentReference
[INFO]  at
com.google.gwt.dev.javac.JdtCompiler.getCompilerOptions(JdtCompiler.j
ava: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.com
pile(CompilationStateBuilder.java:235)
[INFO]  at
com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom(Compilat
ionStateBuilder.java:447)
[INFO]  at
com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(Compilatio
nStateBuilder.java:370)
[INFO]  at
com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java:3
60)
[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(Compile
TaskRunner.java:82)
[INFO]  at com.google.gwt.dev.Compiler.main(Compiler.java:177)
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------

Maven parallel build with selective dependency exclusions

Posted by Ashish <as...@yahoo.com>.
Hi,
  I have a multi-module project and I want to create a shorter version of the build that selectively builds a sub-set of the modules. I am using a maven profile for this. So if total I have module  a, b, c, d and e, in a profile I have a module list of a, b and c. The module c's pom.xml has a dependency on d which I don't want to build, and even if I have to build I do not want to execute its Testcases. The optional = true doesn't work and if a dependency exclusion in the profile is not working either. So how can I write a profile to either skip d and e but still build 'c' or execute Testcases (cucumber testcases + Junit) for a, b and c but just compile d and e if I have to. Appreciate your help,

-Ashish

Re: gwt-maven-plugin build error

Posted by Jesse Farinacci <ji...@gmail.com>.
Greetings,

On Thu, Jan 5, 2012 at 5:33 PM, David Hoffer <dh...@gmail.com> wrote:
> I've tracked this down considerably more.

Did you make any more progress? Frankly, this doesn't really smell
like a gwt-m-p problem... but I am curious if you resolved it.

-Jesse

-- 
There are 10 types of people in this world, those
that can read binary and those that can not.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: gwt-maven-plugin build error

Posted by David Hoffer <dh...@gmail.com>.
I've tracked this down considerably more.  It turns out the
gwt-maven-plugin compile is failing today with one of my transitive
dependencies (and it's a snapshot so that might explain why it started to
fail today), if I exclude it from the build it works, else the build fails
(with the no useful error message).

I'm going to need this eventually as it has most of my server side code is
in this dependency so I need it in the war.

Any ideas why this plugin (and the GWT compile) would care if this is in
the classpath?  Shouldn't the GWT compile ignore it since it does not have
client code for the GWT module being built?

-Dave

On Thu, Jan 5, 2012 at 2:43 PM, David Hoffer <dh...@gmail.com> wrote:

> Hum, I don't understand this...I had to change two things to get
> gwt-maven-plugin to compile today (and there was no change...it used to
> work fine).
>
> First there was one client class that had some annotations i.e. @Nullable,
> once I removed these it complained that it couldn't find some image
> resources being specified via a ClientBundle.  I had to copy the images to
> the resources folder, they were in the gwt public folder which used to work
> fine.  No idea why today it would require these to be different, and in the
> case of the first...it gives no error message telling you what the problem
> is.
>
> Any ideas?
>
> -Dave
>
>
> On Thu, Jan 5, 2012 at 1:07 PM, David Hoffer <dh...@gmail.com> wrote:
>
>> Sure...
>>
>> [INFO] Maven Version: 3.0.3
>> [INFO] JDK Version: 1.6.0_30 normalized as: 1.6.0-30
>> [INFO] OS Info: Arch: x86 Family: windows Name: windows 7 Version: 6.1
>>
>> <!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 1.6//EN"
>>         "
>> http://google-web-toolkit.googlecode.com/svn/releases/1.6/distro-source/core/src/gwt-module.dtd
>> ">
>> <module rename-to="dashboard">
>>
>>     <inherits name="com.google.gwt.user.User"/>
>>     <inherits name="com.google.gwt.core.Core"/>
>>      <inherits name="com.google.gwt.http.HTTP" />
>>     <inherits name="com.google.gwt.logging.Logging"/>
>>
>>     <inherits name='com.sencha.gxt.ui.GXT'/>
>>     <inherits name="org.atmosphere.gwt.Client"/>
>>
>>     <inherits name='com.google.gwt.user.theme.standard.Standard'/>
>>
>>     <set-property name="locale" value="default"/>
>>
>>     <entry-point class='ipt.tas.chatdashboard.gwt.client.Dashboard'/>
>>
>> </module>
>>
>>
>> On Thu, Jan 5, 2012 at 12:53 PM, Jesse Farinacci <ji...@gmail.com>wrote:
>>
>>> Greetings,
>>>
>>> On Thu, Jan 5, 2012 at 2:45 PM, David Hoffer <dh...@gmail.com> wrote:
>>>
>>> > I'm getting the following error compiling with gwt-maven-plugin, I'm
>>> using
>>> > version 2.4.0.  Any ideas why?
>>> >
>>>
>>> How about the output from enforcer:display-info and the contents of
>>> .gwt.xml file?
>>>
>>> -Jesse
>>>
>>> --
>>> There are 10 types of people in this world, those
>>> that can read binary and those that can not.
>>>
>>
>>
>

Re: gwt-maven-plugin build error

Posted by David Hoffer <dh...@gmail.com>.
Hum, I don't understand this...I had to change two things to get
gwt-maven-plugin to compile today (and there was no change...it used to
work fine).

First there was one client class that had some annotations i.e. @Nullable,
once I removed these it complained that it couldn't find some image
resources being specified via a ClientBundle.  I had to copy the images to
the resources folder, they were in the gwt public folder which used to work
fine.  No idea why today it would require these to be different, and in the
case of the first...it gives no error message telling you what the problem
is.

Any ideas?

-Dave

On Thu, Jan 5, 2012 at 1:07 PM, David Hoffer <dh...@gmail.com> wrote:

> Sure...
>
> [INFO] Maven Version: 3.0.3
> [INFO] JDK Version: 1.6.0_30 normalized as: 1.6.0-30
> [INFO] OS Info: Arch: x86 Family: windows Name: windows 7 Version: 6.1
>
> <!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 1.6//EN"
>         "
> http://google-web-toolkit.googlecode.com/svn/releases/1.6/distro-source/core/src/gwt-module.dtd
> ">
> <module rename-to="dashboard">
>
>     <inherits name="com.google.gwt.user.User"/>
>     <inherits name="com.google.gwt.core.Core"/>
>     <inherits name="com.google.gwt.http.HTTP" />
>     <inherits name="com.google.gwt.logging.Logging"/>
>
>     <inherits name='com.sencha.gxt.ui.GXT'/>
>     <inherits name="org.atmosphere.gwt.Client"/>
>
>     <inherits name='com.google.gwt.user.theme.standard.Standard'/>
>
>     <set-property name="locale" value="default"/>
>
>     <entry-point class='ipt.tas.chatdashboard.gwt.client.Dashboard'/>
>
> </module>
>
>
> On Thu, Jan 5, 2012 at 12:53 PM, Jesse Farinacci <ji...@gmail.com> wrote:
>
>> Greetings,
>>
>> On Thu, Jan 5, 2012 at 2:45 PM, David Hoffer <dh...@gmail.com> wrote:
>>
>> > I'm getting the following error compiling with gwt-maven-plugin, I'm
>> using
>> > version 2.4.0.  Any ideas why?
>> >
>>
>> How about the output from enforcer:display-info and the contents of
>> .gwt.xml file?
>>
>> -Jesse
>>
>> --
>> There are 10 types of people in this world, those
>> that can read binary and those that can not.
>>
>
>

Re: gwt-maven-plugin build error

Posted by David Hoffer <dh...@gmail.com>.
Sure...

[INFO] Maven Version: 3.0.3
[INFO] JDK Version: 1.6.0_30 normalized as: 1.6.0-30
[INFO] OS Info: Arch: x86 Family: windows Name: windows 7 Version: 6.1

<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 1.6//EN"
        "
http://google-web-toolkit.googlecode.com/svn/releases/1.6/distro-source/core/src/gwt-module.dtd
">
<module rename-to="dashboard">

    <inherits name="com.google.gwt.user.User"/>
    <inherits name="com.google.gwt.core.Core"/>
    <inherits name="com.google.gwt.http.HTTP" />
    <inherits name="com.google.gwt.logging.Logging"/>

    <inherits name='com.sencha.gxt.ui.GXT'/>
    <inherits name="org.atmosphere.gwt.Client"/>

    <inherits name='com.google.gwt.user.theme.standard.Standard'/>

    <set-property name="locale" value="default"/>

    <entry-point class='ipt.tas.chatdashboard.gwt.client.Dashboard'/>

</module>


On Thu, Jan 5, 2012 at 12:53 PM, Jesse Farinacci <ji...@gmail.com> wrote:

> Greetings,
>
> On Thu, Jan 5, 2012 at 2:45 PM, David Hoffer <dh...@gmail.com> wrote:
>
> > I'm getting the following error compiling with gwt-maven-plugin, I'm
> using
> > version 2.4.0.  Any ideas why?
> >
>
> How about the output from enforcer:display-info and the contents of
> .gwt.xml file?
>
> -Jesse
>
> --
> There are 10 types of people in this world, those
> that can read binary and those that can not.
>

Re: gwt-maven-plugin build error

Posted by Jesse Farinacci <ji...@gmail.com>.
Greetings,

On Thu, Jan 5, 2012 at 2:45 PM, David Hoffer <dh...@gmail.com> wrote:

> I'm getting the following error compiling with gwt-maven-plugin, I'm using
> version 2.4.0.  Any ideas why?
>

How about the output from enforcer:display-info and the contents of
.gwt.xml file?

-Jesse

-- 
There are 10 types of people in this world, those
that can read binary and those that can not.