Configuring Multiple WebApp Source Directory
It can be configured by passing Resource, String, or String (csv) in the constructor.
The primary resource(first in the list) is the main resource.
WEB-INF/lib and WEB-INF/classes are merged.
This basically means your dependent classes on webappA will be available in the classpath for webappB.
This feature enables webapp overlays.
Configuration in context.xml
Configuration in jetty-maven-plugin
When using mvn jetty:run, you don't need to configure anything.
Just add a dependency like:
If configured manually, it would look like:
The order of the overlays depends on how you arrange the war dependencies in your pom.xml (top to bottom)