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

发布于 2024-11-15 17:16:58 字数 164 浏览 1 评论 0原文

我厌倦了每次更改 Eclipse 安装时都必须从网络安装数百个插件(我使用了很多插件)。

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

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

I'm getting tired of having to install hundreds of plugins(I use a lot of em) from the web everytime I change my eclipse installation.

What eclipse does during a plugin install is download the relevant jars from the update site and install them.

Is there any way to bundle up these download jars into an archive so that the next time one can update locally without having to download all the plugins again?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

二智少女猫性小仙女 2024-11-22 17:16:58

我想在 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>

I'd like to add to Paul's answer the following Ant script in which you don't have to list all the IDs of the features contained in the site:

<?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>
寻找我们的幸福 2024-11-22 17:16:58

您可以镜像所需的功能并创建本地存储库。您需要定期安装的功能的 ID(它们位于您的 eclipse/features 目录中),然后您可以创建一个小 ant 脚本来创建本地存储库。从那里,您可以在本地安装。 Repo 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>

可以通过以下方式运行:

eclipse/eclipse -noSplash \
-application org.eclipse.ant.core.antRunner  \
-buildfile createLocalRepo.xml

如果您仍然有旧的 Eclipse 安装,另一种选择是使用 Help>Install New Software 并将旧的 Eclipse 提供为回购位置。 OLD_ECLIPSE_INSTALL/p2/org.eclipse.equinox.p2.engine/profileRegistry/SDKProfile.profile

You can mirror the features you want and create a local repo. You need the IDs of the features you regularly install (they're in your eclipse/features directory), and then you can create a little ant script to create your local repo. From there, you can just install locally. Repo IDs are the same as the feature 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>

That can be run by something like:

eclipse/eclipse -noSplash \
-application org.eclipse.ant.core.antRunner  \
-buildfile createLocalRepo.xml

Another option if you still have your older eclipse install lying around is to use Help>Install New Software and provide your old eclipse as a repo location. OLD_ECLIPSE_INSTALL/p2/org.eclipse.equinox.p2.engine/profileRegistry/SDKProfile.profile

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文