[jira] [Resolved] (CAMEL-21719) Camel Neo4j component : transform results of similarity search into List of texts

2025-02-06 Thread Zineb Bendhiba (Jira)


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

Zineb Bendhiba resolved CAMEL-21719.

Resolution: Fixed

PR merged

> Camel Neo4j component : transform results of similarity search into List of 
> texts
> -
>
> Key: CAMEL-21719
> URL: https://issues.apache.org/jira/browse/CAMEL-21719
> Project: Camel
>  Issue Type: New Feature
>  Components: camel-ai
>Reporter: Zineb Bendhiba
>Assignee: Zineb Bendhiba
>Priority: Major
> Fix For: 4.10.0
>
>




--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (CAMEL-21719) Camel Neo4j component : transform results of similarity search into List of texts

2025-02-06 Thread Zineb Bendhiba (Jira)


[ 
https://issues.apache.org/jira/browse/CAMEL-21719?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17924417#comment-17924417
 ] 

Zineb Bendhiba commented on CAMEL-21719:


yes

> Camel Neo4j component : transform results of similarity search into List of 
> texts
> -
>
> Key: CAMEL-21719
> URL: https://issues.apache.org/jira/browse/CAMEL-21719
> Project: Camel
>  Issue Type: New Feature
>  Components: camel-ai
>Reporter: Zineb Bendhiba
>Assignee: Zineb Bendhiba
>Priority: Major
> Fix For: 4.10.0
>
>




--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Resolved] (CAMEL-21728) camel-core - Add onPrepare for Loop EIP to allow deep copy of exchange

2025-02-06 Thread Claus Ibsen (Jira)


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

Claus Ibsen resolved CAMEL-21728.
-
Resolution: Fixed

> camel-core - Add onPrepare for Loop EIP to allow deep copy of exchange
> --
>
> Key: CAMEL-21728
> URL: https://issues.apache.org/jira/browse/CAMEL-21728
> Project: Camel
>  Issue Type: Improvement
>  Components: camel-core
>Reporter: Claus Ibsen
>Assignee: Claus Ibsen
>Priority: Minor
> Fix For: 4.10.0
>
>
> Like we have in Split EIP with onPrepare - You may want to loop and then do a 
> deep copy of the exchange for each loop to ensure there are no side-effect 
> from previous loop iteration. As a copy is shallow copy by default.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (CAMEL-21618) Review documentation for the next LTS release

2025-02-06 Thread Otavio Rodolfo Piske (Jira)


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

Otavio Rodolfo Piske updated CAMEL-21618:
-
Fix Version/s: 4.10.0
   (was: 4.x)

> Review documentation for the next LTS release
> -
>
> Key: CAMEL-21618
> URL: https://issues.apache.org/jira/browse/CAMEL-21618
> Project: Camel
>  Issue Type: Task
>  Components: documentation
>Reporter: Otavio Rodolfo Piske
>Assignee: Otavio Rodolfo Piske
>Priority: Major
> Fix For: 4.10.0
>
>
> Usual ticket for documentation review. Please add any documentation to be 
> reviewed in the comments.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Resolved] (CAMEL-21618) Review documentation for the next LTS release

2025-02-06 Thread Otavio Rodolfo Piske (Jira)


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

Otavio Rodolfo Piske resolved CAMEL-21618.
--
Resolution: Fixed

Some minor fixes were applied to the changed docs. Let's close this one and 
repeat on the next LTS.

> Review documentation for the next LTS release
> -
>
> Key: CAMEL-21618
> URL: https://issues.apache.org/jira/browse/CAMEL-21618
> Project: Camel
>  Issue Type: Task
>  Components: documentation
>Reporter: Otavio Rodolfo Piske
>Assignee: Otavio Rodolfo Piske
>Priority: Major
> Fix For: 4.10.0
>
>
> Usual ticket for documentation review. Please add any documentation to be 
> reviewed in the comments.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Created] (CAMEL-21729) camel-jbang - dependency list - Add update command to change the pom.xml

2025-02-06 Thread Claus Ibsen (Jira)
Claus Ibsen created CAMEL-21729:
---

 Summary: camel-jbang - dependency list - Add update command to 
change the pom.xml
 Key: CAMEL-21729
 URL: https://issues.apache.org/jira/browse/CAMEL-21729
 Project: Camel
  Issue Type: Improvement
  Components: camel-jbang
Reporter: Claus Ibsen
 Fix For: 4.11.0


To try to update the existing pom.xml by adding/remove camel dependencies.

However its a bit tricky as as the pom may use BOM or not. And the file can be 
formatted in a user speicific way. So we either rewrite the pom as maven would 
do, or try to respect the current format, and do some search/replace magic.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (CAMEL-21729) camel-jbang - dependency list - Add update command to change the pom.xml

2025-02-06 Thread Claus Ibsen (Jira)


[ 
https://issues.apache.org/jira/browse/CAMEL-21729?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17924486#comment-17924486
 ] 

Claus Ibsen commented on CAMEL-21729:
-

We should use the dependency update command instead. Its currently for jbang 
//DEPS style in a .java file.

We can add logic to update pom.xml files too.

> camel-jbang - dependency list - Add update command to change the pom.xml
> 
>
> Key: CAMEL-21729
> URL: https://issues.apache.org/jira/browse/CAMEL-21729
> Project: Camel
>  Issue Type: Improvement
>  Components: camel-jbang
>Reporter: Claus Ibsen
>Priority: Major
> Fix For: 4.11.0
>
>
> To try to update the existing pom.xml by adding/remove camel dependencies.
> However its a bit tricky as as the pom may use BOM or not. And the file can 
> be formatted in a user speicific way. So we either rewrite the pom as maven 
> would do, or try to respect the current format, and do some search/replace 
> magic.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (CAMEL-21278) Camel-Jbang Kubernetes Plugin: clean-up to new trait model and the tests

2025-02-06 Thread Claus Ibsen (Jira)


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

Claus Ibsen updated CAMEL-21278:

Fix Version/s: 4.11.0
   (was: 4.10.0)

