Maven Overlays

Maven Overlays can be used to:

  • Share common resources across multiple web applications
  • Normal <dependencies> go to WEB-INF/lib
  • However war <dependencies> are over-layed on the war project itself
    • Need to specify type : <type>war</type>
  • Wars & Zip files can be used as overlays
  • Overlays use first win strategy (first copy of a file wins)
  • Applied in the order defined in in <overlays> configuration or
  • Applied in order defined in  POM
Advertisements
Posted in Java, Maven

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: