You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2020/06/18 17:53:52 UTC

[GitHub] [camel-k] doru1004 opened a new issue #1546: Adding dependencies on external packages

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


   Let's say I have a GitHub repo with the third party code and I want to add is a dependency since kamel run is complaining that it can't find the package.
   
   Without kamel, what I do is clone the repo then call mvn install and then add the dependency in the pom.xml in the usual way. How would I do proceed in the kamel run case?


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [camel-k] lburgazzoli commented on issue #1546: Adding dependencies on external packages

Posted by GitBox <gi...@apache.org>.
lburgazzoli commented on issue #1546:
URL: https://github.com/apache/camel-k/issues/1546#issuecomment-646292931


   >
   > kamel run -d github:apache/camel <path to my java file>
   >
   
   yes
   
   


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [camel-k] doru1004 commented on issue #1546: Adding dependencies on external packages

Posted by GitBox <gi...@apache.org>.
doru1004 commented on issue #1546:
URL: https://github.com/apache/camel-k/issues/1546#issuecomment-646296555


   I tried this:
   
   ```
   kamel run -d github:$user/$repo path/to/KafkaProducer.java
   ```
   
   And the builder errored:
   
   ```
   camel-k-kit-brlt2h4evfv6ukf4201g-builder   0/1     Init:Error   0          9s
   ```
   
   ```
   > kubectl logs camel-k-kit-brlt2h4evfv6ukf4201g-builder
   Error from server (BadRequest): container "buildah" in pod "camel-k-kit-brlt2h4evfv6ukf4201g-builder" is waiting to start: PodInitializing
   ```
   
   Is there a way to get more information about the failure?


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [camel-k] doru1004 commented on issue #1546: Adding dependencies on external packages

Posted by GitBox <gi...@apache.org>.
doru1004 commented on issue #1546:
URL: https://github.com/apache/camel-k/issues/1546#issuecomment-649030960


   I have managed to get my example to work so I'm closing this.


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [camel-k] lburgazzoli commented on issue #1546: Adding dependencies on external packages

Posted by GitBox <gi...@apache.org>.
lburgazzoli commented on issue #1546:
URL: https://github.com/apache/camel-k/issues/1546#issuecomment-646228171


   you can use a special syntax that allow to leverage jitpack:
   
       kamel run -d github:$user/$repo
   
   


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [camel-k] doru1004 commented on issue #1546: Adding dependencies on external packages

Posted by GitBox <gi...@apache.org>.
doru1004 commented on issue #1546:
URL: https://github.com/apache/camel-k/issues/1546#issuecomment-646291580


   Looks like I have managed to get the latest version of Kamel to work (build from source with latest master). I might be able to actually use your initial suggestion:
   
   ```
   kamel run -d github:$user/$repo
   ```
   
   The project Github repo path is similar to this: `https://github.com/apache/camel`
   
   What is the precise `-d` parameter I need to construct for that? Is it this:
   
   ```
   kamel run -d github:apache/camel <path to my java file>
   ```
   
   ?
   


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [camel-k] doru1004 commented on issue #1546: Adding dependencies on external packages

Posted by GitBox <gi...@apache.org>.
doru1004 commented on issue #1546:
URL: https://github.com/apache/camel-k/issues/1546#issuecomment-646780392


   Can you give me an example of a GitHub dependency that you have personally tried and it worked for you? I'm trying to pass dependencies via -d that are unrelated to my example and all I am getting is the error above in the builder.


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [camel-k] doru1004 commented on issue #1546: Adding dependencies on external packages

Posted by GitBox <gi...@apache.org>.
doru1004 commented on issue #1546:
URL: https://github.com/apache/camel-k/issues/1546#issuecomment-646245074


   As an example, let's assume that the repo I want to install is this one:
   
   ```
   https://github.com/apache/camel
   ```
   
   What would be the command you have in mind? I'm not sure I understand the steps you suggested.


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [camel-k] lburgazzoli commented on issue #1546: Adding dependencies on external packages

Posted by GitBox <gi...@apache.org>.
lburgazzoli commented on issue #1546:
URL: https://github.com/apache/camel-k/issues/1546#issuecomment-646242502


   you can do the same without the special syntax, you should follow the instructions on the jitpack site so:
   - add a maven repo
   - use the jitpack syntax


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [camel-k] doru1004 closed issue #1546: Adding dependencies on external packages

Posted by GitBox <gi...@apache.org>.
doru1004 closed issue #1546:
URL: https://github.com/apache/camel-k/issues/1546


   


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [camel-k] doru1004 commented on issue #1546: Adding dependencies on external packages

Posted by GitBox <gi...@apache.org>.
doru1004 commented on issue #1546:
URL: https://github.com/apache/camel-k/issues/1546#issuecomment-646239451


   I see that this works only with version 1.0.0 and I'm using RC2. I have another issue opened of what happens when I use version 1.0.0: https://github.com/apache/camel-k/issues/1542
   


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [camel-k] doru1004 commented on issue #1546: Adding dependencies on external packages

Posted by GitBox <gi...@apache.org>.
doru1004 commented on issue #1546:
URL: https://github.com/apache/camel-k/issues/1546#issuecomment-646769221


   Any way to get more feedback as to what goes on during the building process? 


----------------------------------------------------------------
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:
users@infra.apache.org