You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (Jira)" <ji...@apache.org> on 2021/01/05 14:27:00 UTC
[jira] [Commented] (MNG-7066) Dependency resolution in multimodule
project
[ https://issues.apache.org/jira/browse/MNG-7066?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17258957#comment-17258957 ]
Michael Osipov commented on MNG-7066:
-------------------------------------
Does Maven from master change anything from you?
> Dependency resolution in multimodule project
> --------------------------------------------
>
> Key: MNG-7066
> URL: https://issues.apache.org/jira/browse/MNG-7066
> Project: Maven
> Issue Type: Bug
> Components: Dependencies, POM
> Affects Versions: 3.6.3
> Reporter: Vasyl Danyliuk
> Priority: Minor
> Attachments: maven-test.zip
>
>
> I have a bunch of modules under parent pom. In the parent pom, there is a dependency management section that defines the 2.12.0 version of the Jackson library. However, in one of the modules (Module One), I need to downgrade the version to 2.10.5 due to compatibility issues. For this module, it works well. There is a second module(Module Two) that has a dependency on Module One. And for this dependency maven resolves the version of Jackson to 2.12.0. But Module Two actually doesn't declare a dependency on Jackson at all, just dependency on Module One. In the end, I'm getting compatibility issues here.
> It can be resolved by explicitly specifying a dependency on Jackson 2.10.5 in Module Two, but it still looks like a bug.
> I've created a very small project to demonstrate the problem. You can check out it here [https://github.com/DrBAXA/maven-test] or just download the attached archive.
> In maven-test-lib and maven-test-app there are just two test files. One of them fails as expecting 2.10.5 version
--
This message was sent by Atlassian Jira
(v8.3.4#803005)