[maven] improve usablity of maven package repository
Problem to solve
The maven package feature is rather new and feels a bit unpolished and hard to use.
Intended users
Maven User
Proposal
- show URL and login instructions "packages" page. Similar to "How to use the Container Registry" for the Registry.
- make use of real maven URLS for packages page when downloading artifacts. Currently it has urls like "https://...gitlab.host/group/project/-/package_files/4/download". Such as "http://central.maven.org/maven2/io/crnk/crnk-core/2.6.20180522184741/crnk-core-2.6.20180522184741.jar".
- repositories should have meaningful urls. In that regard they should make use of project/group names rather than project ids like api/v4/projects/2/packages/maven. That "2" is rather confusing.
- make maven endpoint discoverable: when acessing api/v4/projects/2/packages/maven from the browser, it should be possible to navigate that endpoint, see sub directories, etc.
- created dedicated ticket for authentication issues (https://gitlab.com/gitlab-org/gitlab-ce/issues/59589)