1

我有一个已过时的片段,我想创建一个更新来卸载该片段。我猜想正确的方法是将片段视为一个包,因此我将以下内容添加到包含安装程序操作的插件的 p2.inf 中:

instructions.install = \
    uninstallBundle(bundle:com.iar.cdt.arm.debugger.drivers.win32); \
    uninstallBundle(bundle:com.iar.ide.debugger.kernel.win32)

instructions.install.import \
    org.eclipse.equinox.p2.touchpoint.eclipse.uninstallBundle

但就在安装即将完成时,我收到以下错误:

An error occurred while installing the items
session context was:(profile=SDKProfile, phase=org.eclipse.equinox.internal.p2.engine.phases.Install, operand=null --> [R]com.iar.installer.arm 0.12.0.v201110251455, action=org.eclipse.equinox.internal.p2.touchpoint.eclipse.actions.UninstallBundleAction).
No matching artifact found for: com.iar.cdt.arm.debugger.drivers.win32.
No matching artifact found for: com.iar.cdt.arm.debugger.drivers.win32.

我需要卸载整个托管插件吗?

4

1 回答 1

1

尝试这个

artifacts.0.classifier=osgi.bundle
artifacts.0.name=com.iar.cdt.arm.debugger.drivers.win32
artifacts.0.version=<the version of your fragment>

instructions.install = \
    uninstallBundle(bundle:${artifact})
于 2011-10-26T07:22:09.613 回答