1

我开发了一个 Eclipse 功能项目,并且在我的功能中使用了开源 css 验证插件 org.w3c.css。Aptana Studio eclipse 工具也使用此插件。如果在其 Eclipse 实例中安装了 Aptana Studio 的用户也想安装我的功能,则会导致冲突。这是简体:

Cannot complete the install because of a conflicting dependency.
...
    Only one of the following can be installed at once: 
        W3C CSS Validator 1.0.0.20110712 (org.w3c.css 1.0.0.20110712)
        CSS Validator 3.0.0.1303365277 (org.w3c.css 3.0.0.1303365277)

我想要发生的是在安装我的功能时,如果已经安装了 org.w3c.css 插件,它不会破坏安装。理想情况下,它只会选择最新版本并使用该版本,但是任何可以成功完成安装的方式都会很棒。

这是我的 feature.xml 中的插件声明,以防它有价值:

   <plugin
         id="org.w3c.css"
         download-size="0"
         install-size="0"
         version="0.0.0"
         unpack="false"/>
4

0 回答 0