A Maven 2 JIRA issue that caught my attention today. Extending a Web application has always been something I’ve been interested in doing, and it looks like David Hawkins submitted this feature to the Maven 2.x WAR plugin back in November, and I’m just now noticing.
I haven’t used this feature yet, but it is definitely something to take note of. Let’s say you have 10-20 web applications all of which reuse the same set of tag files, the same set of CSS, same icons, etc. You might customize a few JSP pages and add some custom classes. It makes sense to consolidate common elements into a generic “default” web application and then work some logic into your build that allows you to selectively override these defaults. The interesting part is that this plugin allows you to “copy the contents of dependent wars into the war being built. It will never overwrite existing files and has configurable includes and excludes which are applied to the files being copied”. So, you could conceivably create a number of mixins that your web application could inherit.
It could get messy if misused, but this seems like another step toward making web applications a bit easier. Anyone out there successfully using this feature?