apigee / apigee-deploy-maven-plugin

Apache License 2.0
80 stars 167 forks source link

proxy settings allow https-only protocol support #178

Closed yuriylesyuk closed 2 years ago

yuriylesyuk commented 2 years ago

As per https://github.com/apigee/apigee-deploy-maven-plugin#to-configure-a-proxy, "only https protocol is supported".

My case is an enterprise proxy with authentication that is only http.

When trying to use a plugin and proxy configuration in ~/.m2 config file, the plugin causes timeout that ends with 400.

Is there any way to add an http protocol proxy support?

Thank you

ssvaidyanathan commented 2 years ago

@yuriylesyuk - I have pushed a fix for this in a separate branch (Issue178). Before I merge and release, can you test it for me please

Steps:

  1. Proxy settings in your ~/.m2/settings.xml file
  2. Clone the repo and switch to Issue178 branch
  3. Execute mvn install on the main project to create a 2.3.0-SNAPSHOT on your local .m2/repository
  4. Update the samples/mockapi-recommended/src/gateway/shared-pom.xml to use 2.3.0-SNAPSHOT version (Line number 76)
  5. cd samples/mockapi-recommended/src/gateway/Mock-v1
  6. Export variables
    export ORG=<APIGEE_ORG>
    export ENV=<APIGEE_ENV>
    export TOKEN=$(gcloud auth print-access-token)
  7. Run mvn clean install -Ptest -Dorg=$ORG -Denv=$ENV -Dbearer=$TOKEN

Let me know if it works with the proxy settings and report back if you see any issues

ssvaidyanathan commented 2 years ago

Fixed in v2.3.0