In our company we have a Gradle project and unfortunately we can't get it to work with IntelliJ due to the following problem:
in short, we have three modules (in reality a lot more of course):
with the following dependency structure
The war that is produced by warProject is configured as an artifact in IntelliJ but when we build it, sometimes IntelliJ packages the content of javaProjectB into warProject\build\libs\exploded\warProject.war\WEB-INF\lib\javaProjectA.jar.
Even more unfortunately this happens seemingly randomly! The only way to 'fix' it is to keep rebuilding the artifact until it is built correctly.
The build logs show nothing, even with output level set to debug.