I\'m trying to split a Maven WAR project into two modules, so that I can build a separate JAR file with command line tools. The result has the following structure:
There is no magical solution and the only one I know is a bit hacky and rely on the extraClasspath element that you can use to declare extra class directories, relatively. Like this (from JETTY-662):
org.mortbay.jetty
jetty-maven-plugin
7.0.1.v20091125
10
/my-context
target/classes;../my-jar-dependency/target/classes
../my-jar-dependency/target/classes