Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Information Provided
-
3.18.2
-
None
-
Unknown
Description
camel-jbang export change class package to group from gav.
after that class reference in yaml is not correct anymore, ex:
The following 2 files run using camel-jbang without any issues
import org.apache.camel.BindToRegistry; import org.apache.camel.Exchange; import org.apache.camel.Processor; @BindToRegistry("CustomProcessor") public class CustomProcessor implements Processor { public void process(Exchange exchange) throws Exception { exchange.getIn().setBody("Hello world"); } }
and
- route:
from:
uri: kamelet:timer-source
steps:
- process:
ref: '#CustomProcessor'
- log:
message: ${body}
parameters:
period: 2000
message: xxx
while during export camel-jbang adds package to the class
package org.test.demo; import org.apache.camel.BindToRegistry; import org.apache.camel.Exchange; import org.apache.camel.Processor; @BindToRegistry("CustomProcessor") public class CustomProcessor implements Processor { public void process(Exchange exchange) throws Exception { exchange.getIn().setBody("Hello world"); } }
After that yaml ref is not correct anymore
We need to find a way to make export without changing source files