无法启动包-缺少要求osgi.wiring.package

时间:2019-06-14 07:01:11

标签: maven jbossfuse

*错误* -

JBossFuse:karaf @ root>开始294 执行命令时出错:启动捆绑包时出错:         无法启动包294:包com.javaoutofbounds.camel-cxfrs-api中未解决的约束[294]:无法解决294.0:缺少要求[294.0] osgi.wiring.package; (&(osgi.wiring.package = org.codehaus.jackson.annotate)(version> = 1.9.0)(!(version> = 2.0.0)))

我已经下载了这个github项目https://github.com/apache/camel/tree/master/examples/camel-example-cxf-blueprint。 Maven Build在命令提示符下成功。
但是,当我在6.3.0版的JBossFuse中部署它时,它显示了上面的错误...

这是我的pom.xml

http://maven.apache.org/xsd/maven-4.0.0.xsd“>     4.0.0     com.javaoutofbounds     camel-cxfrs-api     0.0.1-SNAPSHOT

<packaging>bundle</packaging>

<name>Camel :: CXF-RS Rest Service :: Example</name>

<dependencies>
    <dependency>
        <groupId>org.apache.camel</groupId>
        <artifactId>camel-cxf</artifactId>
        <version>2.15.0</version>
    </dependency>
    <dependency>
        <groupId>org.codehaus.jackson</groupId>
        <artifactId>jackson-jaxrs</artifactId>
        <version>1.9.13</version>
    </dependency>
    <dependency>
        <groupId>org.codehaus.jackson</groupId>
        <artifactId>jackson-mapper-asl</artifactId>
        <version>1.9.13</version>
    </dependency>
    <dependency>
        <groupId>org.codehaus.jackson</groupId>
        <artifactId>jackson-core-asl</artifactId>
        <version>1.9.13</version>
    </dependency>
</dependencies>

<build>
    <plugins>
        <plugin>
            <groupId>org.apache.felix</groupId>
            <artifactId>maven-bundle-plugin</artifactId>
            <extensions>true</extensions>
            <version>2.5.0</version>
            <configuration>
                <instructions>
                    <Export-Package></Export-Package>                   
                </instructions>
            </configuration>
        </plugin>
    </plugins>
</build>

我的清单看起来像这样- MANIFEST.MF-

清单版本:1.0 类路径:

我希望创建捆绑包,并通过此项目构建的api显示结果...

0 个答案:

没有答案