I have marked a dependency in maven as provided as it is a commercial application that I am writing extensions for and my clients have their own different patched versions of this jar.
However, when I run my application from within IDEA I get a ClassNotFoundException because IDEA is not including the provided dependency in the classpath.
If I put it in the runtime scope IDEA includes it in the classpath but I can't compile with maven.
If I put it in the compile scope IDEA includes it in the classpath but maven includes it in my distribution and dependencies.
This is probably the closest issue to my case
However, it is in a chain of duplicates in youtrack that aren't really duplicates by the time you reach the top of the stack.
The issue in youtrack is 17 months old so how do people work around this and use the maven provided scope from within IDEA?