Serdar Gökay created CAMEL-26116:
------------------------------------
Summary: camel-jbang export - dependency of the consumer endpoint
of a zookeeper-master: endpoint is not detected
Key: CAMEL-26116
URL: https://issues.apache.org/jira/browse/CAMEL-26116
Project: Camel
Issue Type: Improvement
Components: camel-jbang
Affects Versions: 4.23.0
Reporter: Serdar Gökay
Follow-up to CAMEL-25186, as agreed in the review of [PR
#28370|https://github.com/apache/camel/pull/28370].
CAMEL-25186 proposes resolving the delegate endpoint of a {{master:}} endpoint
during export. The {{zookeeper-master}} component wraps a consumer endpoint the
same way ({{zookeeper-master:groupName:consumerEndpointUri}}, split at the
first colon in {{MasterComponent.createEndpoint}}), so the same treatment would
apply to it.
Example route:
{noformat}
- route:
from:
uri: zookeeper-master:lock:timer:tick?period=1000
steps:
- log: "tick"
{noformat}
Observed:
* With Camel 4.23.0, {{camel export}} (camel-main runtime) adds
{{camel-zookeeper-master}} to the exported pom.xml, but not {{camel-timer}}.
* With the change from PR #28370 applied, an {{ExportTest}} case for the route
above still exports {{camel-zookeeper-master}} without {{camel-timer}}, while
the existing {{master:}} case exports both for all three runtimes.
Proposed change: extend the export-only branch in {{DownloadEndpointStrategy}}
from CAMEL-25186 to the {{zookeeper-master}} scheme, with an {{ExportTest}}
case. I'd open the PR once #28370 is merged, so both changes share one branch
shape.
_Claude Code on behalf of etzel-mes_
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)