Bug #12834
closedWe need to explicit version of scala-library in plugin-parent else one is pick at random from transitive dependencies
Description
I definitly stop to try to understand how maven works.
So, for most dependencies, if you put them in "dependencyManagement" with scope "provided" but without version, maven takes the version in other Rudder project. But not for scala-library, where it seems to take the one from liftweb.
So in fact, I believe I just don't understand anything, and that maven just takes the first transitive dep it get, even if it's 4 version below other ones. Putting the verison in dependencyManagement does not seem to solve the problem (ie: if the version is in dependencyManagement, it does not affect transitive dependency resolution, so you need to put the dependency as a dependency (even if you keep version in dependencyManagmeent) to have the correct version resolved. This is madness).
I declare forfeit and start to read documentation about Bazel and Mill.
Updated by François ARMAND over 6 years ago
- Status changed from In progress to Pending technical review
- Assignee changed from François ARMAND to Nicolas CHARLES
- Pull Request set to https://github.com/Normation/rudder-plugins/pull/44
Updated by François ARMAND over 6 years ago
In 4.1, it was not visible because of a non used dependency for test. We cleaned it up latter, breaking version resolution. Maven is an horror movie.
Updated by Rudder Quality Assistant over 6 years ago
- Status changed from Pending technical review to Discussion
- Assignee changed from Nicolas CHARLES to François ARMAND
Updated by François ARMAND over 6 years ago
- Status changed from Discussion to Pending release
Applied in changeset rudder-plugins|66db1fdcb7d60c9a2bbdf9b6b88b164db1ca42c4.
Updated by Vincent MEMBRÉ about 6 years ago
- Status changed from Pending release to Released