将发送到常春藤的罐子也发布到 Nexus

Publish Jars Sent to ivy also to Nexus

我有一个现有项目,作为构建过程的一部分将其 jars 发布到本地 ivy 存储库。我想弄清楚如何跟踪 ivy 修订号以命名我们的 pom 文件和 jars,然后将它们与 ant 一起发送到 nexus。

我尝试了几个不同的教程,但都没有成功,但设法生成了一个 pom 文件。只需要取回修订号并找到一个可以将它们推送到 maven 的 ant 任务。

以下答案提到了 buildnumber task and how it can be combined with the deliver and makepom 创建解析的 POM 文件以上传到 Nexus 的任务。

  • Automate ivy revision increase for all my projects using ant script

以下答案给出了更多关于如何使用 ivy 将 artecfacts 推送到 Maven 存储库的示例

  • Convert ivy.xml to pom.xml
  • how to publish 3rdparty artifacts with ivy and nexus

希望对您有所帮助。