缺少对Nexus的PUT的请求实体响应 [英] Missing Request Entity response to a PUT to Nexus
本文介绍了缺少对Nexus的PUT的请求实体响应的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试模拟发布到Nexus存储库的Maven工件,以了解为什么我的gradle构建失败.
I'm trying to emulate a maven artifact publish to my Nexus repository, in an attempt to understand why my gradle build is failing.
我尝试:
curl -u 'me:secret'\
-X PUT\
-T my-artifact\
-H 'Content-Type: maven-artifact/3.0.4'\
http://nexus/nexus/content/repositories/snapshots
我得到:
<body>
<h1>400 - Bad Request</h1>
<p>Missing request entity</p>
</body>
什么是缺失实体"?
推荐答案
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.
这篇关于缺少对Nexus的PUT的请求实体响应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文