title: Wrong package name when using automatically added imports in Eclipse
body: <p>I have several Maven projects converted into one Eclipse workspace. When I edit the code under Eclipse, I sometimes use <kbd>CTRL</kbd>+<kbd>SHIFT</kbd>+<kbd>M</kbd> combination of keys to automatically add imports to the classes from a project in my workspace. But somehow they are added like this:</p>
  
  <pre><code>import src.main.java.com.mycompany;
  </code></pre>
  
  <p>while to real package I wanted to import is <code>com.mycompany</code>. 
  This has to be some configuration in Eclipse to fix this but I'm confused. However, this issue is very annoying. </p>
  
  <p>EDIT:</p>
  
  <p>I've forgotten to mention that Eclipse files were generated using <code>mvn eclipse:eclipse</code> command.</p>
  
  <p>Under Eclipse project seems to be configured properly. Its source folders set like this:</p>
  
  <ul>
  <li>src/test/java </li>
  <li>src/test/resources</li>
  <li>src/main/java </li>
  <li>src/main/resources</li>
  </ul>
  
  <p>And everything under Eclipse works properly except the situation when I press <kbd>CTRL</kbd>+<kbd>SHIFT</kbd>+<kbd>M</kbd> keys</p>