I'm trying to use Maven command line (mvn) to download a JAR file.
This post helped me to get to this nice command:
mvn dependency:get -Dartifact=<group>:<artifact-name>:<version> -DremoteRepositories=...
But I still could not figure out how to pass an auth token (since it is a private repository).
I also tryied to append -DhttpHeader="Authorization: Bearer ..."
with no success, but I don't remember where did I get this.
How can I set an authorization token for it, please?