项目中需要在karaf中集成cxf-dosgi-discovery-distributed特性,所以需要在karaf开启时启动cxf-dosgi-discovery-distributed的feature,只需要在etc/org.apache.karaf.features.cfg中加入如下的片段即可:
“mvn:org.apache.cxf.dosgi/cxf-dosgi/1.6.0/xml/features”和“cxf-dosgi-discovery-distributed”为加入的部分
featuresRepositories=mvn:org.apache.karaf.features/standard/3.0.3/xml/features,mvn:org.apache.karaf.features/enterprise/3.0.3/xml/features,mvn:org.ops4j.pax.web/pax-web-feature