REST API for Packages

How I can download dependence(jar)?
I want to download with curl use TOKEN? It is possible?

I am also wondering about this. We currently use an onsite hosted Nexus repository and are looking to move to use Gitlab Maven. However one stopping block is that we cannot find a way to download JARs directly for use in several of our deployment pipelines. It seems the only way us via a browser with user interaction or using mvn itself.

Is there another way? Or is anything in the pipeline to extend the packages API to allow downloading artifacts?

How to use Maven packages is explained in Maven packages in the Package Repository | GitLab