title: Maven install works but Intellij's build does not
body: <p>I have the following problem with a multi module maven project:</p>
  
  <p>The project was initially created in Eclipse and can be compiled and run there. It also can be built with <code>mvn install</code>.</p>
  
  <p>Now when I import the project into Intellij using the following
  <a href="https://i.stack.imgur.com/kBx4m.png" rel="nofollow noreferrer">import options</a> the parent pom.xml is recognized and the project and its modules are imported.</p>
  
  <p>Everything looks fine, but when I try to compile it, one class, that has a class from another module as a dependency, cannot be found.</p>
  
  <p>I tried a lot of solutions and the ONLY one that worked for me is the outdated maven idea plugin <code>mvn idea:idea</code> as suggested in <a href="https://stackoverflow.com/questions/18316857/maven-package-works-but-intellijs-build-fails">this</a>
  thread. Now every time something in any of the projects poms changes, I have to rerun <code>mvn idea:idea</code> and hope that it works - otherwise I have to import the whole project again.</p>
  
  <p>What am I doing wrong in the import process? Why does <code>mvn install</code> on the command line work, but building the project in Intellij does not?</p>