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
2
votes
2 answers

mvn versions:use-releases only find release in .m2 but could not find in repository

I need to replace my module's parent and dependent modules' snapshot version with release version for the process of release. First, I run "mvn versions:set -DremoveSnapshot=true versions:commit" to remove my module's snapshot version. It works…
2
votes
0 answers

Maven update component version in all components using it

My project consists of numerous (~100) components, most of them use ~10 core components. When I update a version of a core component I would like to have up-to-date version of it in every component that is using it. Trouble is that components depend…
2
votes
0 answers

Offer alternatives to versions:dependency-updates-report

I have problem with versions:dependency-updates-report which I cannot solve. Maybe someone could offer some alternative which would make similar html report with those columns (Next Version, Next Incremental, Next Minor, Next Major)?
2
votes
0 answers

Maven dependency updates report takes hours to complete

I have task to run Jenkins job witch would report newer version of libraries. I think that these would do what I…
2
votes
1 answer

Exclude release candidates in Versions Maven Plugin

How can I configure the Versions Maven Plugin to exclude release candidates of certain dependencies? The versions of the dependencies in question have following format: \d+\.\d+\.\d+\.\d+(-rc\d+)? OR…
mike
  • 4,929
  • 4
  • 40
  • 80
2
votes
1 answer

Maven: versions:update-parent followed by install installs old version

I have the two following maven projects pom.xml (parent) -- pom.xml (aggregate, extends parent) | |--pom.xml (module, extends aggregate) Only place where the artifact version is defined is the parent. Other projects or their modules inherits the…
Tuomas Toivonen
  • 21,690
  • 47
  • 129
  • 225
2
votes
1 answer

Does the Maven Versions Plugin read rules also from classpath?

The Maven Versions Plugin supports the defintion of rules to customize the version resolution process for goals as versions:display-plugin-updates or versions:display-dependency-updates. The location of the rules file can be specified by the…
Oliver
  • 3,815
  • 8
  • 35
  • 63
2
votes
1 answer

excludesList parameter usage in versions:update-properties

I have the following in my pom: . . 1.1 1.2 1.3 . . org.codehaus.mojo
Mark Khateeb
  • 907
  • 3
  • 11
  • 26
2
votes
0 answers

Maven versions plugin -- use latest, preferring snapshots

I'm not really clear on use-latest-snapshots and use-next-snapshots. Basically, I want to update a set of dependencies (not every one) to the latest. If a snapshot is available, I want to force using that instead of the release version. For…
Robert Fraser
  • 10,649
  • 8
  • 69
  • 93
2
votes
1 answer

Maven update versions goal builds old version in Jenkins

I've got a Jenkins/maven build where we need to be able to produce release artifacts with arbitrary version numbers. The version number is passed in as a parameter to the build job. I'm using versions:set to update the version from what is in the…
2
votes
0 answers

Where to run mvn versions:set for a multi-module project (with aggregator)?

I've got a multi-module maven project with a build/aggregate pom. In my project, I have a common parent pom which has a version number set, and all child modules inherit the parent version (ie: there is no version information in any of the child…
Eric B.
  • 23,425
  • 50
  • 169
  • 316
2
votes
1 answer

Maven release and versions maven plugin

What is the numbering/versioning strategy for dependencies when doing snapshots/releases? A team of 15 developers,20 Maven parent projects = total 70+ POMs including child module POMs. Currently there are a lot of dependencies where most of these…
2
votes
1 answer

Maven versions plugin, limit versions:update-properties damage

I have a multimodule maven project, where module share dependencies. By share I mean use the same dependencies. However each module declares dependencies itself. To keep sanity (yeah, maven, sanity, I know), and to have all modules using the same…
Oleg Šelajev
  • 3,530
  • 1
  • 17
  • 25
2
votes
1 answer

Maven versions plugin : where are version compared against

I'm reading about the maven versions plugin : http://mojohaus.org/versions-maven-plugin/examples/advancing-dependency-versions.html For this goal : "versions:use-next-releases searches the pom for all non-SNAPSHOT versions which have been a newer…
user701254
  • 3,935
  • 7
  • 42
  • 53
1
vote
0 answers

Versions Maven Plugin update-parent checks online maven

I have 2 maven projects in- parent and child, both having 0.0.1-SNAPSHOT. The pom of parent:
Amit
  • 121
  • 1
  • 3
  • 12