You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The result is that I get two poms' versions updated, but not the correct ones - it updates the parent, as expected, but also a-sub-project instead of b-sub-project. Interestingly, running this:
mvn -Dsubproject=b versions:revert
assuming I would've manually or otherwise made the b-sub-project also change version to 1.1-SNAPSHOT and have a pom.xml.versionsBackup file to revert to, the revert operation impacts the correct files - b-sub-project and parent. It looks like versions:set goal will go through subdirectories alphabetically without regard to what's actually supposed to happen.
The text was updated successfully, but these errors were encountered:
The result is that I get two poms' versions updated, but not the correct ones - it updates the parent, as expected, but also a-sub-project instead of b-sub-project. Interestingly, running this:
The report is invalid. Both submodules are affected by the set target. The reason is that the target isn't using Maven to process dependencies and is thus ignoring active profile information. Revert is now actually reverting this behaviour instead of relying on Maven to process submodules, resulting in all affected files being reverted.
Given this project structure:
-> parent-project
| --> a-sub-project
| --> b-sub-project
each sub-project has the below pom:
On the other hand the parent project has this pom:
When I specify on command line that I want to update the version for the parent and b-sub-project, I would call this:
mvn -Dsubproject=b versions:set -DnewVersion=1.1-SNAPSHOT
The result is that I get two poms' versions updated, but not the correct ones - it updates the parent, as expected, but also a-sub-project instead of b-sub-project. Interestingly, running this:
mvn -Dsubproject=b versions:revert
assuming I would've manually or otherwise made the b-sub-project also change version to 1.1-SNAPSHOT and have a pom.xml.versionsBackup file to revert to, the revert operation impacts the correct files - b-sub-project and parent. It looks like versions:set goal will go through subdirectories alphabetically without regard to what's actually supposed to happen.
The text was updated successfully, but these errors were encountered: