I am a newbie to Intellij and have a question about module dependencies.
My project has two modules say A and B. A is dependent on B in the way that it needs to use xmls from B/src/spring. But we don't want to include these xmls in A jar. Instead, we want the jar use xmls from a folder that contains all xml on file system (where is has all xmls in B/src/spring). The reason for this is that we can just update xml files without re-generate jar file. This enables us to avoid redeployment.
However, there is an issue with this method, when I run this project within Intellij, I have to add the xml folder path back into build.gradle file in order to build and run it, otherwise, it will throw xml not found error.
In some other threads, I see I can add the folder that contains xmls into module dependencies (I this way, I don't need to add the xml relative path in build.gradle) but I got same error after I added there.
Is there anyway I can avoid xmls to be added to jar and I also don't need to add the xml folder path back to build.gradle when I run this in Intellij?