Wednesday, January 25, 2017

Re: GWT/Maven: No source code is available for type junit.framework.Test; did you forget to inherit a required module?

Hello Juan!

On Wednesday, January 25, 2017 at 7:40:06 PM UTC+1, Juan Pablo Gardella wrote:
I believe you don't want compile junit classes. 

Remove them from the src path that you instructed GWT to process. See an example at: especially at module xml, where you define the source path.

Thank you! No, I don't want to compile junit classes. But they are not in my path:

The library has these two folders:
  • src/main/java/msw/lib/awi
  • src/test/java/msw/lib/awi
The whole library code is below the first one and the only *.gwt.xml is:


It has the following contents:

  <inherits name=''/>
  <source path='awi'/>

Since this is the only *.gwt.xml file, I don't see where I should include the src/test/java/msw/lib/awi/, which uses junit.

I would like to understand, why the GWT compiler "sees" the file here?

Thank you

You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
Visit this group at
For more options, visit

No comments:

Post a Comment