Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kamel local build:failure while building project: exit status 1 #3307

Closed
wuzhen0808 opened this issue May 26, 2022 · 3 comments
Closed

kamel local build:failure while building project: exit status 1 #3307

wuzhen0808 opened this issue May 26, 2022 · 3 comments

Comments

@wuzhen0808
Copy link

The kamel local build command report a message without any detail.
Is there any way to see the detail log to show the progress of building flow?
Hard to step forward with just a exit code.
Following is the source code and command lines, thanks a lot.

S:~/study-kamel$ cat hello.java
// camel-k: language=java

import org.apache.camel.builder.RouteBuilder;

public class hello 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");

}
}

S:~/study-kamel$ kamel local inspect hello.java
dependencies:
camel:timer
camel:log
mvn:org.apache.camel.quarkus:camel-quarkus-java-joor-dsl

S:~/study-kamel$ kamel local build hello.java
failure while building project: exit status 1

@squakez
Copy link
Contributor

squakez commented May 26, 2022

is @OverRide a typo? I mean with uppercase R. Also, what version of kamel you're running (kamel version)?

@tadayosi
Copy link
Member

Have a look at the doc:
https://camel.apache.org/camel-k/1.9.x/running/local.html

In short, kamel local build requires at least --image option to run. I agree the message is not user-friendly. There's an issue for it: #3028

@tadayosi
Copy link
Member

Since it's already well documented, let's close it. Error messages can be polished at #3028.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants