添加两个相同版本的插件 [英] Add two plugins of same version
问题描述
如何在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:
- 在产品编辑器中,验证...按钮可能表示每个插件至少有2个版本存在问题在产品所引用的当前目标中。
- 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.
- 例如
缺少约束:Require-Bundle:org.apache.batik.css; bundle-version = [1.6.0,1.7.0)
- e.g.
Missing constraint: Require-Bundle: org.apache.batik.css; bundle-version="[1.6.0,1.7.0)"
$ b中包含了org.apache.batik框架的某些插件的2个版本。 $ b
- 在产品中,我只有一行,它指定了先前构建期间未找到的版本(尝试不使用版本,有时对我也有用)
- 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)
-
< plugin id = org.apache.batik.css version = 1.6.0.v201011041432 />
<plugin id="org.apache.batik.css" version="1.6.0.v201011041432"/>
$ b
- org.apache.batik.css_1.6.0.v201011041432.jar
- org.apache.batik.css_1.9.1 .v20180313-1559.jar
这篇关于添加两个相同版本的插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!