Yes, they have to be in the same jar, so you have to include this
lines in your pom.xml:
<build>
.....................................
<resources>
<resource>
<directory>src/main/java</directory>
</resource>
<resource>
<directory>src/main/resources</directory>
</resource>
</resources>
.................................
</build>
On 4 feb, 23:08, Micah <[email protected]> wrote:
> I currently have a GWT app that I'm looking to break into separate
> modules. The build system is currently Maven2 and utilizing the gwt-
> maven-plugin[1]. When reading over the documentation on how to do
> this, I wonder what exactly are the requirements around the source
> code for a module being available for packaging another module. Does
> the source (*.java) have to be in the same jar or does it just have
> to be on the classpath?
>
> Maven's general approach is to make source available in a secondary
> artifact using the maven-source-jar[2]. This is nice because it
> removes bloat from my endstates but also I don't have to worry about
> shipping source code to each of my clients.
>
> So do I have to have *.java files in my jar or are there other means
> of accomplishing this to make the GWT compiler happy?
>
> Thanks for your help,
> Micah
>
> [1] -http://mojo.codehaus.org/gwt-maven-plugin/user-guide/multiproject.html
> [2] -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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.