jinfengnarvar opened a new issue #911: kamel --dev stuck when mvn dependencies 
has problem
URL: https://github.com/apache/camel-k/issues/911
 
 
   * Integration code:
   ```
   import org.apache.camel.builder.RouteBuilder;
   
   public class HelloJava extends RouteBuilder {
       @Override
       public void configure() throws Exception {
           from("timer:tick")
               .setBody()
                 .constant("Hello Camel K!")
               .to("log:info");
       }
   }
   ```
   
   * kamel command ran:
   ```
   kamel run -d mvn:com.google.guavax:guava:26.0-jre HelloJava.java --dev
   ```
   Note the mvn dependency has a typo 'x' in it (on purpose). After a few 
seconds, `kubectl get pods` shows the pod building this integration has 
error'ed and terminated:
   ```
   $ kubectl get pods
   ...
   camel-k-kit-blde632ijc59bk8j4bug-builder   0/1     Error       0          59s
   ```
   And the pod log shows it failed:
   ```
   $ kubectl log camel-k-kit-blde632ijc59bk8j4bug-builder 
   ...
   [INFO] 
------------------------------------------------------------------------
   [INFO] BUILD FAILURE
   [INFO] 
------------------------------------------------------------------------
   [INFO] Total time: 6.323 s
   [INFO] Finished at: 2019-08-19T18:00:13Z
   [INFO] 
------------------------------------------------------------------------
   [ERROR] Failed to execute goal on project camel-k-integration: Could not 
resolve dependencies for project 
org.apache.camel.k.integration:camel-k-integration:jar:1.0.0-M1: Could not find 
artifact com.google.guavax:guava:jar:26.0-jre in central 
(https://repo.maven.apache.org/maven2) -> [Help 1]
   [ERROR] 
   [ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
switch.
   [ERROR] Re-run Maven using the -X switch to enable full debug logging.
   [ERROR] 
   ...
   ```
   
   But now the `kamel run` cmd is stuck permanently:
   ```
   $ kamel run -d mvn:com.google.guavax:guava:26.0-jre HelloJava.java --dev
   integration "hello-java" created
   integration "hello-java" in phase Initialization
   integration "hello-java" in phase Building Kit
   
   ```

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to