title: Eclipse Package Declaration Work Around?
body: <p>The team in which I'm working doesn't use eclipse and wants the src folder to be setup a certain way.  I, on the other hand, am using eclipse.  They would like the src folder to have, for example, the following structure: src/main/java/com/*  However, they would like package declarations to only have com.* in them.  If I go to project->properties and in the source tab remove the src folder as a source folder and then _only add the com.* folder as part of the source_ it will show com.* as a package, but I still have to add the whole path from src down in the .java files.  Here's an example of what I have to do in order for eclipse to recognize the packages:</p>
  
  <pre><code>package main.java.com.parser;
  </code></pre>
  
  <p>And what the team wants is to have <em>main</em> and <em>java</em> just be a folder so the package declaration would just be:</p>
  
  <pre><code>package com.parser;
  </code></pre>
  
  <p>So although the file structure would still be src/main/java/com/parser, the package name would be as stated in the later example.</p>
  
  <p>Is there a way to do this in eclipse?  <strong>I've seen some people asking similar questions on here, but they seem to have no concern that the whole path must be part of the package declaration.</strong></p>
  
  <p>I would much prefer not to do this this way, but no one else is using eclipse on this project.</p>
  
  <p>Thanks for any help in advance.</p>