I believe you don't want compile junit classes.

         [ERROR] Line 26: No source code is available for type
junit.framework.Test; did you forget to inherit a required module?
         [ERROR] Line 28: No source code is available for type
junit.framework.TestSuite; did you forget to inherit a required module?
         [ERROR] Line 11: No source code is available for type
junit.framework.TestCase; did you forget to inherit a required module?


Remove them from the src path that you instructed GWT to process. See an
example at:
http://www.gwtproject.org/doc/latest/tutorial/create.html#components especially
at module xml, where you define the source path.

Regards,
Juan

On Wed, 25 Jan 2017 at 15:18 Magnus <alpineblas...@gmail.com> wrote:

> Hello,
>
> I just moved a Java library, which uses GWT, into a Maven project.
> The Maven project was created like this:
>
> mvn archetype:generate -DarchetypeArtifactId=maven-archetype-quickstart
>
>
> Then, two code folders are created, main and test. I moved my library code
> into the main folder, and I created the mylib.gwt.xml file there.
> The test folder created by the Maven template contains a file
> AppTest.java, which uses junit.
>
> I imported the Maven project into eclipse and added it as a dependend
> project to an application project, which uses the library code.
>
> Now, when I try to compile the application, I get this error:
>
> Compiling module bcs.bcs
>    Tracing compile failure path for type 'msw.lib.awi.AppTest'
>       [ERROR] Errors in
> 'file:/home/warker/dvl/prj/msw-lib-awi/src/test/java/msw/lib/awi/AppTest.java'
>          [ERROR] Line 26: No source code is available for type
> junit.framework.Test; did you forget to inherit a required module?
>          [ERROR] Line 28: No source code is available for type
> junit.framework.TestSuite; did you forget to inherit a required module?
>          [ERROR] Line 11: No source code is available for type
> junit.framework.TestCase; did you forget to inherit a required module?
>    [ERROR] Aborting compile due to errors in some input files
>
>
> What's going on here? Why does the GWT compiler see the test folder,
> allthough there is no *.gwt-xml file referencing it?
> How can I resolve the problem?
>
> Thanks
> Magnus
>
>
> --
> 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 google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to