I have a group with two projects, and I wish to use the group level maven endpoint so that each project can reference one repository URL for the group instead of each project needing to know the specific project repositories.
However, I cannot seem to get it to work. I can build a library and push its artifact to the repository, and another project can find it with the project level maven endpoint. However, when I use the group level repository URL, replacing
my-group with my group, the build fails because it “Could not find artifact”. Has anybody got this to work?
<repositories> <repository> <id>gitlab-maven</id> <url>https://gitlab.com/api/v4/groups/my-group/-/packages/maven</url> </repository> </repositories>