I have a Maven package registry hosted in a project that belongs to a group.
In that registry I manually uploaded an artifact (pom and jar files) using a personal access token.
I have a project that uses that artifact from that package registry. So, when I try to execute the test stage, it fails with this error:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:3.1.2:get (default-cli) on project docker_receiver: Couldn't download artifact: org.eclipse.aether.resolution.DependencyResolutionException: Could not find artifact transparent_coach:maven_registry:jar:1.0.0 in gitlab-maven (https://gitlab.com/api/v4/projects/23241686/packages/maven)
This is the test stage I am running:
test: stage: test allow_failure: false tags: - docker - dind script: - mvn --version - echo "$TC_GITLAB_AUTH_SETTINGS" > settings.xml - mvn dependency:get -Dartifact=transparent_coach:maven_registry:1.0.0 - mvn clean verify
settings.xml file is present and it contains the correct structure with the same personal token I used for uploading the artifact to the registry. Parameters for the registry and the artifact in
pom.xml are correct.
What am I doing wrong here?