...
| Tip |
|---|
When maven fails to dependency-inject overloaded resources, use: Note that for the other webapp sources, you can add them to the plugin's extra scan targets for dynamic reload. |
Overlays
Scenario:
| Code Block |
|---|
WebAppX:
/foo.jsp
/bar.jsp
/WEB-INF/web.xml
WebAppY:
/bar.jsp
/baz.jsp
/WEB-INF/web.xml
/WEB-INF/sitemesh.xml
|
Configuration:
<resources>webappY/src/main/webapp, webappX/src/main/webapp</resources>
Output:
| Code Block |
|---|
When Y(first resource) extends/overrides X, you get: /foo.jsp /bar.jsp (Y) /baz.jsp /WEB-INF/web.xml (Y) /WEB-INF/sitemesh.xml Configuration: <resources>webappY/src/main/webapp,webappX/src/main/webapp</resources> |
The order would then be:
<resources>webappY/src/main/webapp, webappX/src/main/webapp</resources>