Overlay web app module over another?
Hi,
I have two web applications A and B where web app B depends on web app A. It needs the files in /WEB-INF , /images etc. of the first web app.
Is it possible to configure an overlay in module B so that the resulting war archive includes the files from module a?
This is kind of important to continue using Idea for the project I'm working on.
Thanks,
Wallaby
请先登录再写评论。
In the web facet dialog, you can configure "Web Resource Directories", which may belong to different modules. For Maven projects, configuration is synchronized with maven-war-plugin overlays.
However, it seems you can't map several source directories to the same target location. And it does not handle priorities between overlays. I intend to fill a JIRA for that.
Meanwhile, I use RemoteSynchronizer plugin (http://plugins.intellij.net/plugin/?id=20) ;-)
Sylvain
Just added "Improve Web Resource Directories settings" http://www.jetbrains.net/jira/browse/IDEA-24272 for my needs, don't know if it covers yours.
Sylvain
Basically I want to overlay more than just web resources (which go to WEB-INF/classes, right?).
If I want to put A/images to b.war/images then this does not work. I wish I could just add another content root in B which points to A but IDEA complains that this content root already belongs to module A.
I hope this get's fixes somehow
Wallaby