I've been trying to change from eclipse to IntelliJ, in order to give it a try with a real project we're in.
My problem is that when I try to compile and debug the project, it fails since tomcat can't figure out where are some resource files that are common to the project.
The project consists in 14 WARs...
...which are tied together in eclipse through some enviroment variables and, and this is the point, some classpath's links to a common resource folder.
In eclipse, I just set this scenario like this:
However, when I try to do the same in IntelliJ, I can't figure out how to do the same.
I have tried to just import the projects (modules), and configure the artifacts to be deployed, like this:
However, I don't know how to do the same stuff regarding to classpath configuration in IntelliJ.
I try to depluy and run, but tomcat, thoughtout IntelliJ, complaints like this:
I have figured out how to solve this issue by including, manually, this common resource folder like this:
This way, tomcat starts without complaining. But I have to include this folder like this way in every single EAR!
I think there should be a way to configure it in IntelliJ like in eclipse, without having to include this folder in every artifact.
I have tried to run maven deployment instead of a normal IntelliJ Build. I also tried to include this common resources folder as a JDK dependency.
I have read articles regarding this classpath stuff in eclipse and in IntelliJ like this, and this, without any success.
Thanks in advance!