This is a basic repro for the native build issue that occurs under the following circumstances:
- Quarkus 2.2.1.Final (does not occur on 2.1.2.Final)
- Dependency
quarkus-opentelemetry-exporter-otlp
(I needed a few others to be included, perhaps to stimulate the otel SDK into doing something, but this appears to be the main trigger) - A config-mapped interface containing a property whose value is only resolved at runtime.
e.g. the following interface
@ConfigMapping(prefix = "erewhon")
public interface ErewhonConfig {
String user();
}
and application.yaml
:
erewhon:
user: ${runtime_username}
To launch the native build use e.g.
mvn clean package -Pnative -Dquarkus.native.container-build=true -Dquarkus.container-image.build=true