【问题标题】:Is it possible to install rpm package from a Nexus yum repo using Maven?是否可以使用 Maven 从 Nexus yum 存储库安装 rpm 包?
【发布时间】:2020-01-14 00:14:47
【问题描述】:

我想使用 Maven 程序集插件创建一个包含一些文件和 rpm 包的 zip,我想知道是否有一种方法可以使用 pom.xml 从 Nexus yum 存储库下载 rpm(作为依赖项或还要别的吗)。 我找到了 rpm-maven-plugin,但它只能创建一个 rpm,无法从 Nexus 下载。

【问题讨论】:

    标签: maven nexus rpm


    【解决方案1】:

    我找到了解决方案,我使用了 mvn wagon:

    mvn wagon:upload-single -Dwagon.serverId=<ServerID> -Dwagon.url=http://<ServerUrl>/repository/<NexusReposirory>/<RPM file name> -Dwagon.fromFile=<RPM file>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-12-02
      • 2011-06-17
      • 1970-01-01
      • 2016-04-19
      • 2012-05-20
      • 2015-06-16
      • 1970-01-01
      • 2015-05-03
      相关资源
      最近更新 更多