fix: Jolokia trait adds JAXB dependency that required by Hawtio
@@ -85,12 +85,15 @@ func (t *jolokiaTrait) Configure(e *Environment) (bool, error) {
func (t *jolokiaTrait) Apply(e *Environment) (err error) {
if e.IntegrationInPhase(v1.IntegrationPhaseInitialization) {
// Add the Camel management and Jolokia agent dependencies
+ // Also add the Camel JAXB dependency, that's required by Hawtio
switch e.CamelCatalog.Runtime.Provider {
case v1.RuntimeProviderQuarkus:
util.StringSliceUniqueAdd(&e.Integration.Status.Dependencies, "mvn:org.apache.camel.quarkus/camel-quarkus-management")
+ util.StringSliceUniqueAdd(&e.Integration.Status.Dependencies, "camel-quarkus:jaxb")
case v1.RuntimeProviderMain:
util.StringSliceUniqueAdd(&e.Integration.Status.Dependencies, "mvn:org.apache.camel/camel-management")
+ util.StringSliceUniqueAdd(&e.Integration.Status.Dependencies, "camel:jaxb")
}
// TODO: We may want to make the Jolokia version configurable
