Describe the bug
I've generated a native image with the dev configuration profile:
mvn package -Pnative -Dquarkus.profile=dev
My objective was to enable swagger-ui on the native image (as in dev mode, swagger-ui being a transitive dependency of openapi).
This was not the case:
To confirm that, we can clearly see in the log message, when starting a native image, that openapi extension is included but not swagger-ui.
To enable swagger-ui with a native image, I've had to set the quarkus.swagger-ui.always-include propertry to true.
Expected behavior
By reading the documentation, my understanding is that swagger-ui should be enabled when packaging a native image with the dev profile.
To be more general, my understanding is that by packaging a native image with the dev profile, we get the exact same behaviour as in dev mode. If this is not the cas, that should be mentioned in the documentation.
Actual behavior
Setting quarkus.swagger-ui.always-include propertry to true is required to enable swagger-ui even when packaging a native image with the dev profile.
To Reproduce
Steps to reproduce the behavior:
mvn package -Pnative -Dquarkus.profile=truequarkus.swagger-ui.always-include=true in application propertiesConfiguration
# Add your application.properties here, if applicable.
quarkus.resteasy.path=/easypay/api
# Required to benefit from swagger-ui with a native image
quarkus.swagger-ui.always-include=true
# H2 configuration
quarkus.datasource.driver=org.h2.Driver
quarkus.datasource.url=jdbc:h2:tcp://localhost/~/test
quarkus.datasource.username=sa
quarkus.datasource.password=sapwd
quarkus.datasource.initial-size=2
quarkus.datasource.max-size=4
quarkus.datasource.min-size=2
#required to enable swagger-ui with a native image, even built with the dev profile
quarkus.datasource.health.enabled=true
Screenshots
(If applicable, add screenshots to help explain your problem.)
Environment (please complete the following information):
uname -a or ver: MacOS 10.13.6java -version: OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.5+10)Additional context
Maybe this is not a bug, but an expected behaviour. But at least it should be mentioned in the documentation that, even when building your native image with the dev profile, you need to set _quarkus.datasource.health.enabled_ to true to enable swagger-ui.
I add the same issue. Could you add that details in the guide so we don't get stuck with the same problems.