Questions tagged [maven-versions-plugin]

50 questions
0
votes
0 answers

Release branch should take latest release version(non-snapshot) of the child dependencies

We have 3 projets A,B and C where B,C are child dependencies for the project-A A--->B,C While creating a new release branch the project A should pick latest release-jars of projects B and C Ex: B,C has jars like 1.2-snapshot(1.2.1,1.2.2,1.2.3...)…
Navya
  • 1
  • 2
0
votes
0 answers

Maven version plugin not working properly

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…
Dummy B
  • 33
  • 5
0
votes
0 answers

Maven versions plugin very slow

I have single maven "project" that uses spring-boot-starter-parent as its parent. Main pom.xml includes 17 other projects. When I run: mvn -B -U versions:use-releases -DexcludeReactor=false -DgenerateBackupPoms=false -DallowSnapshots=false…
Jędrzej Dudkiewicz
  • 1,053
  • 8
  • 21
0
votes
1 answer

How to process a maven version:set with exact version

I'm trying to change the version of the maven application that I'm currently working. For that I executed the below command: mvn versions:set -DnewVersion=9.0.174.33-SNAPSHOT -DprocessAllModules I want to change the version to 9.0.174.33-SNAPSHOT.…
Thiluxan
  • 177
  • 4
  • 13
0
votes
1 answer

How to only check top level (pom-listed) packages for updates with "Versions Maven Plugin"?

Currently the check for updatable modules takes a huge amount of time. It seems as if the module does not only check the direct project dependencies but also the indirect dependencies - which does not really make sense (in most of the scenarios). I…
eventhorizon
  • 2,977
  • 8
  • 33
  • 57
0
votes
2 answers

Issue at work but not at home: mvn versions:display-dependency-updates

When I run mvn versions:display-dependency-updates at home, I get the expected results (output that shows which dependencies have new version). However, when I run it at work, which uses an internal Maven repository (Nexus Repository Manager…
Ruminator
  • 129
  • 3
  • 13
0
votes
1 answer

Exclude property using mvn versions:update-properties with excludesList

I'm using mvn versions:update-properties -DexcludesList=org.scalatest:scalatest* to exclude update of property scalatest.version inside pom.xml: 3.0.5 But after running the…
rok
  • 9,403
  • 17
  • 70
  • 126
0
votes
1 answer

Maven-versions-plugin: regex for negating versions which do not follow a specific tag format

I am using the maven-versions-plugin with the setProperties goal. I have defined a ruleset to compare current property version with available versions containing a git branch name (a git tag), and having the following…
Caroh
  • 113
  • 8
0
votes
1 answer

How to update/fix a single child module's parent version

Structure I know this project structure is not "the Maven way" and this is why I struggle in the first place. Unfortunately I cannot change the project structure. I try to simplify it as much as possible: /module-a /module-b /module-c /parent …
msa
  • 702
  • 7
  • 14
0
votes
1 answer

versions-maven-plugin:update-property not updating pom.xml

Hi Meier I have used the following goal: mvn versions:update-property -Dproperty="emom.web.dependency.shr.version" -Dincludes:org.safeway.com:emom-shr -DgenerateBackupPoms=false -DallowIncrementalVersios=true …
0
votes
0 answers

How to update parent POM and related children?

First the structure: My parent POM has no references to child modules etc. There is a separate reactor-POM that contains the ... section - and the reactor POM is also a child of the parent POM (the modules listed in the reactor…
norb
  • 77
  • 1
  • 10
0
votes
0 answers

Maven: modify artifact version depending on day of the week

one of my colleagues, gave me the task of modifying the version of our Maven artifacts depending on the day of the week. Monday through Saturday: SNAPSHOT version. Sunday: Without SNAPSHOT Is there a way to make this idea a success? I can't make it…
Hans.Olo
  • 67
  • 10
0
votes
0 answers

Why does the maven versions plugin not recommend a plugin upgrade

According to the plugin page the latest version of the maven dependencies plugin is 3.1.1. In my project I see: ./mvnw dependency:help | grep "Apache Maven Dependency Plugin" [INFO] Apache Maven Dependency Plugin 2.10 If I run ./mvnw…
David
  • 7,652
  • 21
  • 60
  • 98
0
votes
1 answer

Maven update property based on version

I would like to update a property in a given pom to the major+minor version of the new version when I perform a release. To do this, I need to set goals to run during the release. I can calculate the property ahead of time, but the…
0
votes
1 answer

maven versions plugin does not update versions for reactor

I am currently trying to update the dependencies for the internal libraries via the versions plugin from maven. The plugin neatly updates external libraries, but does no change on the mulitmodule libraries. To describe what I did before I build…
Xtroce
  • 1,749
  • 3
  • 19
  • 43