下载 Eclipse 插件更新站点以进行离线安装 [英] Downloading Eclipse plug-in update sites for offline installation

查看:32
本文介绍了下载 Eclipse 插件更新站点以进行离线安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要安装的插件提供了安装更新站点.但是,我想将其安装到的 Eclipse 安装在未连接到 Internet 的机器上.有没有办法让我访问该站点(HTTP、FTP 等)以下载其中的文件以进行离线安装?

A plug-in that I want to install provides an update site for installation. However, the Eclipse installation that I want to install it to is on a machine that is not connected to the Internet. Is there a way for me to access the site (HTTP, FTP, etc.) to download the files in it for offline installation?

推荐答案

Eclipse 提供了一种通过命令行或 ant 任务自动镜像这些站点的方法.

Eclipse offers a way of mirroring these sites automatically, either through the command line or through ant tasks.

$eclipse_home/eclipse -application org.eclipse.equinox.p2.artifact.repository.mirrorApplication -source $1 -destination $2
$eclipse_home/eclipse -application org.eclipse.equinox.p2.metadata.repository.mirrorApplication -source $1 -destination $2

参考:Equinox p2 仓库镜像

java -jar $eclipse_home/plugins/org.eclipse.equinox.launcher_*.jar -application org.eclipse.update.core.standaloneUpdate -command mirror -from $from -to $to

参考:从命令行运行更新管理器

您可以在我的脚本存储库中关注这些脚本的演变.

You can follow the evolution of these scripts in my script repository.

这篇关于下载 Eclipse 插件更新站点以进行离线安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