Как определяется версия артефакта в моем случаеJAVA

Программисты JAVA общаются здесь
Ответить
Anonymous
 Как определяется версия артефакта в моем случае

Сообщение Anonymous »


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.
com.google.guava guava
  • 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?
com.google.guava guava 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?
com.google.guava guava 32.1.4-jre

Источник: https://stackoverflow.com/questions/781 ... in-my-case
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «JAVA»