Elasticsearch-plugin and proxies

Hi,
I am trying to install the analysis-icu plugin but am having problems with the installation. In ES 4, it worked fine but now I try:

./elasticsearch-plugin --noproxy install analysis-icu

or:

./elasticsearch-plugin -DproxyHost=https://proxy.sei.cmu.edu -DproxyPort=8080 install analysis-icu

but always get:

Exception in thread "main" java.net.ConnectException: Connection timed out (Connection timed out)

everything else on the machine that utilizes a proxy still works, so I'm wondering, is there a different way to do it with ES5?

Thank you.

Can you try this? https://www.elastic.co/guide/en/elasticsearch/plugins/current/_other_command_line_parameters.html#_proxy_settings

David,
I thought I had looked at every ES page regarding this proxy thing but somehow missed the one you referenced. Worked like a charm. Thank you.

For me mentioned proxy setting is not working in windows, Is there thing missing below configuration?

set ES_JAVA_OPTS="-DproxyHost=proxyhost -DproxyPort=80 -Dhttps.proxyHost=proxyhost -Dhttps.proxyPort=80"

set ES_JAVA_OPTS="-Dhttp.proxyHost=proxyhost -Dhttp.proxyPort=80 -Dhttps.proxyHost=proxyhost -Dhttps.proxyPort=80"

Command which I am trying to execute is "elasticsearch-plugin install ingest-attachment" on a server behind proxy host. Even offline install of same also do not work.