简体   繁体   中英

how to create folder in sonatype nexus repository through command line

有没有办法通过Windows命令行或批处理文件创建文件夹和复制工件到sonatype nexus存储库中创建的文件夹?

I have finally got solution to my problem by curl functionality.

curl -u admin:admin123 -TC:\\upload\\Test.txt http://Nexus_Repo_URL/folder_to_be_created/Test.txt

"folder_to_be_created" is the folder which is created in the repository and the file, 'Test.txt', is copied to it

Just upload the artifacts to whatever path is needed using one of the methods described here:

https://support.sonatype.com/hc/en-us/articles/213465818-How-can-I-programatically-upload-an-artifact-into-Nexus-

Any folders needed will be created automatically.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM