2016-04-01 26 views

答えて

2

sonatypeサポート@リッチに感謝をダウンロードリンクを取り、?describe=info

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

に代わり、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 
    } 
} 

のオプション-H "Accept:application/json"カールフラグを返しますJSONを追加します。

関連する問題