I have a multi-module maven project. One of these modules (compiled as .jar ) contains only domain objects that will be used on the client and server side (I add this .jar as a dependency on my other modules).
I know that the GWT module, where objects from a common .jar will be used, must also have source files for successful compilation. So I tried adding both to my pom.xml :
<resources> <resource> <directory>src/main/java/<path></directory> <includes> <include>**/*.java</include> <include>**/*.gwt.xml</include> </includes> </resource> </resources>
and
<plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>gwt-maven-plugin</artifactId> <versionRange>[${gwt.version}]</versionRange> <goals> <goal>resources</goal> </goals> <plugin>
But the .jar result does not contain the source of the GWT module (i.e. gwt.xml ). All domain class sources (in the .jar root directory) are also added, but ModuleName.gwt.xml not.
Where is the problem? Thanks.
source share