In my parent pom, I defined a dependency management entry,and it contains one google guava artifact
com.google.guava guava 32.1.3-jre In the child pom, there are 3 cases, I would ask which version will child use for each case.
- There is no version declared, so that it will use the parent's guava version defined in the dependencyManagement? The answer should be yes, and this is the main purpose why dependencyManagement is used for.
- The version is declared and lower than the parent's guava version defined in the dependencyManagement, in this case, which version will child use? 32.1.3-jre or 32.1.2-jre?
- The version is declared and upper than the parent's guava version defined in the dependencyManagement, in this case, which version will child use? 32.1.3-jre or 32.1.4-jre?
Источник: https://stackoverflow.com/questions/781 ... in-my-case
Мобильная версия