> Camel-Jbang Kubernetes Plugin: clean-up to new trait model and the tests
> 
>
> Key: CAMEL-21278
> URL: https://issues.apache.org/jira/browse/CAMEL-21278
> Project: Camel
>  Issue Type: Improvement
>  Components: camel-jbang
>Affects Versions: 4.x
>Reporter: Gaelle Fournier
>Assignee: Gaelle Fournier
>Priority: Major
> Fix For: 4.11.0
>
>
> This is a follow-up from https://issues.apache.org/jira/browse/CAMEL-21152.
> Clean-up identified:
>  * remove unused parameters and setters/getters
>  * add some model builder
>  * refactor the tests to improve the performance
>  * move some trait specific code from KubernetesExport to the XxxTrait class 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (CAMEL-21719) Camel Neo4j component : transform results of similarity search into List of texts

2025-02-06 Thread Claus Ibsen (Jira)


[ 
https://issues.apache.org/jira/browse/CAMEL-21719?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17924414#comment-17924414
 ] 

Claus Ibsen commented on CAMEL-21719:
-

is this work done

> Camel Neo4j component : transform results of similarity search into List of 
> texts
> -
>
> Key: CAMEL-21719
> URL: https://issues.apache.org/jira/browse/CAMEL-21719
> Project: Camel
>  Issue Type: New Feature
>  Components: camel-ai
>Reporter: Zineb Bendhiba
>Assignee: Zineb Bendhiba
>Priority: Major
> Fix For: 4.10.0
>
>




--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Resolved] (CAMEL-21726) Add OpenAI and HuggingFace Chat Models to create RAG Kameletes

2025-02-06 Thread Claus Ibsen (Jira)


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

Claus Ibsen resolved CAMEL-21726.
-
Resolution: Fixed

> Add OpenAI and HuggingFace Chat Models to create RAG Kameletes
> --
>
> Key: CAMEL-21726
> URL: https://issues.apache.org/jira/browse/CAMEL-21726
> Project: Camel
>  Issue Type: New Feature
>  Components: camel-ai
>Reporter: Zineb Bendhiba
>Assignee: Zineb Bendhiba
>Priority: Major
> Fix For: 4.10.0
>
>
> Since there was some work done for similarity search and RAG embeddings for 
> both Qdrant and Neoj camel AI components, I'd like to add some Chat models so 
> that I could work on some kamelets for naive RAG with Camel AI components
>  
> This will serve this GH issue 
> https://github.com/apache/camel-kamelets/issues/2247



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (CAMEL-21588) Pinecone: configurations exclusive in the headers are not user friendly

2025-02-06 Thread Claus Ibsen (Jira)


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

Claus Ibsen updated CAMEL-21588:

Fix Version/s: 4.11.0
   (was: 4.10.0)

> Pinecone: configurations exclusive in the headers are not user friendly
> ---
>
> Key: CAMEL-21588
> URL: https://issues.apache.org/jira/browse/CAMEL-21588
> Project: Camel
>  Issue Type: Improvement
>  Components: camel-pinecone
>Affects Versions: 4.8.2
>Reporter: Zineb Bendhiba
>Priority: Minor
> Fix For: 4.11.0
>
>
> While playing with Camel Pinecone, I realized that some properties are 
> supposed to be set only by setting headers.
> Some of those are kind of mandatory (index name, cloud region...). I was 
> using a Cloud account.
> These are the list headers that I wish they can be set as properties instead
>  
> {code:java}
> .setHeader(PineconeVectorDb.Headers.INDEX_NAME, 
> simple("{{pinecone.index-name}}"))
> .setHeader(PineconeVectorDb.Headers.COLLECTION_SIMILARITY_METRIC, 
> constant("cosine"))
> .setHeader(PineconeVectorDb.Headers.COLLECTION_DIMENSION, constant(1536)) 
> .setHeader(PineconeVectorDb.Headers.COLLECTION_CLOUD, constant("aws")) 
> .setHeader(PineconeVectorDb.Headers.COLLECTION_CLOUD_REGION, 
> simple("{{pinecone.region}}"))
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (CAMEL-21728) camel-core - Add onPrepare for Loop EIP to allow deep copy of exchange

2025-02-06 Thread Claus Ibsen (Jira)


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

Claus Ibsen updated CAMEL-21728:

Fix Version/s: 4.10.0
   (was: 4.x)

> camel-core - Add onPrepare for Loop EIP to allow deep copy of exchange
> --
>
> Key: CAMEL-21728
> URL: https://issues.apache.org/jira/browse/CAMEL-21728
> Project: Camel
>  Issue Type: Improvement
>  Components: camel-core
>Reporter: Claus Ibsen
>Assignee: Claus Ibsen
>Priority: Minor
> Fix For: 4.10.0
>
>
> Like we have in Split EIP with onPrepare - You may want to loop and then do a 
> deep copy of the exchange for each loop to ensure there are no side-effect 
> from previous loop iteration. As a copy is shallow copy by default.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Assigned] (CAMEL-21728) camel-core - Add onPrepare for Loop EIP to allow deep copy of exchange

2025-02-06 Thread Claus Ibsen (Jira)


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

Claus Ibsen reassigned CAMEL-21728:
---

Assignee: Claus Ibsen

> camel-core - Add onPrepare for Loop EIP to allow deep copy of exchange
> --
>
> Key: CAMEL-21728
> URL: https://issues.apache.org/jira/browse/CAMEL-21728
> Project: Camel
>  Issue Type: Improvement
>  Components: camel-core
>Reporter: Claus Ibsen
>Assignee: Claus Ibsen
>Priority: Minor
> Fix For: 4.x
>
>
> Like we have in Split EIP with onPrepare - You may want to loop and then do a 
> deep copy of the exchange for each loop to ensure there are no side-effect 
> from previous loop iteration. As a copy is shallow copy by default.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (CAMEL-21618) Review documentation for the next LTS release

2025-02-06 Thread Claus Ibsen (Jira)


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

Claus Ibsen updated CAMEL-21618:

Fix Version/s: 4.x
   (was: 4.10.0)

