Skip to content

update-child-modules is doing more than I wish... #190

@chris-nerr

Description

@chris-nerr

Hello!
I have a maven project with submodules:

A 1.0.0

  • B 1.1.0
    • B-one 1.1.0
    • B-two 1.1.0
    • B-three 1.1.0
  • C 1.1.1
    • C-one 1.1.1
    • C-two 1.1.1

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions