Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
3.21.0, 4.0.0
-
None
-
Unknown
Description
When using Camel JBang users need to provide several command line settings in order to set camel-kamelets version in a consistent way.
Just using --kamelets-version property does not help as camel-kamelets-utils will still use a different default version
jbang camel@apache/camel dependency list some-kamelet-binding.yaml --kamelets-version 4.0.0-SNAPSHOT org.apache.camel:camel-main:4.0.0 org.apache.camel:camel-kamelet:4.0.0 ... org.apache.camel.kamelets:camel-kamelets-utils:4.0.0-RC1 org.apache.camel.kamelets:camel-kamelets:4.0.0-SNAPSHOT
The list of dependencies still uses 4.0.0-RC1 for camel-kamelets-utils library.
Setting camel-kamelets.version system property on Camel JBang does also not help as the list of dependencies is still inconsistent
jbang -Dcamel-kamelets.version=4.0.0-SNAPSHOT camel@apache/camel dependency list some-kamelet-binding.yaml org.apache.camel:camel-main:4.0.0 org.apache.camel:camel-kamelet:4.0.0 ... org.apache.camel.kamelets:camel-kamelets-utils:4.0.0-SNAPSHOT org.apache.camel.kamelets:camel-kamelets:4.0.0-RC1
Now it is camel-kamelets library that uses the wrong version 4.0.0-RC1
The only thing that helps is setting both settings camel-kamelets.version and --kamelets-version
jbang -Dcamel-kamelets.version=4.0.0-SNAPSHOT camel@apache/camel dependency list some-kamelet-binding.yaml --kamelets-version 4.0.0-SNAPSHOT org.apache.camel:camel-main:4.0.0 org.apache.camel:camel-kamelet:4.0.0 ... org.apache.camel.kamelets:camel-kamelets-utils:4.0.0-SNAPSHOT org.apache.camel.kamelets:camel-kamelets:4.0.0-SNAPSHOT
We need to set kamelets versions consistently when using Camel JBang. Also I have noticed that --kamelets-version setting is not available for the run command in Camel JBang. I think we should add this
Attachments
Issue Links
- links to