Since the update to Quarkus 2.2.1.Final (from 1.13.7.Final), we recognized a problem while building our backends. Message was something about Lombok, but we could track it down to this line of code void onStart(@Observes @Priority(Interceptor.Priority.APPLICATION) StartupEvent startup). We found out that there are 2 Versions of the class javax.annotation.Priority in the dependencies. One is applicable to target PARAMETER and one isn't.
Expected behavior
There should only be 1 version of this class in the dependencies, so the build will work again.
Describe the bug
Since the update to Quarkus 2.2.1.Final (from 1.13.7.Final), we recognized a problem while building our backends. Message was something about Lombok, but we could track it down to this line of code
void onStart(@Observes @Priority(Interceptor.Priority.APPLICATION) StartupEvent startup)
. We found out that there are 2 Versions of the classjavax.annotation.Priority
in the dependencies. One is applicable to targetPARAMETER
and one isn't.Expected behavior
There should only be 1 version of this class in the dependencies, so the build will work again.
Actual behavior
The wrong one comes from this dependency:
The right one from that:
I think it's pretty random, which class is loaded, so the error might not show up in every case.
How to Reproduce?
Steps to reproduce:
void onStart(@Observes @Priority(Interceptor.Priority.APPLICATION) StartupEvent startup)
But as I said before, it seems to be pretty random, which class is loaded first, it is not absolutely sure that this will reproduce the error.
Output of
uname -a
orver
Microsoft Windows [Version 10.0.17763.1879]
Output of
java -version
OpenJDK Runtime Environment Corretto-11.0.9.12.1 (build 11.0.9.1+12-LTS)
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.2.1.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.8.1 (05c21c65bdfed0f71a2f2ada8b84da59348c4c5d)
Additional information
No response
https://github.com/quarkusio/quarkus/issues/20125
$upstream:20125$