Java 捆绑包osgi.willing.package=com.mashape.unirest.http(版本>;=2.0.0)(!(版本>;=3.0.0))中未解决的约束

Java 捆绑包osgi.willing.package=com.mashape.unirest.http(版本>;=2.0.0)(!(版本>;=3.0.0))中未解决的约束,java,maven,osgi,fuseesb,unirest,Java,Maven,Osgi,Fuseesb,Unirest,在对fuse服务器做了一些更改之后,我尝试在其上部署一个捆绑包。我添加了unirest依赖项来执行REST调用 该构建在本地计算机和Jenkins上运行良好,但捆绑包抛出错误,无法部署到fuse服务器上 下面是一个错误: Unable to start bundle 3716: unresolved constraint in bundle com.......component.sharepoint [3716] : unable to resolve 3761.0 :

在对fuse服务器做了一些更改之后,我尝试在其上部署一个捆绑包。我添加了unirest依赖项来执行REST调用

该构建在本地计算机和Jenkins上运行良好,但捆绑包抛出错误,无法部署到fuse服务器上

下面是一个错误:

Unable to start bundle 3716: 
  unresolved constraint in bundle com.......component.sharepoint [3716] :
   unable to resolve 3761.0 :
     missing  requirment (3761.0 ) (&(osgi.wiring.package;(&(osgi.wiring.package=com.mashape.unirest.http)(version>=2.0.0)(!(version>=3.0.0)))
下面是我的pom.xml:


4.0.0
******机密的****
父母亲
2.0.0-SNAPSHOT
../parent
sharepoint
捆
Fuse:组件:SharePoint
******
通用编解码器
通用编解码器
${commons.coded.version}
***************
小贩
${vendorcache.version}
org.apache.commons
公地io
${commons io.version}
com.mashape.unirest
unirest java
1.4.9
org.apache.felix
maven捆绑插件
${maven bundle plugin.version}
真的
${project.parent.groupId}.${project.artifactId}
${project.parent.groupId}.${project.artifactId}
${project.parent.groupId}.${project.artifactId}*
*
com.mashape.unirest;范围=编译|运行时;内联=真
真的

在my pom.xml中添加以下内容对我很有用:

在build->plugins下包含它

 <plugin>
    <groupId>org.apache.felix</groupId>
    <artifactId>maven-bundle-plugin</artifactId>
    <extensions>true</extensions>
    <configuration>
      <instructions>
        <Bundle-SymbolicName>${project.groupId}.${project.artifactId}</Bundle-SymbolicName>
        <Import-Package>*</Import-Package>
      </instructions>
    </configuration>
  </plugin>

org.apache.felix
maven捆绑插件
真的
${project.groupId}.${project.artifactId}
*

在my pom.xml中添加以下内容对我很有用:

在build->plugins下包含它

 <plugin>
    <groupId>org.apache.felix</groupId>
    <artifactId>maven-bundle-plugin</artifactId>
    <extensions>true</extensions>
    <configuration>
      <instructions>
        <Bundle-SymbolicName>${project.groupId}.${project.artifactId}</Bundle-SymbolicName>
        <Import-Package>*</Import-Package>
      </instructions>
    </configuration>
  </plugin>

org.apache.felix
maven捆绑插件
真的
${project.groupId}.${project.artifactId}
*

我省略了几条文字,因为这是我公司的具体信息。您能否再次检查您发布的错误消息是否正确?看起来确实有重要的缺失部分。您还可以发布捆绑包的
MANIFEST.MF
文件的内容吗?我省略了一些文本,因为这是我公司的特定信息。您可以再次检查您发布的错误消息是否正确吗?看起来确实有重要的缺失部分。您还可以发布捆绑包的
MANIFEST.MF
文件的内容吗?