title: Maven package works but Intellij's build fails
body: <p>I have a JDK 1.7 project with a maven dependency to a local jar in my maven repo.</p>
  
  <p>I'm unable to build the project using Intellij, with the errors that a symbol cannot be found (the symbol is a class importing packages from the local jar)</p>
  
  <p>But I can successfully build the project using 'mvn package'.</p>
  
  <p>I've spent so much time looking for solutions, things I've already done:</p>
  
  <ul>
  <li>Invalidated cache</li>
  <li>'mvn clean install' the local jar dependecy</li>
  <li>Marked to 'autoload snapshots' in Intellij's maven configuration</li>
  <li>Reimpoted maven in Intellij</li>
  <li>Syncornized</li>
  </ul>
  
  <p>This error happend to my couple of times before, but usually just closing the Intellij and /or doing the 'mvn clean install' did the trick.</p>
  
  <p>Please help.</p>