Thank you so much for your advice.
I've created a small proof-of-concept project (available for svn,
revision 291: svn co
http://webkit-jspf.googlecode.com/svn/trunk/tmp/maven/gwt-external-lib
gwt-external-lib)
Basically it's structure follows the one I described above, there is a
generic module that defines Constants class with two public static
constants and there is a gwt module "gwtmod" that includes the generic
module and uses it's Constants class.
To make Constants available for gwtmod I've added corresponding
compileSourcesArtifacts entry to it's gwt-maven-plugin's configuration
section, added Generic.gwt.xml that refers to the sources from generic
module's domain and included Generic module in the
Application.gwt.xml.
GWT compilation fails:
[INFO] com.mysite.generic.Generic is up to date. GWT compilation
skipped
[INFO] Compiling module com.mysite.gwtmod.Application
[INFO] Validating newly compiled units
[INFO] [ERROR] Errors in 'file:/home/alex/proj/googlecode-webkit-
jspf/tmp/maven/gwt-external-lib/gwtmod/src/main/java/com/mysite/gwtmod/
client/Application.java'
[INFO] [ERROR] Line 16: No source code is available for type
com.mysite.generic.Constants; did you forget to inherit a required
module?
- it sees Generic module but omits it's compilation because maven
thinks that it is "up to date". And yes, I did mvn clean install.
Any help greatly appreciated!
>>...