如何从 Apache Karaf 中删除 camel 版本?

How to remove a version of camel from Apache Karaf?

Apache Karaf 中有 camel 版本 2.15.0,我想删除此版本并安装版本 2.14.0。

我相信我安装的是 2.14.0 版本 feature:list 我看到骆驼版本 2.14.0,但我也看到 2.15.0 仍然存在。如何让 2.15.0 消失?

karaf@root()> feature:repo-add camel 2.14.0
Adding feature url mvn:org.apache.camel.karaf/apache-camel/2.14.0/xml/features
karaf@root()>

Apache Karaf 并未随 Camel 开箱即用。您将 Camel 安装到其中。它也应该有删除 repo-url 的命令。

您也可以只清理您的 Karaf,但将其关闭,然后删除数据目录,这样您就又拥有了一个普通的 Karaf。

还有一个 shorthand 用来安装 Camel

features:chooseurl camel 2.14.2

但请注意 Karaf 3.x 之后的一些命令已被重命名和更改,因此它还有其他内容:(