Когда я запускаю чистую установку maven, сборка завершается неудачно из-за «RequireUpperBoundDeps», что, согласно документации, означает, что версия, разрешенная во время сборки, ниже, чем версия зависимости для того же артефакта. Вот (обработанный) результат:
Код: Выделить всё
[INFO] --- maven-enforcer-plugin:1.4:enforce (enforce-maven) @ my-service ---
[WARNING] Rule 1: org.apache.maven.plugins.enforcer.RequireUpperBoundDeps failed with message:
Failed while enforcing RequireUpperBoundDeps. The error(s) are [
Require upper bound dependencies error for com.h2database:h2:1.3.168 paths to dependency are:
+-com.example.services:my-service:1.0.0-SNAPSHOT
+-com.h2database:h2:1.3.168
and
+-com.example.services:my-service:1.0.0-SNAPSHOT
+-com.example.libs:my-libs:2.0.0
+-com.h2database:h2:1.3.168 (managed)
Подробнее здесь: [url]https://stackoverflow.com/questions/37264938/maven-pulling-in-dependency-that-is-not-specified-in-pom[/url]
Мобильная версия