How can I get Restlet via Maven when I am behind a proxy?

自闭症网瘾萝莉.ら 提交于 2019-12-11 12:49:23

问题


I tried their official sample pom at here and got the following error:

[ERROR] Failed to execute goal on project myproject: Could not resolve dependencies for project com.example:myproject:jar:1.0-SNAPSHOT: Failed to collect dependencies at org.restlet.jse:org.restlet:ja r:2.3.4: Failed to read artifact descriptor for org.restlet.jse:org.restlet:jar:2.3.4: Could not transfer artifact org.restlet.jse:org.restlet:pom:2.3.4 from/to maven-restlet (http://maven.restlet.com ): Not authorized , ReasonPhrase:Unauthorized. -> [Help 1]

Some investigation I have done:

  1. I am not using a company mirror. I used to use but to debug this I disabled it, because our company mirror does not have this.
  2. Non-Restlet components works fine with the proxy configuration I put in settings.xml. I am trying Camel examples btw.
  3. Non-Restlet components will get a similar error if I use a incorrect password for the proxy.
  4. I tried a mirror mentioned here and it does not work.

So it seems restlet specific, but I have run out of ideas.

来源:https://stackoverflow.com/questions/31735931/how-can-i-get-restlet-via-maven-when-i-am-behind-a-proxy

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!