JSR-354 java money moneta 指定代理

JSR-354 java money moneta specify proxy

我正在尝试使用 Moneta API 进行货币转换,所以我称之为:

MonetaryConversions.getExchangeRateProvider("IDENT", "ECB", "IMF", "ECB-HIST", "ECB-HIST90").getExchangeRate(sourceCurrency, targetCurrency);

不幸的是我遇到了这个异常:

2016-06-15 17:14:12,659 [main] ERROR: Failed to load resource:  IMFHistoricRateProvider
java.lang.IllegalStateException: Failed to load remote as well as fallback resources for LoadableResource [resourceId=IMFHistoricRateProvider, fallbackLocation=jar:file:/C:/Users/e-tahchpet/.m2/repository/org/javamoney/moneta/1.1/moneta-1.1.jar!/java-money/defaults/IMF/rms_five.xls, remoteResources=[http://www.imf.org/external/np/fin/data/rms_five.aspx?tsvflag=Y], loadCount=0, accessCount=1, lastLoaded=0]
    at org.javamoney.moneta.internal.loader.LoadableResource.getData(LoadableResource.java:378)

我很确定这是因为我在公司防火墙后面。有没有办法指定代理? Myabe 在某些 属性 文件中?

实际上我发现可以通过指定 http.proxyHosthttp.proxyPort 系统属性来实现。