我能否配置Eclipse通过HTTPS下载插件资源。因为我的代理/防火墙只允许使用HTTPS下载jar包。
同时,我也找不到一些插件资源进行离线安装,或者有些插件需要太多的工作。
我能否配置Eclipse通过HTTPS下载插件资源。因为我的代理/防火墙只允许使用HTTPS下载jar包。
同时,我也找不到一些插件资源进行离线安装,或者有些插件需要太多的工作。
HTTP/HTTPS 取决于来源,如果插件在服务器上且服务器已配置为支持 HTTPS,则一切正常。否则,您需要自己解决。
我会这样做:
我发现命令行插件安装更快,只需运行 eclipsec.exe 并提供您已下载插件的目标位置即可。
值得一提的是,如果没有 "full" 插件下载文件,也就是说有时你只有一个更新或镜像站点的 URL,但你仍然可以使用以下方法下载插件:
eclipsec.exe
-nosplash
-application org.eclipse.equinox.p2.metadata.repository.mirrorApplication
-source url
-destination file:your-hdd-path
或者
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
如果插件在镜像或更新站点上,安装方式会有所不同。(请检查是否存在site.xml文件)。
通过使用以字母c结尾的eclipse命令行版本(即eclipsec),安装插件非常简单,请参见链接:
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"
在Eclipse中还有一个dropins文件夹,值得一提,但我会选择以上解决方案。如果您有大量的插件,我建议创建本地组合仓库(供团队中其他人在没有网络访问的情况下安装插件)。