0

I am using Maven Version plugin and Executing the below command

mvn versions:use-latest-versions

It is updating the version of all the dependencies except one dependency where Current version config in pom. Xml is 4.5.2 but latest version available of that dependency is 4.6.1

What I am doing wrong here?

Dummy B
  • 33
  • 5
  • Do you have a configuration for versions-maven-plugin in your own pom ? Which version of versions-maven-plugin do you use? Which Maven version do you use? – khmarbaise Dec 17 '21 at 07:56
  • I am using Maven 3.8.2 and version plugin used is 2.8.1 and I don't have the version-maven-plugin defined in the pom – Dummy B Dec 17 '21 at 08:20
  • That can't be because if you have called it like the given post `mvn versions:use-latest-versions` you must have one in your pom file or something in your settings.xml ... – khmarbaise Dec 17 '21 at 08:24
  • Even without defining that plugin , it is executing that command and updating the dependencies versions to latest except for one of the dependency – Dummy B Dec 17 '21 at 08:34
  • As I wrote there must be some kind of configuration otherwise it would have failed upfront... please check if there is a configuration for example in a parent pom file etc... the configuration can influence this behaviour....also please add the full output during the update process etc... – khmarbaise Dec 17 '21 at 08:50
  • How I can add the maven-version-plugin dependency in settings.xml – Dummy B Dec 17 '21 at 09:30
  • The dependency can not being add to settings.xml only the pluginGroups see https://maven.apache.org/settings.html – khmarbaise Dec 17 '21 at 12:11

0 Answers0