Hi,
Please add me to this mailing list. I have an issue.
I am working on a feature which deploys/fetches Ballerina artifacts to/from
maven repositories. I need to add the proxy support as a part of the
implementation. When I try to publish an artifact to github-maven-registry
through an http proxy(locally configured mitmproxy), It hangs continuously.
I could not get traffic captured in the proxy. Here is my implementation,

https://github.com/Thevakumar-Luheerathan/ballerina-lang/blob/fix-ballerina-lang-iss-41016-1/misc/maven-resolver/src/main/java/org/ballerinalang/maven/bala/client/MavenResolverClient.java

I encountered the same issue when I tried to deploy an artifact with the
maven cli tool.
./mvn deploy:deploy-file -Durl=
https://maven.pkg.github.com/Thevakumar-Luheerathan/module-ballerina-c2c
-DrepositoryId=repo1
-Dfile=./pat-0.1.0.bala -DgroupId=luheerathan -DartifactId=pat
-Dversion=0.1.0 -Dpackaging=bala -Dhttp.proxyHost=127.0.0.1
-Dhttp.proxyPort=8080 -Dhttp.proxyUser=luhee -Dhttp.proxyPassword=modi -s
./settings.xml -X

I tried the same thing with curl. It worked fine.
curl -v -x "http://luhee:modi@127.0.0.1:8080"; --cacert
~/.mitmproxy/mitmproxy-ca-cert.pem -u Thevakumar-Luheerathan:$packagePAT
 -O
https://maven.pkg.github.com/Thevakumar-Luheerathan/module-ballerina-c2c/luheerathan/pact/0.1.0/pact-0.1.0.bala

Thanks.
Luheerathan Thevakumar

Reply via email to