Assume we have a few projects, each containing some web resources (e.g., html pages).
parent.pom +- web (war) +- web-plugin-1 (jar) +- web-plugin-2 (jar) ...
web is the deployable
war project which depends on the known, but selectable, set of plugins.
What is a good way to setup this using
- Let the plugins be
warprojects and use mavens poor support for importing other
- Put all web-resource for all plugins in the
- Add all web-resources to the classpath of all
web-plugin-*dependencie and let spring read files from respective classpath?
I've previously come from using
#1, but the
copy-paste semantics of
war dependencies in maven is horrible.