如何编辑SBT为发布列表(或发布)生成的IVY.xml文件

发布于 2025-02-12 21:18:57 字数 341 浏览 0 评论 0原文

SBT似乎在PublishLocal期间创建了一个IVY.xml文件以及POM文件,即使thisBuild / publishmavenstyle:= true < / code>。出版似乎并不是问题,因为ivy.xml文件永远不会到达服务器。本地发布的快照的SBT消费者似乎使用ivy.xml文件而不是pom文件。我已经编辑了使用thisbuild / poppostProcess生产的POM文件:= ??? < / code>,并希望类似地编辑ivy.xml。我们可以访问IVYSBT(以及许多其他内容),但是我看不到如何编辑IVY文件的字符串或XML节点。谁能展示如何做到这一点?

sbt seems to create an ivy.xml file, along with a pom file, during a publishLocal, even though ThisBuild / publishMavenStyle := true. It doesn't seem to be a problem with publish, because the ivy.xml file never makes it to the server. An sbt consumer of the locally published snapshot seems to use the ivy.xml file rather than the pom file. I've edited the pom file that gets produced using ThisBuild / pomPostProcess := ??? and would like to edit the ivy.xml similarly. We have access to ivySbt (and lots of other things), but I don't see how to edit the string or the XML nodes of the ivy file. Can anyone show how that might be done?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文