> Review documentation for the next LTS release
> -
>
> Key: CAMEL-21618
> URL: https://issues.apache.org/jira/browse/CAMEL-21618
> Project: Camel
>  Issue Type: Task
>  Components: documentation
>Reporter: Otavio Rodolfo Piske
>Assignee: Otavio Rodolfo Piske
>Priority: Major
> Fix For: 4.x
>
>
> Usual ticket for documentation review. Please add any documentation to be 
> reviewed in the comments.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (CAMEL-21636) Camel-upgrade-recipes: cover upgrading camel 4.9 to 4.10

2025-02-06 Thread Claus Ibsen (Jira)


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

Claus Ibsen updated CAMEL-21636:

Fix Version/s: 4.x
   (was: 4.10.0)

> Camel-upgrade-recipes: cover upgrading camel 4.9 to 4.10
> 
>
> Key: CAMEL-21636
> URL: https://issues.apache.org/jira/browse/CAMEL-21636
> Project: Camel
>  Issue Type: Task
>  Components: upgrade-recipes
>Reporter: Jiri Ondrusek
>Assignee: Jiri Ondrusek
>Priority: Major
> Fix For: 4.x
>
>
> Cover migrations described by [migration 
> guide|https://github.com/apache/camel/blob/main/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_10.adoc]



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (CAMEL-21707) camel-jbang: error on export command - ClassNotFoundException: org.apache.camel.kamelets.catalog.KameletsCatalog

2025-02-06 Thread Claus Ibsen (Jira)


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

Claus Ibsen updated CAMEL-21707:

Fix Version/s: 4.11.0
   (was: 4.10.0)

> camel-jbang: error on export command - ClassNotFoundException: 
> org.apache.camel.kamelets.catalog.KameletsCatalog
> 
>
> Key: CAMEL-21707
> URL: https://issues.apache.org/jira/browse/CAMEL-21707
> Project: Camel
>  Issue Type: Bug
>  Components: camel-jbang
>Affects Versions: 4.10.0
>Reporter: Marco Carletti
>Priority: Major
> Fix For: 4.11.0
>
>
> on main branch run:
> {code:none}
> mvn clean verify -pl :camel-jbang-it -Djbang-it-test 
> -Dsurefire.rerunFailingTestsCount=0 -Dit.test=ExportITCase#testExportMain
> {code}
> the stack trace is 
> {code:bash}
> command camel export --runtime=camel-main --gav=com.foo:acme:1.0-SNAPSHOT 
> --directory=/deployments/data/ad009f2e917ec failed with output WARN: modeline 
> parameter is deprecated, to be removed in the next version.
> Exporting as Camel Main project to: /deployments/data/ad009f2e917ec
>  and error [jbang] Resolving dependencies...
> [jbang]org.apache.camel:camel-jbang-core:4.10.0-SNAPSHOT
> [jbang]org.apache.camel.kamelets:camel-kamelets:4.10.0-SNAPSHOT
> [jbang]org.apache.camel:camel-bom:4.10.0-SNAPSHOT@pom
> [jbang] Dependencies resolved
> java.lang.ClassNotFoundException: 
> org.apache.camel.kamelets.catalog.KameletsCatalog
>  at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:445)
>  at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:592)
>  at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525)
>  at 
> org.apache.camel.dsl.jbang.core.commands.catalog.KameletCatalogHelper.loadKamelets(KameletCatalogHelper.java:153)
>  at 
> org.apache.camel.dsl.jbang.core.commands.catalog.KameletCatalogHelper.findKameletNames(KameletCatalogHelper.java:37)
>  at 
> org.apache.camel.dsl.jbang.core.commands.ExportBaseCommand.resolveDependencies(ExportBaseCommand.java:389)
>  at 
> org.apache.camel.dsl.jbang.core.commands.ExportCamelMain.resolveDependencies(ExportCamelMain.java:335)
>  at 
> org.apache.camel.dsl.jbang.core.commands.ExportCamelMain.export(ExportCamelMain.java:90)
>  at org.apache.camel.dsl.jbang.core.commands.Export.export(Export.java:165)
>  at org.apache.camel.dsl.jbang.core.commands.Export.export(Export.java:76)
>  at 
> org.apache.camel.dsl.jbang.core.commands.ExportBaseCommand.doCall(ExportBaseCommand.java:264)
>  at 
> org.apache.camel.dsl.jbang.core.commands.CamelCommand.call(CamelCommand.java:71)
>  at 
> org.apache.camel.dsl.jbang.core.commands.CamelCommand.call(CamelCommand.java:37)
>  at picocli.CommandLine.executeUserObject(CommandLine.java:2045)
>  at picocli.CommandLine.access$1500(CommandLine.java:148)
>  at 
> picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2465)
>  at picocli.CommandLine$RunLast.handle(CommandLine.java:2457)
>  at picocli.CommandLine$RunLast.handle(CommandLine.java:2419)
>  at 
> picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2277)
>  at picocli.CommandLine$RunLast.execute(CommandLine.java:2421)
>  at picocli.CommandLine.execute(CommandLine.java:2174)
>  at 
> org.apache.camel.dsl.jbang.core.commands.CamelJBangMain.run(CamelJBangMain.java:189)
>  at 
> org.apache.camel.dsl.jbang.core.commands.CamelJBangMain.run(CamelJBangMain.java:69)
>  at main.CamelJBang.main(CamelJBang.java:36)
> {code}
> or
> {code:bash}
> #create temp dir to export the project
> mkdir /tmp/exp && cd /tmp/exp
> #force camel jbang to use the snapshot
> jbang app install -Dcamel.jbang.version=4.10.0-SNAPSHOT 
> -Dcamel-kamelets.version=4.10.0-SNAPSHOT --force camel@apache/camel
> #run the export
> camel export --runtime=camel-main --gav=com.foo:acme:1.0-SNAPSHOT
> {code}
> even if this second method depends on the local environment and it may work



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Resolved] (CAMEL-21715) Fix camel-test-infra-common test-jar dependencies

2025-02-06 Thread Claus Ibsen (Jira)


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

