mvn dependency:tree skips an transitive dependency
I have a problem according to maven.
I have a module A, B and C. For legal reasons I am not allowed to tell the real names.
Module A has a dependency to module B, module B has a dependency to module C. They are configured this way in the poms correctly.
For some reason, if I call dependency:tree to the modul A, the module B is listed but the module C is not listed.
Module A,B and C are in scope compile. They are of packaging "jar". The local repository is fresh. The group-ids for all modules are "x". The version for all modules is "1". Maybe exclusions are made, but I do not know where.
8 Replies
⌛
This post has been reserved for your question.
Hey @Peter Rader! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose Post
button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.
Can you maybe create a minimal reproducer on a new project?
Does the pom.xml of module B maybe have
<optional>true</optional>
in the module C dependency?
You might also want to check the effective POMs of the modules (mvn help:effective-pom
or the "Effective POM" tab when viewing the pom.xml in Eclipse)💤
Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping
.
Warning: abusing this will result in moderative actions taken against you.
No
Effective POM of A sais C is not a dependency. Effective POM of B sais C is a dependency.
Can you try creating a minimal reproducer?
I think this will take hours. Its a huge project.
Can you create a new project with 3 modules and copy the relevant parts?
Do the relevant
<dependency>
blocks have anything other than group id, artifact id and version?
if you do, use different names💤
Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping
.
Warning: abusing this will result in moderative actions taken against you.