E4 应用程序 - 导入没有捆绑符号名称的插件



我正在开发一个项目,这是一个POM和清单驱动的E4应用程序,其中包含一个插件平台项目,该项目构建了一个本地p2作为我更大的RCP应用程序的目标。必要的依赖项较旧,并且在其 jar 中有一个不包含捆绑符号名称的清单。因此,我无法将插件导入我的本地 p2 存储库和后续目标定义,因为我的平台项目的功能.xml无法解析插件。

有什么方法可以将此插件导入我的本地 p2 而无需归因于它的捆绑符号名称?

谢谢

功能.xml

<?xml version="1.0" encoding="UTF-8"?>
<feature
  id="example.p2.feature"
  label="Example Maven Dependencies"
  version="1.0.0.qualifier"
  provider-name="">
    <description url="http://www.example.com/description">
      Base feature for example project to be built on
    </description>
    <copyright url="http://www.example.com/copyright">
      [Enter Copyright Description here.]
    </copyright>
    <license url="http://www.example.com/license">
      [Enter License Description here.]
    </license>
    <plugin
         id="org.apache.commons.collections"
         download-size="0"
         install-size="0"
         version="0.0.0"
         unpack="false"/>
    <plugin
         id="org.apache.thrift"
         download-size="0"
         install-size="0"
         version="0.0.0"
         unpack="false"/>
    <plugin
         id="org.apache.commons.pool"
         download-size="0"
         install-size="0"
         version="0.0.0"
         unpack="false"/>
</feature>

清单。中频

Manifest-Version: 1.0
Archiver-Version: Plexus Archiver
Built-By: ecagent
Build-Jdk: 1.5.0_22
Created-By: Apache Maven 3.1.1
不包含

Bundle-SymbolicName条目(并且不包含旧 Eclipse 2.0 样式的plugin.xml)的 jar 不是插件,您不能像引用插件一样引用它。

您可以将 jar 作为现有插件之一的一部分包含在内(如果这样做,请确保它列在 'build.properties 中),也可以创建一个新的插件,只包含 jar。

最新更新