snowdrop-zen / quarkus

Quarkus: Supersonic Subatomic Java.
https://quarkus.io
Apache License 2.0
1 stars 0 forks source link

Native image build fail if quarkus-resteasy-reactive and quarkus-smallrye-opentracing are used. #258

Closed snowdrop-bot closed 3 years ago

snowdrop-bot commented 3 years ago

Describe the bug If quarkus-resteasy-reactive and quarkus-smallrye-opentracing are used in the same project the native image build fails.

Expected behavior Native image will be created.

Actual behavior Build process interrupts with

Fatal error:java.lang.TypeNotPresentException: Type org.jboss.resteasy.microprofile.config.FilterConfigSource not present
        at java.base/sun.reflect.annotation.TypeNotPresentExceptionProxy.generateException(TypeNotPresentExceptionProxy.java:46)
        at java.base/sun.reflect.annotation.AnnotationInvocationHandler.invoke(AnnotationInvocationHandler.java:86)

To Reproduce

Steps to reproduce the behavior:

  1. Create a simple quarkus project mvn io.quarkus:quarkus-maven-plugin:1.11.1.Final:create \ -DprojectGroupId=org.acme \ -DprojectArtifactId=getting-started \ -DclassName="org.acme.getting.started.GreetingResource" \ -Dpath="/hello"
  2. Replace artifact quarkus-resteasy by quarkus-resteasy-reactive in pom.xml
  3. Add artifact quarkus-smallrye-opentracing to pom.xml
  4. Execute command mvn clean verify -Pnative

Environment (please complete the following information):


https://github.com/quarkusio/quarkus/issues/14876


$upstream:14876$