3

我可以将 Eclipse 配置为通过 HTTPS 下载插件资源吗?只允许 HTTPS 下载我的代理/防火墙后面的 jar。

此外,我找不到一些插件资源可以离线安装,或者其中一些需要太多工作。

4

1 回答 1

2

HTTP/HTTPS depends on the source, if the plugin is on a server and the server is configured to host HTTPS then all is OK. Otherwise you need to have your workaround.

I would do like this:

  1. download the plugin locally (if behind proxy, then maybe from other computer/network and store it accessible to your eclipse)
  2. install it (either in eclipse or command line)

I find the command line plugin installation faster, you just run the eclipsec.exe and give the target where you have downloaded the plugin.

Download from mirror/update site

Also worth to mention is if there is no plugin "full" download file, I mean sometimes you have just a update/or mirror-site url, but you can still download the plugin using:

eclipsec.exe
-nosplash 
-application org.eclipse.equinox.p2.metadata.repository.mirrorApplication 
-source url 
-destination file:your-hdd-path

or

java 
-jar plugins/org.eclipse.equinox.launcher[ECLIPSE dependent version, see ini file].jar 
-application org.eclipse.update.core.standaloneUpdate 
-command mirror 
-from url 
-to your-hdd-path

above differs if the plugin is on a mirror or update site. (Check if there is a site.xml file).

Install the plugin, command line

Installation the plugin is very simple by using the command-line-version of eclipse (which ends with letter c, i.e. eclipsec), see Link:

eclipsec.exe 
-nosplash  
-application org.eclipse.equinox.p2.director 
-installIU "the-feature-to-install"
-profileProperties org.eclipse.update.install.features=true 
-profile "Your-Profil see config.ini" 
-repository "your-hdd-path" 
-destination "your-eclipse-path"

Local plug-in repository

Also there is a dropins folder in eclipse which is worth to mention, but I would go with above solution. And if you have lots of plug-ins I would recommend creating Composite repositories, locally (for other in your team to setup the plugins without web access).

于 2017-09-29T11:13:10.450 回答