scodeman opened a new issue #2776:
URL: https://github.com/apache/camel-k/issues/2776


   As per #2769 I am trying to build a local integration image and use it in 
for my integration manifest.
   I have the following IntegrationFile.java  simple java DSL example with 
modelines:
   ```java
   // camel-k: language=java
   // camel-k: 
trait=container.image=localhost:5000/integration-base-image:latest
   
   import org.apache.camel.builder.RouteBuilder;
   
   public class IntegrationFile extends RouteBuilder {
     @Override
     public void configure() throws Exception {
   
         // Write your routes here, for example:
         from("timer:java?period=1000")
           .routeId("java")
           .setBody()
             .simple("Hello Camel K from ${routeId}")
           .to("log:info");
   
     }
   }
   ```
   But it fails to local build ```kamel local build IntegrationFile.java``` 
with the following error reported
   ```
   Modeline options have been loaded from source files
   Full command: kamel local build IntegrationFile.java 
--trait=container.image=localhost:5000/integration-base-image:latest 
   Error: unknown flag: --trait
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to