You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Nicola Ferraro (JIRA)" <ji...@apache.org> on 2018/09/10 07:26:00 UTC

[jira] [Updated] (CAMEL-12791) Camel K: manage dependencies

     [ https://issues.apache.org/jira/browse/CAMEL-12791?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nicola Ferraro updated CAMEL-12791:
-----------------------------------
    Component/s: camel-k

> Camel K: manage dependencies
> ----------------------------
>
>                 Key: CAMEL-12791
>                 URL: https://issues.apache.org/jira/browse/CAMEL-12791
>             Project: Camel
>          Issue Type: Sub-task
>          Components: camel-k
>            Reporter: Nicola Ferraro
>            Priority: Major
>
> When the user executes "kamel run Source.java", he might be using some components not available in camel-core.
> In this case, the "kamel" script should create the resource as usual (do not put too much logic into the client), while the operator in the "Initialize" action should scan the source file to find declaration of external maven dependencies.
>  
> We can use a simplified way to declare dependencies, such as declaring them in a comment, e.g.
>  
> {code:java}
> // k-include: camel-mail
> {code}
> This way we let the user specify everything in a single file. We can switch to something better later (best if recognized by the tooling).
>  
>  
> The initializer will add "org.apache.camel:camel-mail" to the list of dependencies in the CR (custom resource).
>  
> We should enable the following ways to include dependencies:
>  * Comment in the source file
>  * kamel run --dependency camel-mail Source.java
>  * Putting it direcly in spec->dependency->items by editing the custom resource
> We should also allow to disable the auto-discovery via a flag in "spec->dependency->autoDiscovery", controlled by a "kamel --dependency-auto-discovery false" client flag.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)