Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-20994

export fails to add camel-direct component when there is a rest consumer

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 4.8.0
    • camel-jbang
    • None
    • Unknown

    Description

      Given the following integration route.

      camel export --gav=com.mycompany:app:1.0 --dir=test --runtime=quarkus Timer2log.java
      

      There is no camel-quarkus-direct component in the generated pom.xml

      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");
          }
      }
      
      

      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

      Attachments

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              claudio4j Claudio Miranda
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: