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

2019-08-07 19:16发布

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.

0条回答
登录 后发表回答