-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Description
Describe the bug
After switching the dependency "org.jetbrains.annotations-java5" to "org-jetbrains.annotations" the maven build is failing. All error messages show "symbol not found", relating to Getters, Setters, Builders or Constructors, which are added via Lombok @Getter, @Setter, @builder, @NoArgsConstructor etc...
The error only shows during maven compile. IntelliJ does not show any error in files.
To Reproduce
- switch maven dependency like shown above
- mvn clean compile
- build does not work
- add old maven dependency together with new one
--- new one before old one in pom.xml => build fails
--- new one after old one in pom.xml => build works
the new annotations package introduced TYPE_USE for annotations, which were not present in annotations-java5 package. This is probably the cause.
Expected behavior
build working with new annotations package
Version info:
- Lombok version: 1.18.40
- Platform: Java SDK 21
- org.jetbrains.annotations: 26.0.2
- org.jetbrains.annotations-java5: 24.1.0 (no newer version available)
Additional context
The java5 package is marked as "Relocated" in Maven Repository, that is why we moved to the new dependency.
Different approaces for solving did not success:
- lombok.config with lombok.copyableAnnotations
- invalidate caches and restart
- reimport git project
Is this a known bug? Is there a solution I missed?
Thanks in advance for any help provided.
Greetings
Simon