How to create a src/main/java source folder in Eclipse
- Click on new->Java Project
- Click on next
- Click on Source tab--usally source tab will be selected by default..
- Under Details-click on-Create new source folder link.
- Enter the folder name as "src/main/java"
- Click on finish.
- Start creating packages under this.