You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Otavio Rodolfo Piske (Jira)" <ji...@apache.org> on 2024/08/29 09:39:00 UTC
[jira] [Comment Edited] (CAMEL-21134) camel-jbang: unable to export Quarkus project due to missing CDIProvider
[ https://issues.apache.org/jira/browse/CAMEL-21134?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17877641#comment-17877641 ]
Otavio Rodolfo Piske edited comment on CAMEL-21134 at 8/29/24 9:38 AM:
-----------------------------------------------------------------------
Thanks. I tried, but I still get:
jbang -Dcamel.jbang.version=4.8.0-SNAPSHOT camel@apache/camel export --ignore-loading-error --dependency=io.quarkiverse.langchain4j:quarkus-langchain4j-core:0.16.4 --dependency=io.quarkiverse.langchain4j:quarkus-langchain4j-openai:0.16.4 --runtime=quarkus Weather.java
[jbang] Resolving dependencies...
[jbang] org.apache.camel:camel-bom:4.8.0-SNAPSHOT@pom
[jbang] org.apache.camel:camel-jbang-core:4.8.0-SNAPSHOT
[jbang] org.apache.camel.kamelets:camel-kamelets:4.7.0
[jbang] Dependencies resolved
[jbang] Building jar for CamelJBang.java...
Generating fresh run data
java.lang.IllegalStateException: Unable to locate CDIProvider
I am thinking I'm doing something wrong. Any suggestions?
Obs.: this was just after rebuilding the current code from main.
was (Author: orpiske):
Thanks. I tried, but I still get:
{{jbang -Dcamel.jbang.version=4.8.0-SNAPSHOT camel@apache/camel export --ignore-loading-error --dependency=io.quarkiverse.langchain4j:quarkus-langchain4j-core:0.16.4 --dependency=io.quarkiverse.langchain4j:quarkus-langchain4j-openai:0.16.4 --runtime=quarkus Weather.java
[jbang] Resolving dependencies...
[jbang] org.apache.camel:camel-bom:4.8.0-SNAPSHOT@pom
[jbang] org.apache.camel:camel-jbang-core:4.8.0-SNAPSHOT
[jbang] org.apache.camel.kamelets:camel-kamelets:4.7.0
[jbang] Dependencies resolved
[jbang] Building jar for CamelJBang.java...
Generating fresh run data
java.lang.IllegalStateException: Unable to locate CDIProvider}}
I am thinking I'm doing something wrong. Any suggestions?
Obs.: this was just after rebuilding the current code from main.
> camel-jbang: unable to export Quarkus project due to missing CDIProvider
> ------------------------------------------------------------------------
>
> Key: CAMEL-21134
> URL: https://issues.apache.org/jira/browse/CAMEL-21134
> Project: Camel
> Issue Type: Bug
> Components: camel-jbang
> Affects Versions: 4.7.0
> Reporter: Otavio Rodolfo Piske
> Priority: Major
> Fix For: 4.8.0
>
> Attachments: other.log
>
>
> Related to CAMEL-21133.
> Some users might be inclined to try generating the project with the correct dependencies in one shot as a way to try to work-around the problem:
> {{camel export --dependency=io.quarkiverse.langchain4j:quarkus-langchain4j-core:0.16.4 --dependency=io.quarkiverse.langchain4j:quarkus-langchain4j-openai:0.16.4 --runtime=quarkus Weather.java}}
> However, that fails with:
> {{java.lang.IllegalStateException: Unable to locate CDIProvider)}}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)