How to send custom HTTP headers when downloading packages?

2022-11-01 Thread Rabe, Jens
I investigated the problem not being able to download packages from a Gitlab Maven repository a bit further. It turns out that I need to send a custom HTTP header named "Private-Token" with my Personal Access Token. Is this possible to do with Ivy, and if yes, how do I configure this in

RE: Cannot download artifacts from a package repository on Gitlab

2022-11-01 Thread Rabe, Jens
Hello, since this happens in Docker containers freshly spun up (as it is invoked from Apache Spark on k8s) there is no ~/.ivy2 at start. Plus, the output before is all I get. -Original Message- From: Archie Cobbs Sent: Tuesday, November 1, 2022 15:02 To: ivy-user@ant.apache.org

Re: Cannot download artifacts from a package repository on Gitlab

2022-11-01 Thread Archie Cobbs
Not sure if this is the problem, but sometimes after fixing things you need to rm -rf ~/.ivy2/cache/com.company.my to make ivy forget the earlier invalid state. If that doesn't fix it, then there should be an error/exception displayed when ivy tries to download it. On Tue, Nov 1, 2022 at 8:57 AM

Cannot download artifacts from a package repository on Gitlab

2022-11-01 Thread Rabe, Jens
Hello, I am trying to get artifacts from a Maven-style package repository using our company Gitlab. I put together my ivy-settings.xml like this: https://my.company.com/api/v4/projects/1337/packages/maven;