-
Notifications
You must be signed in to change notification settings - Fork 71
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
Documentation. Can Kamelet pull dependencies from private artifactory? #1205
Comments
private artifactory is not supported as of today. Depedencies could include beans and processors |
Thank you @oscerd Could you provide an example of dependency defined through the Kamelet, so that beans and processors are automatically bound to the registry?
and a
The application defines the route-
However, once we add How can such a problem be fixed, so that dependency is defined through the Kamelet? I will be glad to create a pull request in case such an issue can be resolved |
I think you should add the dependency as modeling. Cc @davsclaus |
What Camel version do you use? And this is running via camel-jbang / camel-kamelet-main and NOT camel-k ? Adding to the kamelet as you have via
should allow camel-kamelet-main to detect this and download it, however we have switched to a better maven downloader for the upcoming 3.20.0 release. So you can try using a -SNAPSHOT for that version |
And in 3.20, then camel download standard maven approach via your .m2/settings.xml file (and what else maven has). You can also set explicit repo On kamelet main you can call the setRepos method. Its a URL for custom maven repo. |
Thank you @davsclaus
Just to clarify, there is no issue for
The problem is for
The above issue goes away though in case dependency is explicitly added to the classpath (so no download happens for it) I've tried the version |
Okay so scanning kamelet-main downloaded JARs via Its potentially a little bit difficult as downloads can happen later than the first scanning, and maybe its a bit "too magic". |
I can imagine the mechanism like
as the downloading happens before the Kametet runs, but the question is how to force The line
doesn't have an effect |
you need to create the clazz instance via camel and not plain java - see injector on camel context |
I created a ticket about scanning downloaded JARs |
Thank you a lot, @davsclaus, the injector helped
Could you also clarify, is such approach, when dependency is defined through the Kamelet, actually the way how it has to work once deployed to My goal with |
Camel K is not able to do all of this that camel-kamelet-main can do. You can use camel-jbang and its 'export' command to export to camel-quarkus (what camel-k runs on top of) as a regular maven based project and deploy to k8s as a standard quarkus project. For Camel K "benefits" then there is its website: https://camel.apache.org/camel-k/1.11.x/. And its better to ask on camel-k zulip chat room or user mailing list instead of issue tracker. Closing this ticket |
Documentation provides an example of dependencies declaration
Couple of questions though,
The text was updated successfully, but these errors were encountered: