【问题标题】:Maven - command line to updates dependency by groupIdMaven - 通过 groupId 更新依赖项的命令行
【发布时间】:2019-07-12 13:16:13
【问题描述】:

我想只更新“groupA”依赖项。我该怎么做?

<dependency>
  <groupId>groupA</groupId>
  <artifactId>my-artifact1</artifactId>
  <version>1.0.0</version>
</dependency>

<dependency>
  <groupId>groupA</groupId>
  <artifactId>my-artifact2</artifactId>
  <version>1.0.0</version>
</dependency>

<dependency>
  <groupId>groupB</groupId>
  <artifactId>my-artifact1</artifactId>
  <version>1.0.0</version>
</dependency>

【问题讨论】:

标签: maven


【解决方案1】:

怎么样

mvn versions:use-latest-versions -Dincludes=groupA:*:*:*:*

?

这应该会更新所需 groupId 的所有依赖项。

【讨论】:

    猜你喜欢
    • 2014-02-09
    • 1970-01-01
    • 2019-07-04
    • 2017-08-13
    • 1970-01-01
    • 2016-02-16
    • 1970-01-01
    • 2017-04-21
    • 1970-01-01
    相关资源
    最近更新 更多