English 中文(简体)
Pax Exam Karaf: mavenBundleposition program work, bundle with file:URL don t
原标题:Pax Exam Karaf: mavenBundle configuration option works, bundle with file: URL doesn t

与Pax Exam土著集装箱(Pax Exam 2.3.1)合作,但与Pax Exam Karaf集装箱(0.5.2)合作。

@Configuration
public Option[] config() {
    return options(
            // karafDistributionConfiguration()
            // .frameworkUrl(
            // maven().groupId("org.apache.karaf")
            // .artifactId("apache-karaf").type("zip"))
            // .karafVersion("2.2.6").name("Apache Karaf"),
            provision(bundle("reference:file:/path/to.jar")));
}

安装了制鞋:

@Inject
BundleContext bundleContext = null;

@Test
public void sameRepositoryProvidesFBServiceAndUserService() {
    for (Bundle b : bundleContext.getBundles()) {
        if (b.getSymbolicName().equals(myBundleName)) {
            return;
        }
    }
    fail("Bundle " + myBundleName + " not found");
}

如果I uncomment karafDistributionConfiguration,将bundle(url)改为mavenBundle(groupId, artifactId),重在Pax Exam Karaf. 可否予以驳回? 我需要使用<条码>bundle,在我的工作空间对捆包的开发版本进行测试。

最佳回答

It turned out to be a timing issue, fixed in 0.5.3.

问题回答

暂无回答




相关问题
Apache Karaf 2.2.3, featuresBoot issue

Karaf 2.2.3 recently released and finally has a pre-bundled spring-jms feature. In order to make life easy I added it to the featuresBoot config property with the other defaults: featuresBoot=config,...

Apache Karaf vs. Servicemix

Is anyone using Karaf instead of Servicemix? If so, how did you come to this decision? I m aware that Servicemix adds a layer of functionality around Karaf, just curious if Karaf is being used on ...

Efficient OSGi development workflow

I work on a product composed of many bundles running as features on top of karaf. Typically our developers work on one bundle at a time. Our normal development goes something like: code, compile, copy ...

热门标签