Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

401 Unauthorized error when deploying via Maven Plugin

Not applicable

Hi,

I want to be able to post my API changes to /v1/organizations/{org}/apis via Maven. If I post via a standalone rest client, the post is succesfull. If I post via Maven, I recieve a 401 Unauthorized error back. I am running the following (note, I am behind a corporate proxy):

mvn clean install -Ptest -Dapigee.org=<org> -Dapigee.username=<apigee username> -Dapigee.password=<apigee password> -Dhttps.proxyUser=<corporate proxy user> -Dhttps.proxyPassword=<corporate proxy password> -DproxySet=true -Dhttps.proxyHost=<proxy host> -Dhttps.proxyPort=<port>

Things to note:

  • I am running forecastweatherapi from this maven example project
  • If I run from outside of the corporate proxy, it works fine (the API is uploaded succesfully via the same maven command)
  • If I debug and put logging into the maven plugin, I can see the password hash and headers are definately correct
  • The response I get is from Apigee, it has gotten passed our proxy and is not a proxy auth failure

I am out of ideas, any help much appreciated.

Thanks,

Simon.

1 9 2,662
9 REPLIES 9