I have a question on why IDEA builds out and deploys shared JARs for all web
modules in a project even when I only right click on one web module and
click "Make Module".
For example, I have 10 web modules. They all depend on about 6 shared JARs
which get deployed with each web app (setup using the web facet). Each web
app is setup to deploy into an exploded folder.
When I right click on one of my 10 web modules and choose "Make Module",
IDEA will correctly build and deploy all files for the selected module BUT
it will also copy all the shared JAR files for the other 9 web apps -- and
just the shared jars, nothing else. When using with Websphere locally, WAS
gets confused by this and starts to get fussy.
The end result is I have a deploy folder like:
/EAR1/mywebapp/** (all files deployed since this is the web module I chose
but then I also get:
/EAR2/otherwebapp/WEB-INF/lib/sharedjar #1 through #6 deployed
/EAR2/otherwebapp2/WEB-INF/lib/sharedjar #1 through #6 deployed
/EAR2/otherwebapp3/WEB-INF/lib/sharedjar #1 through #6 deployed
/EAR3/otherwebapp4/WEB-INF/lib/sharedjar #1 through #6 deployed
The thing is the other web apps have no other files in there except these
JAR files. Obviously, I didn't want IDEA to copy any files for the web apps
I didn't ask it to build. Why would it be doing this?