title: Unable to execute unit tests in a maven project from within intellij
body: <p>I have inherited a legacy project with 100s of tests, and dependencies defined within the pom. </p>
  
  <p>All of the tests run when I execute a mvn clean install from the command line, but when I try to execute one of these tests in debug mode from within Intellij i get the following error.</p>
  
  <p>java.lang.NoClassDefFoundError: Could not initialize class </p>
  
  <p>How can I get intellij to recognise these dependencies when trying to run a test in debug mode from the ide?  </p>