如何从在线更新站点创建eclipse更新存档?

Mon*_*ael 5 eclipse plugins archive

每次改变我的eclipse安装时,我都厌倦了从网上安装数百个插件(我使用了大量的em).

eclipse在插件安装过程中所做的是从更新站点下载相关的jar并安装它们.

有没有办法将这些下载罐捆绑到一个存档中,以便下次可以在本地更新而无需再次下载所有插件?

Jan*_*sel 5

我想在Paul的答案中添加以下Ant脚本,您不必在其中列出站点中包含的所有功能的ID:

<?xml version="1.0" ?>
<project name="MyProject" default="CreateLocalRepo" basedir=".">
  <target name="CreateLocalRepo">
    <p2.mirror destination="file://..." ignoreerrors="true">   
      <source>
        <repository location="http://.../" />
      </source>
    </p2.mirror>
  </target>
</project>
Run Code Online (Sandbox Code Playgroud)


Pau*_*ter 4

您可以镜像所需的功能并创建本地存储库。您需要定期安装的功能的 ID(它们位于您的eclipse/features目录中),然后您可以创建一个小 Ant 脚本来创建本地存储库。从那里,您可以在本地安装。存储库 ID 与功能 id +“.feature.group”相同

<target name="CreateLocalRepo">
   <p2.mirror destination="file:///opt/local/eclipseMirror" ignoreerrors="true">
      <source location="http://download.eclipse.org/releases/helios"/>
      <iu id="org.eclipse.emf.sdk.feature.group"/>
      <iu id="org.eclipse.releng.tools.feature.group"/>
   </p2.mirror>
<target>
Run Code Online (Sandbox Code Playgroud)

可以通过以下方式运行:

eclipse/eclipse -noSplash \
-application org.eclipse.ant.core.antRunner  \
-buildfile createLocalRepo.xml
Run Code Online (Sandbox Code Playgroud)

如果您仍然有旧的 Eclipse 安装,另一个选择是使用“帮助”>“安装新软件”并提供旧的 Eclipse 作为存储库位置。 OLD_ECLIPSE_INSTALL/p2/org.eclipse.equinox.p2.engine/profileRegistry/SDKProfile.profile