I am working on a multi-module Maven project, whose structure is like this:
war-module
jar-module
The war-module depends on the jar-module,
I found the answer via some more searching on the web.
Generally, there are three ways to share resources in a multi module Maven project:
- Cut and paste them.
- Use Assembly and Dependency plugins
- Use the maven-remote-resources-plugin
Here's a blog post from Sonatype, the company behind Maven, on sharing resources across projects in Maven, and it is the exact answer I need:
http://www.sonatype.com/people/2008/04/how-to-share-resources-across-projects-in-maven/