title: Eclipse: The declared package does not match the expected package
body: <p>I have a problem importing an external project. I go File -> Import... -> Existing Projects into Workspace, choose the folder where the project is located and everything is imported - but the package names of the project don't seem to be what Eclipse expects. The package names all have a prefix:</p>
  
  <pre><code>prefix.packagename1
  prefix.packagename2
  </code></pre>
  
  <p>etc.</p>
  
  <p>But Eclipse expects</p>
  
  <pre><code>src.prefix1.prefix.packagename1
  src.prefix1.prefix.packagename2
  </code></pre>
  
  <p>etc. because the directory is src/prefix1/prefix/package1</p>
  
  <p>I don't really want to mess around with external code. How do I tell Eclipse to ignore the directory "src/prefix1"? Or what else can I do?</p>