The current Roo release does not create the Java source folders by default at project creation anymore. That has an inconvenient effect in Eclipse/STS, the user has to manually update the Maven project configuration after the first Java code was generated from the Roo shell.
- Create new Roo project > src/main/resources is the only configured source folder, src/main/java and test folders are not created yet
- "jpa setup" in the Roo shell, then "entity jpa --class MyEntity"
>> This creates the src/main/java folder and generates java and aj files into it.
The project configuration reflects the new code, src/main/java is a source folder.
src/main/java is not yet a source folder, Right Click > Maven > Update Project Configuration has to be done manually, or manual build path configuration for the new source folder; same probably true for test resources created with integration test commands, etc.