The Versions Plugin is used when you want to manage the versions of artifacts in a project's POM.
Questions tagged [versions-maven-plugin]
80 questions
6
votes
2 answers
Set version with versions-maven-plugin in interactive mode with M2Eclipse plug-in?
I want to change the version of my multi module project with versions-maven-plugin and goal versions:set in Eclipse. I use M2Eclipse.
I can set the new version with -DnewVersion=0.0.2-SNAPTSHOT in the launch configuration and it works fine. But I…

dur
- 15,689
- 25
- 79
- 125
6
votes
1 answer
Maven versions ignored includesList
When running versions:use-latest-versions, it seems to ignore my includesList sepecified on the commandline and attempts to update all depdencies.
mvn versions:use-latest-versions -DincludesList=com.mycompay.common:\* -DexcludeReactor=false …

nwb
- 653
- 1
- 5
- 12
4
votes
3 answers
Convenient way to update version of multi-module project in Eclipse
I have a Maven multi-module project in Eclipse.
Each time I want to update the version, I go to Run As -> Run Configurations..., change the parameter newVersion of the goal versions:set to a higher number and then run the goal.
Is there something…

J Fabian Meier
- 33,516
- 10
- 64
- 142
4
votes
1 answer
How to provide my "rules.xml" file in -DrulesUri argument of maven versions:update-properties without needing to specify it in pom.xml file?
I am using Maven Versions plugin's update-properties goal to update properties in pom.xml of multiples projects. (https://www.mojohaus.org/versions-maven-plugin/update-properties-mojo.html). I want the latest version of the dependency for…

Yogiraj
- 308
- 5
- 14
4
votes
1 answer
Maven "versions" plugin exclusion
I am trying unsuccessfully to exclude packages when displaying/updating versions and I don't get why.
I have a project:
my.group
parent-pom
pom
1.0
which in the…

Panos Karampis
- 557
- 6
- 18
4
votes
1 answer
How to set versions in a non-standard maven reactor build?
For reasons beyond my control, we have to use a maven project setup where the topmost pom.xml is not actually the parent pom. Now we would like to create a jenkins deployment pipeline, which of course would deploy a unique version of the entire…

Sean Patrick Floyd
- 292,901
- 67
- 465
- 588
4
votes
3 answers
mvn versions:set not updating child poms
I did much research on this but could not resolve it so far.
I've following structure,
root folder
parent/pom.xml (parent pom)
artifact1/pom.xml
artifact2/pom.xml
pom.xml (aggregator pom)
root/pom.xml
------------
…

Maulin Vasavada
- 51
- 1
- 4
4
votes
3 answers
Versions plugin not updating child modules, just parent being updated
I have parent pom with modules defined like so :
parent pom.xml
4.0.0
…

user701254
- 3,935
- 7
- 42
- 53
4
votes
1 answer
Update maven properties after a new release, using versions plugin
Im having a problem with a multimodule project in maven/jenkins.
For example my structure is like this:
---ProjectA
----pom.xml
--------ModuleA
---------pom.xml
--------ModuleB
---------pom.xml
---ProjectB
-----pom.xml
For example ModuleA has a…

Jaco
- 91
- 7
3
votes
1 answer
Set the version of a dependency from command line
I would like to set the version of a dependency in a POM from command line. Much like versions:set (for the version of the project), but for a specific dependency.
I don't want to craft any XML scanning tool because there are various ways to…

J Fabian Meier
- 33,516
- 10
- 64
- 142
3
votes
0 answers
Maven replace only SNAPSHOTS with latest version
So I am using maven 3.0.5 and am trying to replace all -SNAPSHOTS in a project with the LATEST release version equivalent. Before anyone points me to the versions maven plugin and the matrix…

Zero4573
- 93
- 1
- 5
2
votes
1 answer
Maven Artifact Resolver not seeing latest plugins on Maven Central on my machine
I am using Maven 3.9.1 on Windows 10. I also use Eclipse EE 2023-03, which contains m2e (Eclipse's support for Maven). I am checking a POM for plugin version updates using the Versions Maven Plugin, but many aren't showing up even though another…

Garret Wilson
- 18,219
- 30
- 144
- 272
2
votes
0 answers
Maven versions-maven-plugin NullPointerException when invoking with parent pom
I have a project folder structure where we use a parent pom and each subfolder contains its own pom.xml. Like this:
Project (pom.xml)
|- Addon-1 (pom.xml)
|- Addon-2 (pom.xml)
|- Addon-2 (pom_hotfix.xml)
Addon-1 and Addon-2 pom.xml contains a…

Florjud
- 73
- 2
- 5
2
votes
0 answers
Versions Maven Plugin : do not update to last release available
Let's consider I have a dependency in my pom.xml like this :
mygroupid
myartifactid
1.0-SNAPSHOT
For each build, I'd like the version of this dependency…

Jean-Baptiste Martin
- 851
- 8
- 30
2
votes
1 answer
Escape Maven properties on the command line
I am trying to call versions:set -DnewVersion=${revision}, but without ${revision} being replaced.
I tried to escape the $ as \$ or $$, but this did not work.
Any idea how to achieve this?

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