We are using the built in Maven integration in IDEA. When we run certain TestNG tests, there are certain dependencies that we don't want to include on the test classpath. Currently, IntelliJ adds every projects' target/classes directory to the classpath when running the test, which is causing us some classloader issues. There is an additional configuration option in the surefire maven plugin that will allow a user to specify certain dependencies they want to ignore when running the test, called "classpathDependencyExcludes". It looks like IntelliJ is ignoring this flag. Is there any way to honor this flag so we can run our unit tests from inside of IntelliJ? Thanks!