Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quarkus trying to index lombok annotations #46201

Open
Wouter684 opened this issue Feb 11, 2025 · 0 comments
Open

Quarkus trying to index lombok annotations #46201

Wouter684 opened this issue Feb 11, 2025 · 0 comments
Labels
kind/bug Something isn't working

Comments

@Wouter684
Copy link

Wouter684 commented Feb 11, 2025

Describe the bug

I have a Quarkus application where I also use Lombok annotations, such as the @NonNull annotation. When using the quarkus-rest dependency in the application, I get the following warning when running mvn clean verify:

[WARNING] [io.quarkus.arc.processor.BeanArchives] Failed to index lombok.NonNull: Class does not exist in ClassLoader QuarkusClassLoader:Deployment Class Loader: PROD for lombok-nonnull-warning-0.0.1-SNAPSHOT@f4deb35

When removing the quarkus-rest dependency the warning disappears, but for obvious reasons the application no longer works as expected.

Expected behavior

The Lombok annotations should not be indexed, they are annotations and not beans.

Actual behavior

The Lombok annotations are being indexed as if they were beans, resulting in a warning being shown because they cannot be indexed.

How to Reproduce?

Reproducer: https://github.com/Wouter684/lombok-nonnull-warning

Steps to reproduce:

  1. Open the application
  2. Run mvn clean verify
  3. Just before the BUILD SUCCESS message, the warning is displayed

When the dependency quarkus-rest is removed from the pom and mvn clean verify is run again, the warning is no longer shown. Of course the rest calls won't work anymore when starting the application and trying to send a call to the endpoint.

Output of uname -a or ver

_No response_

Output of java -version

openjdk 21.0.3 2024-04-16 LTS
OpenJDK Runtime Environment Temurin-21.0.3+9 (build 21.0.3+9-LTS)
OpenJDK 64-Bit Server VM Temurin-21.0.3+9 (build 21.0.3+9-LTS, mixed mode)

Quarkus version or git rev

3.18.1

Build tool (ie. output of mvnw --version or gradlew --version)

Maven home: /Users/<redacted>/.sdkman/candidates/maven/current
Java version: 21.0.3, vendor: Eclipse Adoptium, runtime: /Users/<redacted>/.sdkman/candidates/java/21.0.3-tem
Default locale: en_NL, platform encoding: UTF-8
OS name: "mac os x", version: "15.3", arch: "aarch64", family: "mac"

Additional information

Possibly related issue:
#38506

@Wouter684 Wouter684 added the kind/bug Something isn't working label Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants