upload artifacts to nexus 3.15 with curl

7,506 views
Skip to first unread message

Dan Steffen

unread,
Mar 19, 2019, 9:00:47 AM3/19/19
to Nexus Users
Hello,

we are using nexus 3.15 and since some days I try to upload a file with curl in a maven2 release Repository I don't have success. Till this point I already try something like

curl -v -uadmin:admin1234 --no-proxy '*' --upload-file example.jar 'https://artifact.example.com/nexus/repository/test_release2



and

curl --noproxy '*' -v -k\
     
-F "r=releases"\
     
-F "g=com.acme.widgets"\
     
-F "a=widget"\
     
-F "v=0.1-1"\
     
-F "p=jar"\
     
-F "file=@./example.jar"\
     
-u admin:admin1234\
     https
://artifact.example.com/nexus/repository/test_release2/content




but nothing works, that's why I would very thanksful if someone can give a working example how to upload files to nexus 3.15
best regards
Dan



Michael Martz

unread,
Mar 19, 2019, 9:06:51 AM3/19/19
to Dan Steffen, Nexus Users
If you aren't using maven to upload the components, then you should look at the Upload Components API. Our REST APIs can be found at Admin > System > API or you can read about the Upload Components API from our documentation.


Alternatively, you can use the Upload UI for a single component.


I hope that helps,

Michael Martz

--
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/398feb0f-05ac-48b3-a3b5-102f0b6dd754%40glists.sonatype.com.
For more options, visit https://groups.google.com/a/glists.sonatype.com/d/optout.


--
Sonatype
Michael Martz
Software Engineer

Peter Lynch

unread,
Mar 19, 2019, 10:41:33 AM3/19/19
to Dan Steffen, Nexus Users

Hi Dan,


best regards
Dan



--
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/398feb0f-05ac-48b3-a3b5-102f0b6dd754%40glists.sonatype.com.
For more options, visit https://groups.google.com/a/glists.sonatype.com/d/optout.


--
Sonatype
Peter Lynch
Senior Product Support Engineer

Reply all
Reply to author
Forward
0 new messages