Claudio Miranda created CAMEL-20994:
---------------------------------------

             Summary: 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


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)

Reply via email to