I have a maven multi-module project. One of this modules (compiled as .jar
) contains only domain objects, which will be used at client and server sides (I add this .jar
as dependency to other my modules).
I know that GWT module, where will be used objects from shared .jar
, must also have source files for successful compilation. So I tried to add to my pom.xml
both:
<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 resulting .jar
don't contain GWT module source (i.e gwt.xml
). All sources of domain classes are added as well (at root directory of .jar
), but ModuleName.gwt.xml
not.
Where is problem? Thanks.