问题
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:
- 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.
- Non-Restlet components works fine with the proxy configuration I put in settings.xml. I am trying Camel examples btw.
- Non-Restlet components will get a similar error if I use a incorrect password for the proxy.
- 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