Missing Request Entity response to a PUT to Nexus

旧街凉风 提交于 2020-01-11 13:37:06

问题


I'm trying to emulate a maven artifact publish to my Nexus repository, in an attempt to understand why my gradle build is failing.

I try:

curl -u 'me:secret'\
     -X PUT\
     -T my-artifact\
     -H 'Content-Type: maven-artifact/3.0.4'\
  http://nexus/nexus/content/repositories/snapshots

and I get:

<body>
  <h1>400 - Bad Request</h1>
  <p>Missing request entity</p>
</body>

What's the "missing entity"?


回答1:


A working example of a project that deploys to Nexus with Gradle is part of the Nexus Book Examples project and steps to follow are in the Nexus Evaluation Guide.



来源:https://stackoverflow.com/questions/19775793/missing-request-entity-response-to-a-put-to-nexus

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!