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!
On Oct 25, 10:33 pm, Thomas Broyer <t.bro...@gmail.com> wrote:
> On 25 oct, 13:22, Alex Shabanov <avshaba...@gmail.com> wrote:
>>...
>
> In other words, general-constants is a library. See:http://mojo.codehaus.org/gwt-maven-plugin/user-guide/library.html
> or as an alternative:http://maven.apache.org/plugins/maven-source-plugin/jar-mojo.html
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment