-
Notifications
You must be signed in to change notification settings - Fork 267
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update-child-modules is doing more than I wish... #190
Comments
Taken a look on http://www.mojohaus.org/versions-maven-plugin/update-parent-mojo.html ? Best would be you make an example project on Github and describe what you've done and then what you like to see...a concrete project is better than describing it in a long abstract... |
I understand the issue, mainly because i'm hitting it as well Say I have 3 layers of parent inheritance: A, B, and C A will be an aggregate pom A pom.xml
B1 pom.xml
C1 pom.xml
Now if i execute this goal on the A pom.xml, not only will it update the Parent of B1 pom.xml (which is good, because B1's parent is A, and makes sense since the Group and Artifact match BUT it will also update the parent of C1's pom.xml, which is BAD, as C1's parent should not jump to 3.0.0, as C1's parent is not A, it's B1. Basically, this goal is blindly setting all parents to whatever is in A, instead of actually checking if a submodules parent is that of what's in the aggregate pom. |
I think i found the issue, i also have some additional unit tests created. I'll attempt to push them up for review. Need to get my company's OK first however. |
@DiJu519 Do you have the Ok ? |
Still waiting.
…On Fri, Dec 1, 2017 at 2:07 PM, Karl Heinz Marbaise < ***@***.***> wrote:
@DiJu519 <https://github.com/diju519> Do you have the Ok ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#190 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA4BBC1ZcwODxDJ9UCOYRhWLP8aLMNcMks5s8E5_gaJpZM4Obmjw>
.
|
Ok. Thanks for the fast feedback. |
mojohaus#190 Fixing issue in update-child-modules, where root module's version was being used in all downstream children even when a child's parent was different. Fix was to stop updating local reactor model, as the module's version was being replaced with a parent version in error, initial reactor model doesn't require being updated locally. Testing: All initial and additional IT's passed running mvn clean verify. Change-Id: I8682a450fe6c15af8483a80a40f52e2e57377c3e
mojohaus#190 Fixing issue in update-child-modules, where root module's version was being used in all downstream children even when a child's parent was different. Fix was to stop updating local reactor model, as the module's version was being replaced with a parent version in error, initial reactor model doesn't require being updated locally. Testing: All initial and additional IT's passed running mvn clean verify. Change-Id: I8682a450fe6c15af8483a80a40f52e2e57377c3e
See: #312 (comment) |
Hello!
I have a maven project with submodules:
A 1.0.0
All sub-modules of level 3 have the same version than its parent, for example version of module B-two is the same than its parent B.
If I change the version of my root project A to 2.0.0 and I run the command
mvn versions:update-child-modules -DallowSnapshots=true
from the root project then the version of the parent of the 3rd-level modules is updated: version of the C-one parent becomes 2.0.0!!But that is not what I wish, I just want to update the version of artifact A and its direct children = modules of 2nd level.
Help! :)
Thanks. Chris.
The text was updated successfully, but these errors were encountered: