从更新站点下载eclipse插件的工具

maf*_*fro 9 eclipse-plugin p2 mirroring

我需要在没有连接到Internet的机器上安装eclipse插件,我找不到用于本地安装的dist.

是否有从更新站点下载插件并创建本地安装档案(或本地更新站点)的工具?谣言说你可以用eclipse做到这一点,但我找不到任何关于如何做的信息.

Pet*_*aný 12

您可以使用P2镜像工具(或Galileo文档中的P2镜像)来镜像远程元数据和工件存储库.

以下是在本地镜像Galileo工件库的示例命令:

eclipse\eclipsec.exe -nosplash -verbose 
-application org.eclipse.equinox.p2.metadata.repository.mirrorApplication
-source http://download.eclipse.org/releases/galileo
-destination file:d:/temp/galileo/

eclipse\eclipsec.exe -nosplash -verbose
-application org.eclipse.equinox.p2.artifact.repository.mirrorApplication
-source http://download.eclipse.org/releases/galileo
-destination file:d:/temp/galileo/
Run Code Online (Sandbox Code Playgroud)

(第一个命令镜像元数据,第二个镜像工件.命令应该在Windows中的一行)

运行这些命令后,您可以将其file:d:/temp/galileo用作本地镜像.

或者,您可以使用P2 Mirror Ant Task,它允许您指定要镜像的可安装单元(插件或功能).注意:指定功能时,不要忘记使用.feature.group后缀)