【问题标题】:how to search maven artifact using mojo?如何使用 mojo 搜索 maven 工件?
【发布时间】:2012-12-18 07:44:16
【问题描述】:

我正在绞尽脑汁从 repo (Nexus) 下载工件。但大多数时候我只知道工件 Id 和版本。有没有办法只使用工件 ID 和组 ID 下载工件?

【问题讨论】:

    标签: maven mojo artifact


    【解决方案1】:

    我想到的第一件事是什么?你为什么不使用maven-dependency-plugin 此外,仅基于 groupId 和 artifactId 下载工件是没有意义的,因为在 Maven 中,工件由 groupId、artifactId 和版本标识,否则不是独特的。否则,可以使用 nexus 的 REST API 来搜索工件列表。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-01-13
      • 2016-06-02
      相关资源
      最近更新 更多