I tried Mirko's suggestion and it now the jars do include the source
files. I think I've also better understood the problem with the
classpaths. This seems to be a scoping issue (as you suggested). I
have the third party library scoped as provided so the gwt:compile
goal runs with it in the classpath:
DEBUG SCRIPT CLASSPATH LIST
/home/arthur/.m2/repository/com/google/gwt/gwt-user/1.5.1/gwt-
user-1.5.1.jar
/home/arthur/.m2/repository/com/google/gwt/gwt-dev/1.5.1/gwt-
dev-1.5.1-linux.jar
/home/arthur/work/mshab/mshab-demo/src/main/java
/home/arthur/work/mshab/mshab-demo/src/main/resources
/home/arthur/work/mshab/mshab-demo/classes
/home/arthur/work/mshab/mshab-demo/target/classes
/home/arthur/.m2/repository/com/sinai/mshab/mshab-format/1.0-
SNAPSHOT/mshab-format-1.0-SNAPSHOT.jar
However, when it gets to running gwt:gwt, the classpath changes and
doesn't include mshab-format:
DEBUG SCRIPT CLASSPATH LIST
/home/arthur/.m2/repository/com/google/gwt/gwt-user/1.5.1/gwt-
user-1.5.1.jar
/home/arthur/.m2/repository/com/google/gwt/gwt-dev/1.5.1/gwt-
dev-1.5.1-linux.jar
/home/arthur/work/mshab/mshab-demo/src/main/java
/home/arthur/work/mshab/mshab-demo/src/main/resources
/home/arthur/work/mshab/mshab-demo/classes
/home/arthur/work/mshab/mshab-demo/target/classes
This is why hosted mode says mshab-format.xml isn't in the classpath.
I tried to scope it as runtime, but that didn't do anything (except
not include it during the compile step).
Regards,
Arthur Kalmenson