Questions tagged [versions-maven-plugin]

The Versions Plugin is used when you want to manage the versions of artifacts in a project's POM.

80 questions
54
votes
3 answers

How to update the maven version without pom backup files

How do you run maven with the versions plugin to update the version inside several pom.xml files and not get the annoying pom.xml.versionsBackup files? (I have my poms in version control, so I don't need a backup). I run this command to update the…
Jess
  • 23,901
  • 21
  • 124
  • 145
37
votes
7 answers

How can I update a property in a Maven POM?

I have two top-level Maven projects, backend and frontend, that advance versions at their own individual pace. Since each has multiple modules, I define my dependency versions in dependencyManagement sections in the parent/aggregate POMs and use a…
chrylis -cautiouslyoptimistic-
  • 75,269
  • 21
  • 115
  • 152
34
votes
4 answers

Remove -SNAPSHOT from project version in pom

I have a pom with the following GAV com.company.services test-branch-2 1.0.21-SNAPSHOT I want to remove -SNAPSHOT from this using maven in batch mode, so I can do it with Jenkins and…
Jepper
  • 1,092
  • 3
  • 11
  • 24
19
votes
4 answers

Maven versions-maven-plugin versions plugin 2.2 -- Maven Uncle Situation

Maven is 3.1.0. I'm using versions-maven-plugin:2.2 in my project's pom.xml (as shown below). Apart from the usual pom.xml file configuration, I'm just showing the main code snapshot below:
15
votes
1 answer

How to hide inherited dependencies in Versions Maven Plugin?

I'm trying to use Versions Maven Plugin, together with spring-boot. Problem: when running versions:display-dependency-updates to autoecheck for latest dependencies, I'm not only getting the updates defined in my pom.xml, but also all inherited…
membersound
  • 81,582
  • 193
  • 585
  • 1,120
14
votes
2 answers

Maven versions plugin: updating plugins

I'm seeing some updates when I run the versions:display-plugin-updates but I found no way for the plugin to fix those. Am I just missing something? Here's the output: The following plugin updates are available: maven-checkstyle-plugin…
javydreamercsw
  • 5,363
  • 13
  • 61
  • 106
12
votes
1 answer

Fully automate release procedure with release+versions plugins

Would be great if Maven guru community can help me with the following task. I would like to automate the release process of Maven module in Hudson in a way that release process runs in batch mode (does not need anything to be asked from console).…
dma_k
  • 10,431
  • 16
  • 76
  • 128
10
votes
1 answer

"Project does not define required minimum version of Maven" with versions-maven-plugin 2.7

I'm facing the following error executing mvn versions:display-plugin-updates. Basing on this discussion, that was fixed in 2.6, but I'm using 2.7 (tried with 2.6 but with no success). [ERROR] Project does not define required minimum version of…
sys463
  • 337
  • 2
  • 5
  • 18
10
votes
1 answer

Maven ignoring plugin version from pluginManagement in profile of submodule

I'm defining plugin versions in the section of a parent POM and want to use them in the section of submodules. This is working, unless the plugin is being used inside a profile of a submodule. In this case, the version…
joschi
  • 12,746
  • 4
  • 44
  • 50
10
votes
2 answers

Maven versions plugin: reference a rule.xml from a maven dependency?

I am using the mvn versions:display-dependency-updates versions:display-plugin-updates goals to check for dependencies or plugins updates. My maven project is a multi module one, which looks like this: moduleA |- moduleB1 | |- moduleC |-…
NoDataFound
  • 11,381
  • 33
  • 59
8
votes
2 answers

Maven check that all dependencies have been released

As part of my release process, I use mvn versions:use-releases goal to replace all -SNAPSHOT dependencies with released versions. After this, I want to check if all the SNAPSHOT dependencies have been replaced with releases or not. Question: How can…
Mikhail Chibel
  • 1,865
  • 1
  • 22
  • 34
8
votes
2 answers

Versions Maven Plugin in Eclipse

How can I add the Versions-Maven-Plugin to my Eclipse projects ?? I tried the Add Plugins menu option but it doesn't seem to be able to find the plugin.
Saad Farooq
  • 13,172
  • 10
  • 68
  • 94
7
votes
3 answers

maven versions release candidates and snapshot

My goal is to release a project which have a single dependency. I have a nexus repository where i deploy both snapshot and release versions. The one dependency I have has group:artifact:1.1.0-SNAPSHOT and the following Release Candidate is…
mirlitone
  • 155
  • 1
  • 1
  • 6
6
votes
1 answer

Maven versions plugin update to next snapshot

I'm trying to use the maven versions plugin to update my pom to the next snapshot version. eg. 0.0.1 should change to 0.0.2-SNAPSHOT. From my reading of http://www.mojohaus.org/versions-maven-plugin/set-mojo.html I would expect mvn versions:set…
ssloan
  • 2,226
  • 4
  • 26
  • 40
6
votes
1 answer

Maven Versions Plugin: versions:use-releases does nothing

I need change all snapshots dependency of my project before pass to release. I'm trying versions:use-releases from commandline mvn versions:use-releases, but it doesn't work for me. I'm using Nexus repository for releases and the releases versions…
johnnymnmonic
  • 774
  • 8
  • 11
1
2 3 4 5 6