eclipse commandline to install plugin from remote

2019-04-10 14:30发布

问题:

Hi All trying to install eclipse plugin from remote site using chef. Remote site has zip file which is accessible as url. I understand how to do it from local zip file. But this case is q mix of url and zip.

Please see the following syntax that I am using

eclipse\\eclipse \
-application org.eclipse.equinox.p2.director \
-noSplash \
-repository \ http://nikiclvm4.xxx.yyyy.com:8081/artifactory/simple/tools-local/chef_bin/ccollab_client_8_3_8301_001_update_site.zip \
-installIUs \
com.smartbear.collaborator.base.feature.feature.group,\
com.smartbear.collaborator.8.3.8301.001

From local drive I used following syntax which worked

-repository jar:file:/C:/Users/xxxx/Downloads/ccollab_client_8_3_8301_001_update_site.zip!/ \

Any idea how to do it?

回答1:

Use as repository url the following mind the ending ! and slash (and make sure that proxy settings are properly configured)

jar:http://nikiclvm4.xxx.yyyy.com:8081/artifactory/simple/tools-local/chef_bin/ccollab_client_8_3_8301_001_update_site.zip!/

drawback is that p2 is downloading the whole zip file first and then accessing the contained repo afterwards.