Question on building web modules -- IDEA seems to eagerly deploy things it shouldn't

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
to deploy)

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?

Thanks
Grant

2 comments
Comment actions Permalink

Hi,

Thank you for the feedback, I have created an issue: http://www.jetbrains.net/jira/browse/IDEADEV-34797

Alexander.

0
Comment actions Permalink

Thanks Alexander!

I think this would also help with speed during compile because it'll be
copying a lot less files during a "make".

Thanks


"Alexander Chernikov" <no_reply@jetbrains.com> wrote in message
news:31155187.1671234783257475.JavaMail.clearspace@app4.labs.intellij.net...

Hi,

>

Thank you for the feedback, I have created an issue:
http://www.jetbrains.net/jira/browse/IDEADEV-34797

>

Alexander.

>

---
Original message URL:
http://www.jetbrains.net/devnet/message/5232185#5232185


0

Please sign in to leave a comment.