Description:
Cursor does not automatically recognize Maven-generated classes in the target/generated-sources directory, preventing the import and use of these classes. This is a critical issue that affects development productivity.
Expected behavior:
- Cursor should automatically recognize generated classes in target/generated-sources
- Imports of generated classes should work without additional configuration
Current behavior:
- Cursor does not recognize generated classes
- Imports fail with “cannot be resolved” error
- Generated classes cannot be used in the code
Attempted solutions:
- Create manual configuration in .cursor/settings.json
- Create .classpath file
- Use absolute paths in configuration
Impact:
- Cannot work with Maven-generated classes
- Affects development productivity
- Critical issue for projects using code generation
Additional information:
- Project compiles correctly with Maven
- Using Mac Intel i7
- Classes are generated correctly in target/generated-sources
- Issue is specific to Cursor not recognizing generated classes
- This is a behavior that other IDEs (IntelliJ IDEA, Eclipse) handle correctly by default