I’ve got a Maven2 project with two submodules, laid out like this:
parentproject
|---war-file-project
|---applet-project
The POMs in each of them have the appropriate parent-module relationships. The applet-project contains a simple applet and is set up with JAR packaging. The war-file-project contains a simple WAR file project and is set up with WAR packaging.
When I build, I’d like to make sure that the WAR file contains the resulting JAR file from the applet-project in the /applets directory.
How do I do this?
To achieve that you can simply use the maven-dependency-plugin to copy the dependency to an appropriate location.
Created a complete example which you can use as a template.