We are currently working on making our web-applikation more modular.
We use JSF2.3, Primefaces and Jakarta EE on Wildfly 17.0.1. Currently there are two WARs deployed which need the same static resource: CSS (SCSS), JS, images, etc. and are therefore duplicated in both WARs, so we have to change always both resource files (DRY much...)
Looks like this:
-WAR_1
-WAR_2
We read about WAR-Overlay with Maven which would work, but this would not lower the size of the WARs.
Something like this would be perfect:
-WAR_1
-WAR_2
-jar with resources
Therefore the question: is this realizable or are there better pattern to outsource the resources? We want the resources only to be deployed once since we will add more applications (WARs) to server in the future which will need the same resources.
Sorry if anything is missing I am still new here and this is my first question.