Claus Ibsen resolved CAMEL-21715.
-
Resolution: Not A Bug

> Fix camel-test-infra-common test-jar dependencies
> -
>
> Key: CAMEL-21715
> URL: https://issues.apache.org/jira/browse/CAMEL-21715
> Project: Camel
>  Issue Type: Bug
>  Components: camel-test-infra
>Reporter: Christoph Deppisch
>Assignee: Christoph Deppisch
>Priority: Major
> Fix For: 4.10.0
>
>
> With https://issues.apache.org/jira/browse/CAMEL-21452 some classes in the 
> _camel-test-infra-common_ have been moved from *src/test/java* to 
> *src/main/java* so dependent modules need to switch the Maven dependency from 
> *type=test-jar* to a normal dependency. The _camel-jbang-plugin-kubernetes_ 
> is a good example it has
> {noformat}
>  
>   org.apache.camel 
>   camel-test-infra-common 
>   ${project.version} 
>   test 
>   test-jar
> {noformat}
> but it needs to remove 
> {noformat}
> test-jar{noformat}
> So we need to go through the modules that depend on _camel-test-infra-common_ 
> and see if we need test-jar + normal jar dependency in Maven POMs



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (CAMEL-21707) camel-jbang: error on export command - ClassNotFoundException: org.apache.camel.kamelets.catalog.KameletsCatalog

2025-02-06 Thread Claus Ibsen (Jira)


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

Claus Ibsen updated CAMEL-21707:

Component/s: tests

> camel-jbang: error on export command - ClassNotFoundException: 
> org.apache.camel.kamelets.catalog.KameletsCatalog
> 
>
> Key: CAMEL-21707
> URL: https://issues.apache.org/jira/browse/CAMEL-21707
> Project: Camel
>  Issue Type: Bug
>  Components: camel-jbang, tests
>Affects Versions: 4.10.0
>Reporter: Marco Carletti
>Priority: Minor
> Fix For: 4.11.0
>
>
> on main branch run:
> {code:none}
> mvn clean verify -pl :camel-jbang-it -Djbang-it-test 
> -Dsurefire.rerunFailingTestsCount=0 -Dit.test=ExportITCase#testExportMain
> {code}
> the stack trace is 
> {code:bash}
> command camel export --runtime=camel-main --gav=com.foo:acme:1.0-SNAPSHOT 
> --directory=/deployments/data/ad009f2e917ec failed with output WARN: modeline 
> parameter is deprecated, to be removed in the next version.
> Exporting as Camel Main project to: /deployments/data/ad009f2e917ec
>  and error [jbang] Resolving dependencies...
> [jbang]org.apache.camel:camel-jbang-core:4.10.0-SNAPSHOT
> [jbang]org.apache.camel.kamelets:camel-kamelets:4.10.0-SNAPSHOT
> [jbang]org.apache.camel:camel-bom:4.10.0-SNAPSHOT@pom
> [jbang] Dependencies resolved
> java.lang.ClassNotFoundException: 
> org.apache.camel.kamelets.catalog.KameletsCatalog
>  at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:445)
>  at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:592)
>  at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525)
>  at 
> org.apache.camel.dsl.jbang.core.commands.catalog.KameletCatalogHelper.loadKamelets(KameletCatalogHelper.java:153)
>  at 
> org.apache.camel.dsl.jbang.core.commands.catalog.KameletCatalogHelper.findKameletNames(KameletCatalogHelper.java:37)
>  at 
> org.apache.camel.dsl.jbang.core.commands.ExportBaseCommand.resolveDependencies(ExportBaseCommand.java:389)
>  at 
> org.apache.camel.dsl.jbang.core.commands.ExportCamelMain.resolveDependencies(ExportCamelMain.java:335)
>  at 
> org.apache.camel.dsl.jbang.core.commands.ExportCamelMain.export(ExportCamelMain.java:90)
>  at org.apache.camel.dsl.jbang.core.commands.Export.export(Export.java:165)
>  at org.apache.camel.dsl.jbang.core.commands.Export.export(Export.java:76)
>  at 
> org.apache.camel.dsl.jbang.core.commands.ExportBaseCommand.doCall(ExportBaseCommand.java:264)
>  at 
> org.apache.camel.dsl.jbang.core.commands.CamelCommand.call(CamelCommand.java:71)
>  at 
> org.apache.camel.dsl.jbang.core.commands.CamelCommand.call(CamelCommand.java:37)
>  at picocli.CommandLine.executeUserObject(CommandLine.java:2045)
>  at picocli.CommandLine.access$1500(CommandLine.java:148)
>  at 
> picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2465)
>  at picocli.CommandLine$RunLast.handle(CommandLine.java:2457)
>  at picocli.CommandLine$RunLast.handle(CommandLine.java:2419)
>  at 
> picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2277)
>  at picocli.CommandLine$RunLast.execute(CommandLine.java:2421)
>  at picocli.CommandLine.execute(CommandLine.java:2174)
>  at 
> org.apache.camel.dsl.jbang.core.commands.CamelJBangMain.run(CamelJBangMain.java:189)
>  at 
> org.apache.camel.dsl.jbang.core.commands.CamelJBangMain.run(CamelJBangMain.java:69)
>  at main.CamelJBang.main(CamelJBang.java:36)
> {code}
> or
> {code:bash}
> #create temp dir to export the project
> mkdir /tmp/exp && cd /tmp/exp
> #force camel jbang to use the snapshot
> jbang app install -Dcamel.jbang.version=4.10.0-SNAPSHOT 
> -Dcamel-kamelets.version=4.10.0-SNAPSHOT --force camel@apache/camel
> #run the export
> camel export --runtime=camel-main --gav=com.foo:acme:1.0-SNAPSHOT
> {code}
> even if this second method depends on the local environment and it may work



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (CAMEL-21707) camel-jbang: error on export command - ClassNotFoundException: org.apache.camel.kamelets.catalog.KameletsCatalog

2025-02-06 Thread Claus Ibsen (Jira)


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

Claus Ibsen updated CAMEL-21707:

Priority: Minor  (was: Major)

