You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2024/08/06 05:27:00 UTC
[jira] [Resolved] (CAMEL-20994) export fails to add camel-direct component when there is a rest consumer
[ https://issues.apache.org/jira/browse/CAMEL-20994?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-20994.
---------------------------------
Resolution: Fixed
> export fails to add camel-direct component when there is a rest consumer
> ------------------------------------------------------------------------
>
> Key: CAMEL-20994
> URL: https://issues.apache.org/jira/browse/CAMEL-20994
> Project: Camel
> Issue Type: Bug
> Components: camel-jbang
> Reporter: Claudio Miranda
> Assignee: Claus Ibsen
> Priority: Minor
> Fix For: 4.8.0
>
>
> Given the following integration route.
> {code}
> camel export --gav=com.mycompany:app:1.0 --dir=test --runtime=quarkus Timer2log.java
> {code}
> There is no camel-quarkus-direct component in the generated pom.xml
> {code}
> import org.apache.camel.builder.RouteBuilder;
> public class Timer2log extends RouteBuilder {
> @Override
> public void configure() throws Exception {
> rest()
> .post("/message")
> .id("rest")
> .to("direct:foo");
> from("direct:foo")
> .log("hello");
> }
> }
> {code}
> I noticed it's related to the rest component. Replace it with timer then the export command adds the camel-quarkus-direct dependency to the pom.xml
--
This message was sent by Atlassian Jira
(v8.20.10#820010)