Reputation: 1274
I'm getting an issue where non-src folders are looking like packages, they look completely fine in my natural folder directory.
The assets folder should be a hierarchy, but isn't.
Thought it was because I was in package explorer but not project explorer, same issue with project explorer.
Upvotes: 17
Views: 14706
Reputation: 1517
If your simple folder is turning into package format. Be clear that it is not source folder, it is just simple directory like "docs" you want to keep in your Project but eclipse is turning it into Package format. then do below step:
right click on your package -> Build Path -> exclude
Upvotes: 0
Reputation: 7045
Maven Update fixed my problem easily.
Right click on project,
maven->Update Project
I suspect that the cause was I run maven commands from command prompt (cmd) directly.
Upvotes: 1
Reputation: 15326
For me the following worked (in RAD actually): Go to "Project Properties" / "Java Build Path" and mark the Resource Folder as "Source folders on the build path".
The Resource Folder (here, src/main/resources
) appears as filled with classless packages:
Enter the exlcusion pattern "**" to exclude any source path:
This solves the problem.
Upvotes: 12
Reputation: 1544
I believe, you right click on your project and choose "Build Path" and "Use as source folder". If it is the case, you can revert the problem by right clicking on your project and selecting "Build Path" and then "Remove from build path".
Upvotes: 30