> camel-jbang: error on export command - ClassNotFoundException: 
> org.apache.camel.kamelets.catalog.KameletsCatalog
> 
>
> Key: CAMEL-21707
> URL: https://issues.apache.org/jira/browse/CAMEL-21707
> Project: Camel
>  Issue Type: Bug
>  Components: camel-jbang
>Affects Versions: 4.10.0
>Reporter: Marco Carletti
>Priority: Minor
> Fix For: 4.11.0
>
>
> on main branch run:
> {code:none}
> mvn clean verify -pl :camel-jbang-it -Djbang-it-test 
> -Dsurefire.rerunFailingTestsCount=0 -Dit.test=ExportITCase#testExportMain
> {code}
> the stack trace is 
> {code:bash}
> command camel export --runtime=camel-main --gav=com.foo:acme:1.0-SNAPSHOT 
> --directory=/deployments/data/ad009f2e917ec failed with output WARN: modeline 
> parameter is deprecated, to be removed in the next version.
> Exporting as Camel Main project to: /deployments/data/ad009f2e917ec
>  and error [jbang] Resolving dependencies...
> [jbang]org.apache.camel:camel-jbang-core:4.10.0-SNAPSHOT
> [jbang]org.apache.camel.kamelets:camel-kamelets:4.10.0-SNAPSHOT
> [jbang]org.apache.camel:camel-bom:4.10.0-SNAPSHOT@pom
> [jbang] Dependencies resolved
> java.lang.ClassNotFoundException: 
> org.apache.camel.kamelets.catalog.KameletsCatalog
>  at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:445)
>  at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:592)
>  at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525)
>  at 
> org.apache.camel.dsl.jbang.core.commands.catalog.KameletCatalogHelper.loadKamelets(KameletCatalogHelper.java:153)
>  at 
> org.apache.camel.dsl.jbang.core.commands.catalog.KameletCatalogHelper.findKameletNames(KameletCatalogHelper.java:37)
>  at 
> org.apache.camel.dsl.jbang.core.commands.ExportBaseCommand.resolveDependencies(ExportBaseCommand.java:389)
>  at 
> org.apache.camel.dsl.jbang.core.commands.ExportCamelMain.resolveDependencies(ExportCamelMain.java:335)
>  at 
> org.apache.camel.dsl.jbang.core.commands.ExportCamelMain.export(ExportCamelMain.java:90)
>  at org.apache.camel.dsl.jbang.core.commands.Export.export(Export.java:165)
>  at org.apache.camel.dsl.jbang.core.commands.Export.export(Export.java:76)
>  at 
> org.apache.camel.dsl.jbang.core.commands.ExportBaseCommand.doCall(ExportBaseCommand.java:264)
>  at 
> org.apache.camel.dsl.jbang.core.commands.CamelCommand.call(CamelCommand.java:71)
>  at 
> org.apache.camel.dsl.jbang.core.commands.CamelCommand.call(CamelCommand.java:37)
>  at picocli.CommandLine.executeUserObject(CommandLine.java:2045)
>  at picocli.CommandLine.access$1500(CommandLine.java:148)
>  at 
> picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2465)
>  at picocli.CommandLine$RunLast.handle(CommandLine.java:2457)
>  at picocli.CommandLine$RunLast.handle(CommandLine.java:2419)
>  at 
> picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2277)
>  at picocli.CommandLine$RunLast.execute(CommandLine.java:2421)
>  at picocli.CommandLine.execute(CommandLine.java:2174)
>  at 
> org.apache.camel.dsl.jbang.core.commands.CamelJBangMain.run(CamelJBangMain.java:189)
>  at 
> org.apache.camel.dsl.jbang.core.commands.CamelJBangMain.run(CamelJBangMain.java:69)
>  at main.CamelJBang.main(CamelJBang.java:36)
> {code}
> or
> {code:bash}
> #create temp dir to export the project
> mkdir /tmp/exp && cd /tmp/exp
> #force camel jbang to use the snapshot
> jbang app install -Dcamel.jbang.version=4.10.0-SNAPSHOT 
> -Dcamel-kamelets.version=4.10.0-SNAPSHOT --force camel@apache/camel
> #run the export
> camel export --runtime=camel-main --gav=com.foo:acme:1.0-SNAPSHOT
> {code}
> even if this second method depends on the local environment and it may work



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (CAMEL-21730) JBang export cannot validate route that depends on copied resources

2025-02-06 Thread Claus Ibsen (Jira)


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

Claus Ibsen updated CAMEL-21730:

Priority: Minor  (was: Major)

