Set version when uploading to a raw repository

2,061 views
Skip to first unread message

Dave H

unread,
Jun 29, 2017, 2:34:46 PM6/29/17
to Nexus Users
I've noticed when browsing raw repositories, there is a column "version" for the artifacts that is always empty.  Is there a way to utilize that field when uploading/downloading artifacts from a raw repo? Typically we upload via the CURL command.

Jeffry Hesse

unread,
Jun 29, 2017, 2:47:14 PM6/29/17
to Dave H, Nexus Users
Hi Dave,

Not to my knowledge. Raw repositories store very little information about uploaded items. 

It is certainly an interesting use case. Are you using a raw repo to store a specific repository format we don't have support for as of yet? Interested in your use case. 

I and a few others internally have been working on some formats primarily for Open Source, as examples of how to roll your own format, hence the question.

Jeffry 

On Thu, Jun 29, 2017 at 10:34 AM Dave H <david....@gmail.com> wrote:
I've noticed when browsing raw repositories, there is a column "version" for the artifacts that is always empty.  Is there a way to utilize that field when uploading/downloading artifacts from a raw repo? Typically we upload via the CURL command.

--
You received this message because you are subscribed to the Google Groups "Nexus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nexus-users...@glists.sonatype.com.
To post to this group, send email to nexus...@glists.sonatype.com.
To view this discussion on the web visit https://groups.google.com/a/glists.sonatype.com/d/msgid/nexus-users/348a3bc0-7a6c-4d5d-a40b-bb2f97d2111d%40glists.sonatype.com.
For more options, visit https://groups.google.com/a/glists.sonatype.com/d/optout.

Dave H

unread,
Jun 29, 2017, 3:11:14 PM6/29/17
to Nexus Users, david....@gmail.com
We use the raw repo for holding various things -- notably C/C++ libraries (both .so and .dll).  In this case we group them as if they were Maven-ish artifacts (group, version, architecture, artificat name).  Also it holds java jre jdk installables organized by platform.

Jeffry Hesse

unread,
Jun 29, 2017, 3:19:33 PM6/29/17
to Dave H, Nexus Users
Good to know, thanks Dave!

For version, about the best thing you can do using Raw is put the version in the path for the asset, which it sounds like you are doing. 

If you were interested in rolling your own format for the C/C++ stuff, you might take a gander at what we did for R: https://github.com/sonatype/nexus-repository-r

Reply all
Reply to author
Forward
0 new messages