Suggestion: See maven modules dependencies
Hello,
I didn't find a good place for suggestions to IntelliJ, so I figured I'd post it here. Please direct me to another place if there is a more fitting location for suggestions.
The challenge:
You got a multi module project, where some modules are somewhat independent from the application. An example is regression test suite, performance tests etc.
Or just test scoped dependencies.
Now, when you got to the "External Libraries", you see all the dependencies imported by the project, but not which are in production code, which are in test etc.
Whenever I happen to find a duplicate maven dependency (with another version number), I have to use dependency:tree and manually check every time.
Suggestion:
What if you could have a "Libraries" folder thingy, just like the "External Libraries", just under each module, and e.g. dependencies which are only for test have a text in a green font or something.
Then you could easily see if there are duplicate versions within your production code.
Kind regards, Kenneth
Please sign in to leave a comment.
See https://www.jetbrains.com/help/idea/2016.2/working-with-maven-dependencies.html .
Suggestions can be submitted at https://youtrack.jetbrains.com/issues/IDEA.
I did check that one, but it lacks version indication and possible duplicate dependencies.
As duplicate dependencies is a mess to work with, for us it's important to have a simple solution for viewing them and excluding them. Since duplicate dependencies might be loaded differently dependent on classloader.
Thanks for the link for suggestions
Dependencies with versions are shown in the Maven Projects tool window under Dependencies nodes of the modules.
I see, is it possible to see all the dependencies included into a module?
Simple example:
Module A -> Jackson Version: 2.4.3
Module B -> Jackson Version: 2.6.2
Module C -> Module A + Module B
Is it possible to now see in Module C that it got both Jackson 2.4.3 and 2.6.2?