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.bcsTracing 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?
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 email@example.com.
To post to this group, send email to firstname.lastname@example.org.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.