Ok, here is the situation. I have a parent pom that contains two modules ... one is a REST service module (war) and the other is the website (also war). I am trying to run both webapps in IntelliJ at the same time. I have a run configuration for the service webapp that points to it's own CATALINA_BASE. And I have another run configuration for the website webapp that has it's own CATALINA_BASE. The separate bases contain app specific versions of server.xml and context.xml for each app. The first app (service module) starts up fine. However, when I try to start up the website, it tries to use the same IntelliJ cache directory as the service war and they step all over each other.
Here is the path that it tries to use:
And what I'd like it to use is:
Again, I can see that it is caching the version of server.xml from my CATALINA_BASE folder. It's just that both submodules use the same cache directory when running in IntelliJ because they both have the same parent pom.
Ideas? (Note: I realize I could change the pom structure, but I'm trying not to go there ... my colleague is able to do this in Eclipse and I want to be able to say that we can do it in IntelliJ too.)