如何避免重新编译依赖于其他几个插件的同一个 Eclipse 插件

How to avoid recompiling the same Eclipse plugin that is a dependency of several other plugins

我有几个Eclipse 项目,每个项目都是一个RCP 插件。它们都依赖于另一个公共项目,该项目本身就是一个 RCP 插件。

我在 Ant 中构建的每个项目都是这样的:

<java jar="${eclipse.equinox.launcher.plugin}" fork="true" failonerror="true">
    <arg value="-application"/>
    <arg value="org.eclipse.ant.core.antRunner"/>
    <arg value="-buildfile"/>
    <arg value="${eclipse.pde.build.plugin}/scripts/productBuild/productBuild.xml"/>
    <arg value="-Dbuilder=${build.directory.projectroot}"/>
</java>

但是,使用此方法会为每个依赖项目重新构建公共项目,这非常缓慢且没有必要。有没有办法只build/compile公共项目一次并使用输出?

我可以通过将已构建的插件复制到 Eclipse Target 的 dropins 文件夹中来完成此操作。 PDE 在构建其他产品时检测到这些插件,但不会重新构建它们。