添加两个相同版本的插件 [英] Add two plugins of same version

查看:200
本文介绍了添加两个相同版本的插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在Eclipse产品文件中添加两个具有不同版本的同名插件?

How to add two plugins of same name with different version in eclipse product file?

例如-lua编辑器插件有一个名为com.naef.jnlua的插件,有两个版本0.9.1和1.0.3,都需要添加两个版本。

For example - lua editor plugins has a plugin named com.naef.jnlua which has two versions 0.9.1 and 1.0.3 both the versions are needed to be added.

我正在开发一个eclipse插件产品,我想将两个插件都添加到我的.product文件,但我的文件仅考虑插件com.naef.jnlua的最新版本。

I am developing an eclipse plugin product and I want to add both the plugins to my .product file but my file is considering only the latest version of the plugin com.naef.jnlua.

注意:Eclipse IDE接受两个版本。

Note: Eclipse IDE is accepting both versions.

帮我解决问题。

推荐答案

我使用Eclipse Photon,可以观察到以下内容:

I use Eclipse Photon and could observe the following:


  1. 在产品编辑器中,验证...按钮可能表示每个插件至少有2个版本存在问题在产品所引用的当前目标中。

  1. In the product editor, the "validate..." button might indicate a problem for each plugin with at least 2 versions in the current target that is referenced by the product.

  1. 例如缺少约束:Require-Bundle:org.apache.batik.css; bundle-version = [1.6.0,1.7.0)

  1. e.g. Missing constraint: Require-Bundle: org.apache.batik.css; bundle-version="[1.6.0,1.7.0)"


  • 但这不会阻止从出口产品!

  • 我设法在一个产品
    $ b中包含了org.apache.batik框架的某些插件的2个版本。 $ b

  • BUT this does not prevent from exporting the product! This is just misleading and it took me hours to understand this.
  • I managed to include 2 versions of some plugins of the org.apache.batik framework in one product


    1. 在产品中,我只有一行,它指定了先前构建期间未找到的版本(尝试不使用版本,有时对我也有用)

    1. In the product I had only one line, it specified the version that was not found during a previous build (try without version first, it worked also for me sometimes)

    1. < plugin id = org.apache.batik.css version = 1.6.0.v201011041432 />

    1. <plugin id="org.apache.batik.css" version="1.6.0.v201011041432"/>


  • 我按预期在产品导出向导创建的生成的p2信息库\plugins文件夹中找到了2个jar: b
    $ b

  • I found as expected the 2 jars in the generated p2 repository\plugins folder created by the product export wizard:


    1. org.apache.batik.css_1.6.0.v201011041432.jar

    2. org.apache.batik.css_1.9.1 .v20180313-1559.jar



  • 这篇关于添加两个相同版本的插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