--
You received this message because you are subscribed to the Google Groups "Codehaus Mojo gwt-maven-plugin Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codehaus-mojo-gwt-maven-...@googlegroups.com.
To post to this group, send email to codehaus-mojo-gwt-...@googlegroups.com.
Visit this group at http://groups.google.com/group/codehaus-mojo-gwt-maven-plugin-users.
For more options, visit https://groups.google.com/d/optout.
Thank you for your answers,Actually let me correct something from my first post: the javascript file is present in the target folder (and in the resulting war) but it is never updated.I found out that it is because when I used the "GWT Compile" from the Google Plugin, it copied the javascript file (from module 1) in the source folder (of module 2), and now it is this one that is placed in the target directory by Maven (even if it has been updated in the module 1 jar).If I manually delete this javascript file before compiling with Maven, then the good one is taken from the module 1 jar.It's not a problem because now that my Maven configuration is good I won't use the Google Plugin anymore so I won't face this again.But still, I don't know if it was the gwt-maven-plugin that was choosing the wrong javascript file, or the maven-war-plugin that was overwriting the good one with the wrong one, or something else...
I'm now using GWT and gwt-maven-plugin 2.7.0.I decided to switch because the super dev mode in GWT 2.6.1 did not handle well public ressources (not copying them on first launch for example), and this has been improved in 2.7.0.Regarding the maven building, it still uses the resource file copyed in the source folder by the Google Plugin or the super dev mode even if there is a newer version in the jar of module 1.For now I will just remember to remove old resources copyed in the source folder before building with maven.If you find a workaround in the future please let me know.
You're not supposed to have anything generated in your source folder. If you have, then you're doing it wrong; and the behavior of preferring your sources over your dependencies is on-purpose.