java - maven dependencies.dependency.version missing of sibling -


i have parent project , 2 child projects - of them present in directory.

    main directory     |__parent     |__child 1     |__child 2 

child 2 dependent on child 1. parent has dependency-management defined common dependencies of child 1 , 2.

all 3 projects' version same. in child 2 pom's dependencies section, child 1 listed without version , i'm getting dependencies.dependency.version missing error.

is there work around without adding child 1 parent pom's dependency management section or explicitly having child 1's version in child 2's pom?


Comments