Find Rogue Dependency

I have a problem with my project wanting to contain both 1.5.2 and 1.6.x of quartz. I have explicitly declared the version in Maven and IntelliJ keeps re-including 1.5.2.

I assume there is something that has decided it depends on that version.

Does anyone know of a tool in IDEA that can help me trace what is requiring 1.5.2?

Thanks
D

0
9 comments
Avatar
Permanently deleted user

Unfortunately I dont know of one in Intellij but for that reason I have eclipse and m2eclipse installed in it handy as well. Whenever I have to do something of that sort that is what I use because that plugin has a nifty feature of rendering a graphical representation of all your dependencies. I think there is a command for maven to do that in the command line too where it will show you all your dependencies and once you track it down, all you have to do is add an exclude in your pom and you are good to go. I really do wish such a feature existed in Intellij.

0

Gerwood,

You can use either Dependency Graph to visualize your dependencies tree (it is only available in Ultimate Edition), or go to the Maven Projects tool window and dig into project-Dependencies-... too see the dependencies as a tree (this bacame available in the recent eap and in the Idea 9 RC in both Community and Ultimate Editions).

Thanks,
Anton Makeev

0
Avatar
Permanently deleted user

Thanks for the information. I'll take a look at the Dependency Graph.

I did find a solution through Maven's dependency:tree plugin. It mapped it out well enough that I could locate the rogue dependency and exclude it.


D

0
Avatar
Permanently deleted user

Anton,

The dependency view in the Maven tool window is just great! Would it be possible to include more dependency information like scope and optional true/false?
I see that scope is included in the Dependency Graph, but it does not seem to include optional true/false.


Regards,
Stig Kleppe-Jørgensen

0

Stig,
Please add your comments to this issue: http://youtrack.jetbrains.net/issue/IDEA-25457.

Thanks,
Anton Makeev

0
Avatar
Permanently deleted user

Anton,

Seems that issue has all my needs covered :-)

Regards,
Stig Kleppe-Jørgensen

0
Avatar
Permanently deleted user

I'm not sure about the meaning of the colors in the dependency toolwindow : am I right that green items are In-Project, whereas Yellow one are "jar" dependencies ?

0
Avatar
Permanently deleted user

Thibaut,

Quite sure that is the correct meaning :-)

Regards,
Stig Kleppe-Jørgensen

0
Avatar
Permanently deleted user

Was not aware of that feature. Thanks for that!

0

Please sign in to leave a comment.