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
1
vote
0 answers

Update specific Parent POMs

I have several POMs in my project and a few of them have parent pointing to an artifact outside my repository. So when I release this, I should have different versions for my parent and my project. I need to search that for POMs with "com.mycompany"…
Amit
  • 121
  • 1
  • 3
  • 12
1
vote
0 answers

Maven versions plugin: use "ignore" rules from parent project

Preface: I've taken over a historically grown multi-module maven project. Now it's time to clean up the dependency versions. Since using version ranges has its problems (first of all, they don't work according to specs; second, they remove the…
orithena
  • 1,455
  • 1
  • 10
  • 24
1
vote
1 answer

maven update version number automatically with buildNumber plugin

After watching some videos about setting up CI & CD and maven I tried to find the right order of how to use maven plugins in the release process. I set up a CI & CD chain before but it was with gradle, so the part that is the most confusing to me is…
Xtroce
  • 1,749
  • 3
  • 19
  • 43
1
vote
1 answer

Maven: pin dependency version where dependency is managed by a BOM

We use a Maven BOM to manage dependencies of a suite of libraries. The dependencyManagement section of the BOM generally uses version ranges to specify versions of these libraries, e.g., [2.0,2.1) Child pom.xml's using the BOM do not specify…
1
vote
0 answers

Maven - Artifactory: update dependencies with buildNumber

I have started to working at a company where they use the buildNumber concept. They open a release branch, with version set to 1.0.2-build1 for example. The next time they generate the artifact and deploy it, they increment this number, so…
Daniel Majano
  • 976
  • 2
  • 10
  • 18
1
vote
1 answer

Strange maven version ranges in versions-maven-plugin

I have see ranges from [1.1,2.0) or [1.1,) but what does this mean: org.codehaus.mojo
Xelian
  • 16,680
  • 25
  • 99
  • 152
1
vote
3 answers

Versions Maven Plugin: package not found after versions:use-latest-versions

When I execute in my Maven project the Versions Maven Plugin plugin with the command: mvn versions:use-latest-versions The pom.xml is updated with updated dependencies as it is supposed to do. The problem is that some libraries are updated to…
Lorenzo Lerate
  • 3,552
  • 3
  • 26
  • 25
1
vote
3 answers

Not seeing latest dependency version when I run versions:display-dependency-updates

I am trying to update dependencies in my java mvn project to latest version. When I run below command I see latest versions displayed, but I see different versions in central repository. mvn versions:display-dependency-updates -DskipTests=true…
1
vote
1 answer

How to tell mavens versions plugin to not use beta versions?

I would like to comment on Tim's answer here (https://stackoverflow.com/a/1172805/1746310) but because of my reputation I can't, I wrote it as an answer, saying that I wanted to comment, but can't because of my reputation. That message then got…
MetalSnake
  • 277
  • 3
  • 14
1
vote
1 answer

How to make versions-maven-plugin update maven-metadata-*.xml update before getting the latest artifact versions?

I am using versions-maven-plugin to automatically find latest release/snapshot versions of maven artifacts, found in many different nexus repositories. It seems like the plugin is using the maven-metadata-$REPO.xml (where $REPO is id for a…
Gogi
  • 1,695
  • 4
  • 23
  • 36
0
votes
1 answer

How to ignore SNAPSHOTs on Maven versions:set?

I would like to have Maven build Java projects on our Jenkins server. The version should be set correctly in the pom.xml. For this I use in the PreBuild Step: mvn build-helper:parse-version versions:set…
Burner
  • 981
  • 19
  • 41
0
votes
0 answers

Dependency tree doesn't give versions-maven-plugin source

I am using below command to identify versions-maven-plugin source, since the specified plugin has not been directly defined in the project. But it doesn't show any details related to the said plugin. mvn dependency:tree However below command gives…
Shabar
  • 2,617
  • 11
  • 57
  • 98
0
votes
1 answer

Maven Versions plugin skips some dependencies

I experienced that the Maven Versions plugin does not check every version property when running mvn versions:display-property-updates. It is noticeable that most of them are plugins.
Matthias
  • 7,432
  • 6
  • 55
  • 88
0
votes
1 answer

report an update in parent version to sonar or jenkins

When a maven build has a parent that is not the latest release version, the goal of the versions plugin display-parent-updates is reporting it nicely but I would like to report this somehow: mark the build with a WARNING or UNSTABLE status (to have…
user6761124
  • 117
  • 12
0
votes
1 answer

Using maven plugin versions-maven-plugin's use-latest-releases for latest releases

Used < goal> use-latest-releases for newer release(all non-SNAPSHOT) and replaces pom's version with the latest releases. I have added dependency(on which current project is dependent) in the pom.xml with < version> [anyVersionNumber] <…
Sam
  • 79
  • 1
  • 12