Some of our developers prefer Eclipse and some prefer Netbeans. We want the same file hierarchy for both so that it's kept under one directory in subversion.
The directory structure is:
src
| +main
| | +java
| | +com
| | +mycompany
| | +utils
| | +Bar.java
| | +Foo.java
| +test
| | +java
| | +com
| | +mycompany
| | +utils
| | +BarTest.java
| | +FooTest.java
bin
| +com
| | +mycompany
| | +utils
| | +Bar.class
| | +Foo.class
This not only works fine in Netbeans, but it appears to be a standard. (http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html) The problem I'm having is that in Eclipse I can see all this hierarchy, but it complains that the file Bar.java (above), which has a package declaration: "package com.mycompany.utils;", should be declared as "package main.java.com.mycompany.utils;", which is not what I want. How can I configure Eclipse to recognize this hierarchy?
Thanks,
Chelmite