Score:1

Download file from Artifact Registry (Maven)

cn flag

I have been playing with REST API for Artifact Registry. I can find the URL for .zip files I would like to download, but I only get JSON responses. Is it possible to download individual artifact files from the Artifact Registry with Maven projects?

Source: Method: projects.locations.repositories.files.get

For now it seems like I would need to use mvn and gradle to do this which would be inconvenient in my case.

Score:0
it flag

As it described in the Artifact Registry API docs you mentioned, the files received by using the get method are represented in JSON.

You would need to use Maven or Gradle indeed to download an artifact.

As @IanW mentioned, there are two feature requests you can upvote:

Henrik Ormåsen avatar
cn flag
Thanks for confirming my suspicion and the link to feature request page. Will surly post that.
ba flag
There are 2 feature requests that I'd encourage everyone to star or +1: one for a UI download option: [225186486 - Artefact Download button in GAR console](https://issuetracker.google.com/issues/225186486) and one for a REST/Curl option: [203557347 - Download file from Artifact Registry (Maven)](https://issuetracker.google.com/issues/203557347) (may have been submitted by the OP)
ba flag
@Farid-Shumbar, would you care to update your answer with the links from my comment ?
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.