简体   繁体   English

如何更改karaf功能的URL:安装

[英]How to change URL of karaf features:install

JBossFuse:karaf@root> features:install wrapper
    Error executing command: URL [mvn:org.apache.camel.karaf/apache-camel/2.14-SNAPSHOT/xml/features] could not be resolved.

I get this message for features:install {ANYTHING}. 我收到此消息的功能:安装{ANYTHING}。

To be fair, I'm running jboss-fuse-full-6.1.0.redhat-379.zip on Windows. 公平地说,我正在Windows上运行jboss-fuse-full-6.1.0.redhat-379.zip。 So I should expect things to go wrong. 因此,我应该期待事情会出错。 But for my edification, why is this happening? 但是出于我的启发,为什么会这样? Why is it going for the latest snapshot? 为什么要使用最新快照?

If the bundle is not in the system directory and not in your local repository you should check etc/org.ops4j.pax.url.mvn.cfg for the org.ops4j.pax.url.mvn.repositories entry and make sure that the artifact can be resolved from there. 如果捆绑包不在系统目录中,也不在本地存储库中,则应检查etc/org.ops4j.pax.url.mvn.cfg中的org.ops4j.pax.url.mvn.repositories条目,并确保工件可以从那里解决。 You probably need to add the Apache snapshots repository since the artifact is deployed there . 由于工件已部署在其中,因此您可能需要添加Apache快照存储库。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM