Download file from package repo with complex package name

this link describes how a specific file could be downloaded from the packages repository. The GET request for that looks like that:

GET /projects/:id/packages/generic/:package_name/:package_version/:file_name

However, we’re using maven, and because of that the package_name is constructed as a combination of groupId and artifactId and a slash between them. Each dot in the groupId is replaced by a slash as well. These additional slashes lead to a http response 404 not found. Is there a means to get around that? Many thanks in advance!

Hey there,

I’m not a Maven expert or anything, so maybe it’s a stupid hint but - have you tried using GitLab Maven Repository instead of generic one?

3 Likes

good hint, that helped it out!

2 Likes