如何从在线更新站点创建 Eclipse 更新存档?
我厌倦了每次更改 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我想在 Paul 的回答中添加以下 Ant 脚本,您不必在其中列出站点中包含的所有功能的 ID:
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:
您可以镜像所需的功能并创建本地存储库。您需要定期安装的功能的 ID(它们位于您的 eclipse/features 目录中),然后您可以创建一个小 ant 脚本来创建本地存储库。从那里,您可以在本地安装。 Repo ID 与功能 id + “.feature.group” 相同,
可以通过以下方式运行:
如果您仍然有旧的 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"That can be run by something like:
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