How to pass VM arguments from command line to eclipse?
I am trying to use eclipse p2 director to install plugin into Eclipse, but it get's slow and tries to search on download.eclipse.org
There is notice on help page that says:
While doing these operations, you can disable the automatic mirror selection mechanism by setting the VM argument eclipse.p2.mirrors to false.
Searching over I got "Why Eclipse’s “Check for Updates” is horribly slow (and how to fix it)"
Add it after “eclipse”, or in eclipse.ini -Declipse.p2.mirrors=false
However
eclipsec -Declipse.p2.mirrors=false -application org.eclipse.equinox.p2.director -repository http://www.nodeclipse.org/updates/ -installIU org.nodeclipse.jjs.feature.feature.group/0.10.0
-> uknown option
eclipsec -vmargs -Declipse.p2.mirrors=false -application org.eclipse.equinox.p2.director -repository http://www.nodeclipse.org/updates/ -installIU org.nodeclipse.jjs.feature.feature.group/0.10.0
-> starts workbench
eclipsec -application org.eclipse.equinox.p2.director -repository http://www.nodeclipse.org/updates/ -installIU org.nodeclipse.jjs.feature.feature.group/0.10.0 -vmargs -Declipse.p2.mirrors=false
-> putting in the end has no effect
Update: I could not succeed with installing, so I thought the reason was that p2 director searches on download.eclipse.org
and fails. Then after Greg advice, I was sure where those arguments were to be and played with version (It only passes with exact version:
empty or 0.10.0.qualifier
will not suit). So now installation finishes with success but still very slow, maybe because download.eclipse.org
is still contacted. Log below
eclipsec -application org.eclipse.equinox.p2.director -repository http://www.nodeclipse.org/updates/ -installIU org.nodeclipse.jjs.feature.feature.group/0.10.0.201401270634 -vmargs -Declipse.p2.mirrors=false
using eclipse from ATD-Bundle
D:\Android\eclipse>r -repository http://www.nodeclipse.org/updates/ -installIU org.nodeclipse.jjs.feature.feature.group/0.10.0.201401270634 -vmargs -Declipse.p2.mirrors=false
Їхт 05, 2014 7:17:31 PM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
INFO: I/O exception (org.apache.commons.httpclient.NoHttpResponseException) caught when processing request: The server download.eclipse.org failed to respond
Їхт 05, 2014 7:17:31 PM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
INFO: Retrying request
Їхт 05, 2014 7:17:39 PM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
INFO: I/O exception (org.apache.commons.httpclient.NoHttpResponseException) caught when processing request: The server download.eclipse.org failed to respond
Їхт 05, 2014 7:17:39 PM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
INFO: Retrying request
Installing org.nodeclipse.jjs.feature.feature.group 0.10.0.201401270634.
Їхт 05, 2014 7:18:10 PM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
INFO: I/O exception (org.apache.commons.httpclient.NoHttpResponseException) caught when processing request: The server download.eclipse.org failed to respond
Їхт 05, 2014 7:18:10 PM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
INFO: Retrying request
Їхт 05, 2014 7:18:20 PM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
INFO: I/O exception (org.apache.commons.httpclient.NoHttpResponseException) caught when processing request: The server download.eclipse.org failed to respond
Їхт 05, 2014 7:18:20 PM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
INFO: Retrying request
Їхт 05, 2014 7:18:31 PM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
INFO: I/O exception (org.apache.commons.httpclient.NoHttpResponseException) caught when processing request: The server download.eclipse.org failed to respond
Їхт 05, 2014 7:18:31 PM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
INFO: Retrying request
Operation completed in 78172 ms.