gpt4 book ai didi

eclipse - 下载 Eclipse 插件更新站点以进行离线安装

转载 作者:行者123 更新时间:2023-12-03 05:20:48 26 4
gpt4 key购买 nike

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

最佳答案

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

基于p2信息的镜像

$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 repository mirroring

根据site.xml信息进行镜像

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

引用:Running the update manager from the command line

您可以在我的script repository中跟踪这些脚本的演变。 .

关于eclipse - 下载 Eclipse 插件更新站点以进行离线安装,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1371176/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com