Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Tip

When maven fails to dependency-inject overloaded resources, use:
<resourcesAsCsv>src/main/webapp,target/foo,E:/my/other/source,/home/johndoe/path/to/my/other/source</resourcesAsCsv>

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>

Contact the core Jetty developers at www.webtide.com
private support for your internal/customer projects ... custom extensions and distributions ... versioned snapshots for indefinite support ... scalability guidance for your apps and Ajax/Comet projects ... development services from 1 day to full product delivery