2016-04-01 8 views

Antwort

2

den Download-Link Nehmen und ?describe=info

curl -H "Accept:application/json" \ 
"http://nexus.example.com/nexus/service/local/repositories/foobar/content/master-5678.zip?describe=info" 

Die optionalen -H "Accept:application/json" Curl Flag kehrt JSon statt xml

{ 
    "data":{ 
     "presentLocally":true, 
     "repositoryId":"foobar", 
     "repositoryName":"foobar", 
     "repositoryPath":"/master-5678.zip", 
     "mimeType":"application/zip", 
     "uploader":"bob", 
     "uploaded":1459458352000, 
     "lastChanged":1459458352000, 
     "size":715112200, 
     "sha1Hash":"d18dd27f4814e0898df98e7aa47cc08c477dfabc", 
     "md5Hash":"ded916cf74e7dd97e698285c2880e7a8", 
     "repositories":[ 
     { 
      "repositoryId":"foobar", 
      "repositoryName":"foobar", 
      "path":"/master-5678.zip", 
      "artifactUrl":"http://nexus.example.com/nexus/content/repositories/foobar/master-5678.zip", 
      "canView":true 
     } 
     ], 
     "canDelete":false 
    } 
} 

Dank rich @ Sonatype Unterstützung anhängen.

Verwandte Themen