Nexsu 3.2 repository - How to upload or download a file in raw_hosted repository

1,472 views
Skip to first unread message

Sarabu

unread,
Mar 6, 2017, 11:52:29 PM3/6/17
to Nexus Users
Hello Team,
        I am a startup user of nexus repository,i need to upload all kinds of files into the repository in a proper directory structure. So i found Raw_hosted repository might be helpful.
Could you please let me know how to upload a file using curl or power shell script into the repository in a step-by step process and also process to download the files in the same folder structure as they are.
I tried uploading the file but getting the error as in the attached image.

Regards,
Niharika.
Error in Curl.png

Manfred Moser

unread,
Mar 7, 2017, 12:15:18 AM3/7/17
to nexus...@glists.sonatype.com, nsa...@finsoftware.com
--
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/db8d99fa-9040-4218-b979-3d227849136c%40glists.sonatype.com.
For more options, visit https://groups.google.com/a/glists.sonatype.com/d/optout.
Error in Curl.png

Sarabu

unread,
Mar 7, 2017, 12:55:24 AM3/7/17
to Nexus Users, nsa...@finsoftware.com

Hi Manfred,

yes, i have gone through the documentation through which i got "curl" command, but that command is giving error in the attached screenshot. Not sure what the error mean and how to resolve. So please suggest me the fix and the way to download the files from repository in the similar folder structure.

Regards
Niharika.

Rich Seddon

unread,
Mar 7, 2017, 9:43:11 AM3/7/17
to Sarabu, Nexus Users
Since you're on windows, single quotes won't work at a command prompt.  Try using: --user "admin:admin123"

To unsubscribe from this group and stop receiving emails from it, send an email to nexus-users+unsubscribe@glists.sonatype.com.

To post to this group, send email to nexus...@glists.sonatype.com.

Manfred Moser

unread,
Mar 7, 2017, 11:05:21 AM3/7/17
to nsa...@finsoftware.com, rse...@sonatype.com, nexus...@glists.sonatype.com

Thanks for beating me to it. In general I would suggest to use the linked groovy script from the documentation since it can upload whole directory structures and not just simple files... 

Manfred

Reply all
Reply to author
Forward
0 new messages