Reputation: 473
I've searched the web for this information. I created a maven project in Eclipse. all has been working well. when you look at my project hierarchy I had source folders that looked like: src/main/java and src/main/resources. Within src/main/Java I had com.common.core and com.common.game
I deleted the game directory and my src folder flattened out so the top level is src. How do I fix that in Eclipse. Now my project does not compile because my import is com.common.core.file How do I get the folder to look like src/main/java
Upvotes: 2
Views: 2773
Reputation: 473
The problem was with the Package Presentation setting
EDIT: Also, keep in mind that the Package Presentation setting (set from the view's local menu--the upside down triangle) might be different between the Project and Package Explorer views. Adjust as you see fit if things look the opposite of how you'd like.
Upvotes: 0
Reputation: 6302
Project -> Properties -> Build path
Add and remove the source folders to follow your new structure.
Upvotes: 4