`

create maven repository and use curl upload file

阅读更多

We can use Nexus to build maven repository:

 

http://kidsmopi.iteye.com/blog/232554

 

Here is a quick example to upload with curl
curl --write-out "\n\nStatus Code: %{http_code}\n\n"' " http://localhost:8081/nexus/content/repositories/repoId//g/a/v/a-v.jar " -F myfile=@/some/file/foo.jar --request PUT --user admin:password

You can also use 'curl -T "{file1,file2}" http://www.uploadtothissite.com' to upload file to repository.
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics