微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

ResolutionException: Unable to resolve root: missing requirements [root] filter:="(osgi.wiring.package=javax.jws)(version>=1.1.0)(!(version>=2.0.0))

如何解决ResolutionException: Unable to resolve root: missing requirements [root] filter:="(osgi.wiring.package=javax.jws)(version>=1.1.0)(!(version>=2.0.0))

当我尝试在 Fabric8 的容器上部署 7 个包中的 1 个时,出现下一个错误

2021-06-29 15:24:41,239 | ERROR | dd741-1-thread-1 | DeploymentAgent                  | 83 - io.fabric8.fabric-agent - 1.2.0.redhat-133 | Unable to update agent
org.osgi.service.resolver.ResolutionException: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=bundleinterface; type=karaf.feature; filter:="(&(osgi.identity=bundleinterface)(type=karaf.feature))" [caused by: Unable to resolve bundleinterface/0.0.0: missing requirement [bundleinterface/0.0.0] osgi.identity; osgi.identity=bundleproject-interface; type=osgi.bundle; version="[2.0.14.RELEASE,2.0.13.RELEASE]"; resolution:=mandatory [caused by: Unable to resolve bundleproject-interface/2.0.13.RELEASE: missing requirement [bundleproject-interface/2.0.13.RELEASE] osgi.wiring.package; filter:="(&(osgi.wiring.package=javax.jws)(version>=1.1.0)(!(version>=2.0.0)))"]]

关于我的 pom.xml 的信息:

<build>
<defaultGoal>install</defaultGoal>
<plugins>
    <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>2.5.1</version>
        <configuration>
            <source>1.6</source>
            <target>1.6</target>
        </configuration>
    </plugin>
    <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-resources-plugin</artifactId>
        <version>2.6</version>
        <configuration>
            <encoding>UTF-8</encoding>
        </configuration>
    </plugin>

    <!-- to generate the MANIFEST-FILE of the bundle -->
    <plugin>
        <groupId>org.apache.Felix</groupId>
        <artifactId>maven-bundle-plugin</artifactId>
        <version>2.3.7</version>
        <extensions>true</extensions>
        <configuration>
            <instructions>
                <Bundle-SymbolicName>bundleproject-interface</Bundle-SymbolicName>
                <Export-Package>
                    com.bundleproject.interface.*,com.bundleproject.interfaceimpl.*
                </Export-Package>
                <Import-Package>
                    org.apache.cxf.transport.http,io.fabric8.cxf,<!-- work around :: ini :: try to import the javax package but no work :( -->
                    <!-- javax.jws.*;version="[1.1.0,2.0.0)",-->
                    javax.jws;version="[1.1.0,<!-- work around :: fin -->
                    *
                </Import-Package>
                <Import-Service>
                    com.bundleproject.service.LogService,com.bundleproject.service.MessageFailService,com.bundleproject.dsservice.imsgLogService
                </Import-Service>
            </instructions>
        </configuration>
    </plugin>

</plugins>
<pluginManagement>
    <plugins>
        <!--This plugin's configuration is used to store Eclipse m2e settings 
            only. It has no influence on the Maven build itself. -->
        <plugin>
            <groupId>org.eclipse.m2e</groupId>
            <artifactId>lifecycle-mapping</artifactId>
            <version>1.0.0</version>
            <configuration>
                <lifecycleMappingMetadata>
                    <pluginExecutions>
                        <pluginExecution>
                            <pluginExecutionFilter>
                                <groupId>
                                    org.apache.cxf
                                </groupId>
                                <artifactId>
                                    cxf-codegen-plugin
                                </artifactId>
                                <versionRange>
                                    [3.0.1,)
                                </versionRange>
                                <goals>
                                    <goal>wsdl2java</goal>
                                </goals>
                            </pluginExecutionFilter>
                            <action>
                                <ignore></ignore>
                            </action>
                        </pluginExecution>
                    </pluginExecutions>
                </lifecycleMappingMetadata>
            </configuration>
        </plugin>
    </plugins>
</pluginManagement>

我正在使用:

  • Java 1.8(用于编译整个项目),之前我能够部署 5/7 包
  • Maven 3.4.5
  • Fabric8-1.2.0.redhat-133

这个项目之前部署在 Jboss Fuse 6.2.1 上并且运行良好。但是被 Fabric8 1.2.0.redhat-133 改变了

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐


Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其他元素将获得点击?
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。)
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbcDriver发生异常。为什么?
这是用Java进行XML解析的最佳库。
Java的PriorityQueue的内置迭代器不会以任何特定顺序遍历数据结构。为什么?
如何在Java中聆听按键时移动图像。
Java“Program to an interface”。这是什么意思?