> JBang export cannot validate route that depends on copied resources
> ---
>
> Key: CAMEL-21730
> URL: https://issues.apache.org/jira/browse/CAMEL-21730
> Project: Camel
>  Issue Type: Bug
>  Components: camel-jbang
>Reporter: Thomas Diesler
>Priority: Minor
>
> With a route like this ...
> {code}
> - route:
> from:
>   uri: "platform-http:/"
>   steps:
> - setBody:
> simple: "resource:classpath:META-INF/resources/index.html"
> {code}
> on export I get ...
> {code}
> org.apache.camel.FailedToCreateRouteException: Failed to create route route1 
> at: >>> SetBody[simple{resource:classpath:META-INF/resources/index.html}] <<< 
> in route: Route(route1)[From[platform-http:/] -> [SetBody[simple{resou... 
> because of Illegal syntax: resource:classpath:META-INF/resources/index.html
>   at 
> org.apache.camel.reifier.RouteReifier.doCreateRoute(RouteReifier.java:235)
>   at 
> org.apache.camel.reifier.RouteReifier.createRoute(RouteReifier.java:86)
>   at 
> org.apache.camel.impl.DefaultModelReifierFactory.createRoute(DefaultModelReifierFactory.java:49)
>   at 
> org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:736)
>   at 
> org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:597)
>   at 
> org.apache.camel.impl.engine.AbstractCamelContext.doInit(AbstractCamelContext.java:2457)
>   at 
> org.apache.camel.support.service.BaseService.init(BaseService.java:85)
>   at 
> org.apache.camel.impl.engine.AbstractCamelContext.init(AbstractCamelContext.java:2087)
>   at 
> org.apache.camel.support.service.BaseService.start(BaseService.java:115)
>   at 
> org.apache.camel.impl.engine.AbstractCamelContext.start(AbstractCamelContext.java:2106)
>   at 
> org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:211)
>   at org.apache.camel.main.KameletMain.doStart(KameletMain.java:384)
>   at 
> org.apache.camel.support.service.BaseService.start(BaseService.java:123)
>   at 
> org.apache.camel.dsl.jbang.core.commands.Run.runKameletMain(Run.java:1447)
>   at org.apache.camel.dsl.jbang.core.commands.Run.run(Run.java:908)
>   at org.apache.camel.dsl.jbang.core.commands.Run.runExport(Run.java:352)
>   at 
> org.apache.camel.dsl.jbang.core.commands.ExportBaseCommand.runSilently(ExportBaseCommand.java:344)
>   at 
> org.apache.camel.dsl.jbang.core.commands.ExportCamelMain.export(ExportCamelMain.java:66)
> {code}
> The issue seems to be that export is calling KameletMain.doStart() by which 
> the referenced resources have not been copied.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (CAMEL-21730) JBang export cannot validate route that depends on copied resources

2025-02-06 Thread Claus Ibsen (Jira)


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

Claus Ibsen updated CAMEL-21730:

Fix Version/s: 4.11.0

> JBang export cannot validate route that depends on copied resources
> ---
>
> Key: CAMEL-21730
> URL: https://issues.apache.org/jira/browse/CAMEL-21730
> Project: Camel
>  Issue Type: Bug
>  Components: camel-jbang
>Reporter: Thomas Diesler
>Priority: Minor
> Fix For: 4.11.0
>
>
> With a route like this ...
> {code}
> - route:
> from:
>   uri: "platform-http:/"
>   steps:
> - setBody:
> simple: "resource:classpath:META-INF/resources/index.html"
> {code}
> on export I get ...
> {code}
> org.apache.camel.FailedToCreateRouteException: Failed to create route route1 
> at: >>> SetBody[simple{resource:classpath:META-INF/resources/index.html}] <<< 
> in route: Route(route1)[From[platform-http:/] -> [SetBody[simple{resou... 
> because of Illegal syntax: resource:classpath:META-INF/resources/index.html
>   at 
> org.apache.camel.reifier.RouteReifier.doCreateRoute(RouteReifier.java:235)
>   at 
> org.apache.camel.reifier.RouteReifier.createRoute(RouteReifier.java:86)
>   at 
> org.apache.camel.impl.DefaultModelReifierFactory.createRoute(DefaultModelReifierFactory.java:49)
>   at 
> org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:736)
>   at 
> org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:597)
>   at 
> org.apache.camel.impl.engine.AbstractCamelContext.doInit(AbstractCamelContext.java:2457)
>   at 
> org.apache.camel.support.service.BaseService.init(BaseService.java:85)
>   at 
> org.apache.camel.impl.engine.AbstractCamelContext.init(AbstractCamelContext.java:2087)
>   at 
> org.apache.camel.support.service.BaseService.start(BaseService.java:115)
>   at 
> org.apache.camel.impl.engine.AbstractCamelContext.start(AbstractCamelContext.java:2106)
>   at 
> org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:211)
>   at org.apache.camel.main.KameletMain.doStart(KameletMain.java:384)
>   at 
> org.apache.camel.support.service.BaseService.start(BaseService.java:123)
>   at 
> org.apache.camel.dsl.jbang.core.commands.Run.runKameletMain(Run.java:1447)
>   at org.apache.camel.dsl.jbang.core.commands.Run.run(Run.java:908)
>   at org.apache.camel.dsl.jbang.core.commands.Run.runExport(Run.java:352)
>   at 
> org.apache.camel.dsl.jbang.core.commands.ExportBaseCommand.runSilently(ExportBaseCommand.java:344)
>   at 
> org.apache.camel.dsl.jbang.core.commands.ExportCamelMain.export(ExportCamelMain.java:66)
> {code}
> The issue seems to be that export is calling KameletMain.doStart() by which 
> the referenced resources have not been copied.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Assigned] (CAMEL-21729) camel-jbang - dependency list - Add update command to change the pom.xml

2025-02-06 Thread Claus Ibsen (Jira)


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

Claus Ibsen reassigned CAMEL-21729:
---

Assignee: Claus Ibsen

> camel-jbang - dependency list - Add update command to change the pom.xml
> 
>
> Key: CAMEL-21729
> URL: https://issues.apache.org/jira/browse/CAMEL-21729
> Project: Camel
>  Issue Type: Improvement
>  Components: camel-jbang
>Reporter: Claus Ibsen
>Assignee: Claus Ibsen
>Priority: Major
> Fix For: 4.11.0
>
>
> To try to update the existing pom.xml by adding/remove camel dependencies.
> However its a bit tricky as as the pom may use BOM or not. And the file can 
> be formatted in a user speicific way. So we either rewrite the pom as maven 
> would do, or try to respect the current format, and do some search/replace 
> magic.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (CAMEL-21729) camel-jbang - dependency list - Add update command to change the pom.xml

2025-02-06 Thread Claus Ibsen (Jira)


[ 
https://issues.apache.org/jira/browse/CAMEL-21729?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17924572#comment-17924572
 ] 

Claus Ibsen commented on CAMEL-21729:
-

The `–source` can be a file so it works like the other commands

> camel-jbang - dependency list - Add update command to change the pom.xml
> 
>
> Key: CAMEL-21729
> URL: https://issues.apache.org/jira/browse/CAMEL-21729
> Project: Camel
>  Issue Type: Improvement
>  Components: camel-jbang
>Reporter: Claus Ibsen
>Assignee: Claus Ibsen
>Priority: Major
> Fix For: 4.11.0
>
>
> To try to update the existing pom.xml by adding/remove camel dependencies.
> However its a bit tricky as as the pom may use BOM or not. And the file can 
> be formatted in a user speicific way. So we either rewrite the pom as maven 
> would do, or try to respect the current format, and do some search/replace 
> magic.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (CAMEL-21730) JBang export cannot validate route that depends on copied resources

2025-02-06 Thread Thomas Diesler (Jira)


[ 
https://issues.apache.org/jira/browse/CAMEL-21730?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17924780#comment-17924780
 ] 

Thomas Diesler commented on CAMEL-21730:


Please remind me, why is it running the route with KameletMain? Is this for 
anything else, but route validation?
Perhaps it needs to be done after the resource copy phase.

> JBang export cannot validate route that depends on copied resources
> ---
>
> Key: CAMEL-21730
> URL: https://issues.apache.org/jira/browse/CAMEL-21730
> Project: Camel
>  Issue Type: Bug
>  Components: camel-jbang
>Reporter: Thomas Diesler
>Assignee: Thomas Diesler
>Priority: Minor
> Fix For: 4.11.0
>
>
> With a route like this ...
> {code}
> - route:
> from:
>   uri: "platform-http:/"
>   steps:
> - setBody:
> simple: "resource:classpath:META-INF/resources/index.html"
> {code}
> on export I get ...
> {code}
> org.apache.camel.FailedToCreateRouteException: Failed to create route route1 
> at: >>> SetBody[simple{resource:classpath:META-INF/resources/index.html}] <<< 
> in route: Route(route1)[From[platform-http:/] -> [SetBody[simple{resou... 
> because of Illegal syntax: resource:classpath:META-INF/resources/index.html
>   at 
> org.apache.camel.reifier.RouteReifier.doCreateRoute(RouteReifier.java:235)
>   at 
> org.apache.camel.reifier.RouteReifier.createRoute(RouteReifier.java:86)
>   at 
> org.apache.camel.impl.DefaultModelReifierFactory.createRoute(DefaultModelReifierFactory.java:49)
>   at 
> org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:736)
>   at 
> org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:597)
>   at 
> org.apache.camel.impl.engine.AbstractCamelContext.doInit(AbstractCamelContext.java:2457)
>   at 
> org.apache.camel.support.service.BaseService.init(BaseService.java:85)
>   at 
> org.apache.camel.impl.engine.AbstractCamelContext.init(AbstractCamelContext.java:2087)
>   at 
> org.apache.camel.support.service.BaseService.start(BaseService.java:115)
>   at 
> org.apache.camel.impl.engine.AbstractCamelContext.start(AbstractCamelContext.java:2106)
>   at 
> org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:211)
>   at org.apache.camel.main.KameletMain.doStart(KameletMain.java:384)
>   at 
> org.apache.camel.support.service.BaseService.start(BaseService.java:123)
>   at 
> org.apache.camel.dsl.jbang.core.commands.Run.runKameletMain(Run.java:1447)
>   at org.apache.camel.dsl.jbang.core.commands.Run.run(Run.java:908)
>   at org.apache.camel.dsl.jbang.core.commands.Run.runExport(Run.java:352)
>   at 
> org.apache.camel.dsl.jbang.core.commands.ExportBaseCommand.runSilently(ExportBaseCommand.java:344)
>   at 
> org.apache.camel.dsl.jbang.core.commands.ExportCamelMain.export(ExportCamelMain.java:66)
> {code}
> The issue seems to be that export is calling KameletMain.doStart() by which 
> the referenced resources have not been copied.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Assigned] (CAMEL-21730) JBang export cannot validate route that depends on copied resources

2025-02-06 Thread Thomas Diesler (Jira)


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

Thomas Diesler reassigned CAMEL-21730:
--

Assignee: Thomas Diesler

> JBang export cannot validate route that depends on copied resources
> ---
>
> Key: CAMEL-21730
> URL: https://issues.apache.org/jira/browse/CAMEL-21730
> Project: Camel
>  Issue Type: Bug
>  Components: camel-jbang
>Reporter: Thomas Diesler
>Assignee: Thomas Diesler
>Priority: Minor
> Fix For: 4.11.0
>
>
> With a route like this ...
> {code}
> - route:
> from:
>   uri: "platform-http:/"
>   steps:
> - setBody:
> simple: "resource:classpath:META-INF/resources/index.html"
> {code}
> on export I get ...
> {code}
> org.apache.camel.FailedToCreateRouteException: Failed to create route route1 
> at: >>> SetBody[simple{resource:classpath:META-INF/resources/index.html}] <<< 
> in route: Route(route1)[From[platform-http:/] -> [SetBody[simple{resou... 
> because of Illegal syntax: resource:classpath:META-INF/resources/index.html
>   at 
> org.apache.camel.reifier.RouteReifier.doCreateRoute(RouteReifier.java:235)
>   at 
> org.apache.camel.reifier.RouteReifier.createRoute(RouteReifier.java:86)
>   at 
> org.apache.camel.impl.DefaultModelReifierFactory.createRoute(DefaultModelReifierFactory.java:49)
>   at 
> org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:736)
>   at 
> org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:597)
>   at 
> org.apache.camel.impl.engine.AbstractCamelContext.doInit(AbstractCamelContext.java:2457)
>   at 
> org.apache.camel.support.service.BaseService.init(BaseService.java:85)
>   at 
> org.apache.camel.impl.engine.AbstractCamelContext.init(AbstractCamelContext.java:2087)
>   at 
> org.apache.camel.support.service.BaseService.start(BaseService.java:115)
>   at 
> org.apache.camel.impl.engine.AbstractCamelContext.start(AbstractCamelContext.java:2106)
>   at 
> org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:211)
>   at org.apache.camel.main.KameletMain.doStart(KameletMain.java:384)
>   at 
> org.apache.camel.support.service.BaseService.start(BaseService.java:123)
>   at 
> org.apache.camel.dsl.jbang.core.commands.Run.runKameletMain(Run.java:1447)
>   at org.apache.camel.dsl.jbang.core.commands.Run.run(Run.java:908)
>   at org.apache.camel.dsl.jbang.core.commands.Run.runExport(Run.java:352)
>   at 
> org.apache.camel.dsl.jbang.core.commands.ExportBaseCommand.runSilently(ExportBaseCommand.java:344)
>   at 
> org.apache.camel.dsl.jbang.core.commands.ExportCamelMain.export(ExportCamelMain.java:66)
> {code}
> The issue seems to be that export is calling KameletMain.doStart() by which 
> the referenced resources have not been copied.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Created] (CAMEL-21730) camel-jbang: Export cannot validate route that depends on copied resources

2025-02-06 Thread Thomas Diesler (Jira)
Thomas Diesler created CAMEL-21730:
--

 Summary: camel-jbang: Export cannot validate route that depends on 
copied resources
 Key: CAMEL-21730
 URL: https://issues.apache.org/jira/browse/CAMEL-21730
 Project: Camel
  Issue Type: Bug
  Components: camel-jbang
Reporter: Thomas Diesler


With a route like this ...

{code}
- route:
from:
  uri: "platform-http:/"
  steps:
- setBody:
simple: "resource:classpath:META-INF/resources/index.html"
{code}

on export I get ...

{code}
org.apache.camel.FailedToCreateRouteException: Failed to create route route1 
at: >>> SetBody[simple{resource:classpath:META-INF/resources/index.html}] <<< 
in route: Route(route1)[From[platform-http:/] -> [SetBody[simple{resou... 
because of Illegal syntax: resource:classpath:META-INF/resources/index.html
at 
org.apache.camel.reifier.RouteReifier.doCreateRoute(RouteReifier.java:235)
at 
org.apache.camel.reifier.RouteReifier.createRoute(RouteReifier.java:86)
at 
org.apache.camel.impl.DefaultModelReifierFactory.createRoute(DefaultModelReifierFactory.java:49)
at 
org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:736)
at 
org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:597)
at 
org.apache.camel.impl.engine.AbstractCamelContext.doInit(AbstractCamelContext.java:2457)
at 
org.apache.camel.support.service.BaseService.init(BaseService.java:85)
at 
org.apache.camel.impl.engine.AbstractCamelContext.init(AbstractCamelContext.java:2087)
at 
org.apache.camel.support.service.BaseService.start(BaseService.java:115)
at 
org.apache.camel.impl.engine.AbstractCamelContext.start(AbstractCamelContext.java:2106)
at 
org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:211)
at org.apache.camel.main.KameletMain.doStart(KameletMain.java:384)
at 
org.apache.camel.support.service.BaseService.start(BaseService.java:123)
at 
org.apache.camel.dsl.jbang.core.commands.Run.runKameletMain(Run.java:1447)
at org.apache.camel.dsl.jbang.core.commands.Run.run(Run.java:908)
at org.apache.camel.dsl.jbang.core.commands.Run.runExport(Run.java:352)
at 
org.apache.camel.dsl.jbang.core.commands.ExportBaseCommand.runSilently(ExportBaseCommand.java:344)
at 
org.apache.camel.dsl.jbang.core.commands.ExportCamelMain.export(ExportCamelMain.java:66)
{code}

The issue seems to be that export is calling KameletMain.doStart() by which the 
referenced resources have not been copied.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (CAMEL-21730) JBang export cannot validate route that depends on copied resources

2025-02-06 Thread Thomas Diesler (Jira)


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

Thomas Diesler updated CAMEL-21730:
---
Summary: JBang export cannot validate route that depends on copied 
resources  (was: camel-jbang: Export cannot validate route that depends on 
copied resources)

> JBang export cannot validate route that depends on copied resources
> ---
>
> Key: CAMEL-21730
> URL: https://issues.apache.org/jira/browse/CAMEL-21730
> Project: Camel
>  Issue Type: Bug
>  Components: camel-jbang
>Reporter: Thomas Diesler
>Priority: Major
>
> With a route like this ...
> {code}
> - route:
> from:
>   uri: "platform-http:/"
>   steps:
> - setBody:
> simple: "resource:classpath:META-INF/resources/index.html"
> {code}
> on export I get ...
> {code}
> org.apache.camel.FailedToCreateRouteException: Failed to create route route1 
> at: >>> SetBody[simple{resource:classpath:META-INF/resources/index.html}] <<< 
> in route: Route(route1)[From[platform-http:/] -> [SetBody[simple{resou... 
> because of Illegal syntax: resource:classpath:META-INF/resources/index.html
>   at 
> org.apache.camel.reifier.RouteReifier.doCreateRoute(RouteReifier.java:235)
>   at 
> org.apache.camel.reifier.RouteReifier.createRoute(RouteReifier.java:86)
>   at 
> org.apache.camel.impl.DefaultModelReifierFactory.createRoute(DefaultModelReifierFactory.java:49)
>   at 
> org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:736)
>   at 
> org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:597)
>   at 
> org.apache.camel.impl.engine.AbstractCamelContext.doInit(AbstractCamelContext.java:2457)
>   at 
> org.apache.camel.support.service.BaseService.init(BaseService.java:85)
>   at 
> org.apache.camel.impl.engine.AbstractCamelContext.init(AbstractCamelContext.java:2087)
>   at 
> org.apache.camel.support.service.BaseService.start(BaseService.java:115)
>   at 
> org.apache.camel.impl.engine.AbstractCamelContext.start(AbstractCamelContext.java:2106)
>   at 
> org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:211)
>   at org.apache.camel.main.KameletMain.doStart(KameletMain.java:384)
>   at 
> org.apache.camel.support.service.BaseService.start(BaseService.java:123)
>   at 
> org.apache.camel.dsl.jbang.core.commands.Run.runKameletMain(Run.java:1447)
>   at org.apache.camel.dsl.jbang.core.commands.Run.run(Run.java:908)
>   at org.apache.camel.dsl.jbang.core.commands.Run.runExport(Run.java:352)
>   at 
> org.apache.camel.dsl.jbang.core.commands.ExportBaseCommand.runSilently(ExportBaseCommand.java:344)
>   at 
> org.apache.camel.dsl.jbang.core.commands.ExportCamelMain.export(ExportCamelMain.java:66)
> {code}
> The issue seems to be that export is calling KameletMain.doStart() by which 
> the referenced resources have not been copied.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)