问题
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