I have the following POM structure:
./foobar-common/pom.xml ./abc-window/pom.xml ./abc-datasource/pom.xml
Both abc-window pom.xml is as follows:
Use dependencyManagment
in parent pom
junit
junit
${junit.version}
org.apache.commons
commons-lang3
${commons-lang3.version}
add all versions in parent pom, and use dependencies without version in children
EDIT
/pom.xml <-parent pom
/abc-window/pom.xml <-child module
/abc-datasource/pom.xml <-child module
and parent pom should contains
...
abc-datasource
abc-window
...
...