I'm reading up on Maven WAR Overlays and am trying to wrap my head around their use case.
According to this article, they are useful for when you have multiple WARs that need to share the same resources (CSS, JS, HTML, etc.).
However, why couldn't I just put all reusable code/resources into a shared JAR, and then at runtime, access CS/JS/HTML/etc. resources via typical ClassLoader#getResourceAsStream()
magic?
Am I missing something here? Do Maven Overlays actually solve a unique problem here (if so, what is it?!?).