0

I would like to update dependencies just "groupA". How can I do this?

<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>
  • first you can set a property to store the group A version. Check https://stackoverflow.com/questions/19123013/maven-version-with-a-property – Maelig Jul 12 '19 at 13:36

1 Answers1

0

What about

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

?

This should update all Dependencies that are of the desired groupId.

J Fabian Meier
  • 33,516
  • 10
  • 64
  • 142