Ok, let me revise my response, I just went and tried this an it works fine for the simplesample project (http://gwt-maven.googlecode.com/svn/ trunk/maven-googlewebtoolkit2-plugin/simplesample/) if I delete the module file from src/main/java and move it to src/main/resources.
The key is that you need to run "mvn test" and NOT just gwt:test. gwt:test is not intended to be run standalone, it is just one part of the test phase. It happens during the test phase. If run compile and so on first, and all the resources get copied over, then you can run gwt:test on it's own and it will work, but it only works because prerequisites are in place. To be safe, just run mvn test, and don't run gwt:test directly. On Sep 9, 4:42 pm, Charlie Collins <[EMAIL PROTECTED]> wrote: > I replied to this a minute ago, but guess it didn't work or hasn't > shown up, strange. > > Anyway - three options > > 1. configure the resources plugin to include src/main/resources during > the test phase (by default I don't think it does, I think it just > includes src/test/resources - no positive though - see the resources > plugin docs). > > 2. move the module file to src/main/java > > 3. make a test module file and put it in src/test/resources/org/ > gwtbook > > On Sep 9, 3:37 pm, Jeff Bowman <[EMAIL PROTECTED]> wrote: > > > I'm getting the below failure when running tests (mvn test). It seems > > to not be able to find my .gwt.xml file, which I have located in src/ > > main/resources/org/gwtbook. Where should I put that file? > > > Running org.gwtbook.client.DashboardTest > > Loading module 'org.gwtbook.client.Dashboard.JUnit' > > Loading inherited module 'org.gwtbook.client.Dashboard' > > [ERROR] Unable to find 'org/gwtbook/client/Dashboard.gwt.xml' on > > your classpath; could be a typo, or maybe you forgot to include a > > classpath entry for > > source? > > Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.507 > > sec <<< FAILURE! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "gwt-maven" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/gwt-maven?hl=en -~----------~----~----~----~------~----~------~--~---
