我已经下载了ServiceMix 7.0.1,并遵循了文档。我需要使用以下方法安装骆驼功能:
karaf@root>feature:install camel-sql
但是当我这样做时,什么也没发生。在我按ctrl-c之前,没有任何响应。日志文件也无济于事。
2020-03-25 14:13:25,709 | INFO | Thread-16 | FeaturesServiceImpl
| 8 - org.apache.karaf.features.core - 4.0.9 | Adding features: camel-sql/[2.24.2,2.24.2]
并且至少可以说在线文档很少。
更新
使用-v -t给出以下输出,但此后仍然没有输出:
karaf@root>feature:install -v -t camel-sql
Adding features: camel-sql/[2.24.2,2.24.2]
您必须在ServiceMIX 7.0.1安装中的etc/org.ops4j.pax.url.mvn.cfg
中更新Maven配置。更改:
org.ops4j.pax.url.mvn.repositories= \
http://repo1.maven.org/maven2@id=central, \
http://repository.springsource.com/maven/bundles/release@id=spring.ebr.release, \
http://repository.springsource.com/maven/bundles/external@id=spring.ebr.external, \
http://zodiac.springsource.com/maven/bundles/release@id=gemini, \
http://repository.apache.org/content/groups/snapshots-group@id=apache@snapshots@noreleases, \
https://oss.sonatype.org/content/repositories/snapshots@id=sonatype.snapshots.deploy@snapshots@noreleases, \
https://oss.sonatype.org/content/repositories/ops4j-snapshots@id=ops4j.sonatype.snapshots.deploy@snapshots@noreleases
至:
org.ops4j.pax.url.mvn.repositories= \
https://repo1.maven.org/maven2@id=central, \
http://repository.springsource.com/maven/bundles/release@id=spring.ebr.release, \
http://repository.springsource.com/maven/bundles/external@id=spring.ebr.external, \
http://zodiac.springsource.com/maven/bundles/release@id=gemini, \
http://repository.apache.org/content/groups/snapshots-group@id=apache@snapshots@noreleases, \
https://oss.sonatype.org/content/repositories/snapshots@id=sonatype.snapshots.deploy@snapshots@noreleases, \
https://oss.sonatype.org/content/repositories/ops4j-snapshots@id=ops4j.sonatype.snapshots.deploy@snapshots@noreleases
repo1.maven.org不再允许使用http
进行访问。 https
是必需的。