Hi, this is a reincarnation of an old classic, please bear with me.
I'm using m2e in a gwt project. As you know, m2e by default excludes "**" on resource classpath entries. I can absolutely follow the regular arguments as to why this exclude is done (let maven handle the resource copying), and I don't want to argue against it. But in GWT, when I use ClientBundle, I can reference resources in annotations [1]. This is a very nifty feature. Except that when my resources lie in src/main/resources (like they should), the gwt eclipse plugin checks the classpath for the resources and of course can't find them and marks the annotations in the ClientBundle interfaces with errors. This is not really a showstopper or major issue, since the project can still be built, but it's not nice to have errors in the project at all times. I've worked around this issue for now by moving the resources to my src/main/java source folder and including the src/main/java folder as a resource folder (with proper includes) in my pom [2]. So, does anyone have any other idea how to work around this issue? Regards, Ole [1] http://code.google.com/intl/de-DE/webtoolkit/doc/latest/DevGuideClientBundle.html [2] <resources> <resource> <directory>src/main/java</directory> <includes> <include>**/*.png</include> </includes> </resource> <resource> <directory>src/main/resources</directory> <includes> <include>**</include> </includes> </resource> </resources>
signature.asc
Description: OpenPGP digital signature
_______________________________________________ m2e-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/m2e-users
