Maven Dependency Graph?

I've seen the maven dependency graphs in their blog posts:
http://blogs.jetbrains.com/idea/2010/05/maven-dependencies-diagram/
http://www.jetbrains.com/idea/features/ant_maven.html

And this feature should be available in either Ultimate or Community in IntelliJ 9 and X.

I can't figure out how to do it! The video on jetbrains tv shows them bringing it up, though the context menu is off-screen!
http://tv.jetbrains.net/videocontent/new-maven-features-in-intellij-idea-10-eap

Can someone point me to the right place??? How do I activate it and view the graph?

26 comments
Comment actions Permalink

Open the maven sidebar panel and right click on a module. There is an option to open the dependency graph.

Regards,
Wallaby

0
Comment actions Permalink

Hmm... How does a module look like?

I see:

* Profiles
| - * profile
* Project name
| - * Lifecycle
| - * Plugins
| - * Dependencies

When I right click on the project name, I get the context menu:
Force Reimport
Generate Sources and Update Folders
Ignore Projects
Remove Projects
Open 'settings.xml'
Create 'profiles.xml'
Download Sources
Download Documentation
Download Sources and Documentation
Run Maven Build (greyed out)
Jump to Source

I don't see anything that says graph. Under dependencies shows all the jars that I'm dependent on that also show up on the pom.xml

Fix typo in subject name

0
Comment actions Permalink

Check your plugins to see if "Maven Integration Extension" is enabled.  The desciption is "Maven support for Web and JavaEE and Dependency analysis graph" so it seems like that's what you are missing.  I'm pretty sure it is enabled by default though.

0
Comment actions Permalink

Yup.. installed and enabled by default.

Of note, the Maven Integration Extension is only available in Ultimate. This is deceptive because their Ant and Maven support page says that the dependency graph is available in the Community edition.

Any more thoughts? Anyone have any ideas at all? The maven project compiles just fine, so I'm not sure if it's a Maven issue, but it might be...

0
Comment actions Permalink

Anyone know how to do this? What does a module look like? Is it some symbol with an M on it? Do I need to set up a run configuration to enable it? Thanks in advance!

0
Comment actions Permalink

Are you using Community or Ultimate?  It's not available in the community edition.  From Konstantin's comment at your first link: "We can’t use the diagramming library in free version of IntelliJ"

If you're using Ultimate then based on your previous comment of the menu you're looking at you're looking in the correct place.  This is what I see (from v10 Ultimate):

maven_menu.png

If you stil dont see that I would try looking in the idea log file for any exceptions.

0
Comment actions Permalink

Ahhh... yes, it looks like it works when I download released Ultimate build (it didn't show up as an option in the EAP version).

It's interesting, because the blog and the previous comments (and the comparison page: http://www.jetbrains.com/idea/features/editions_comparison_matrix.html?IC) seems to show that the community edition should have it. Is this a bug?

0
Comment actions Permalink

Hello Mike,

As already stated, the diagram engine used for the dependency graph is a
commercial product and cannot be included in the open-source Community Edition.
The Maven dependency graph is, and will be, included only in IntelliJ IDEA
Ultimate. We'll add this information to the comparison matrix.

Ahhh... yes, it looks like it works when I download released Ultimate
build (it didn't show up as an option in the EAP version).

It's interesting, because the blog and the previous comments (and the
comparison page:
http://www.jetbrains.com/idea/features/editions_comparison_matrix.html
?IC) seems to show that the community edition should have it. Is this
a bug?

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

I've upgraded from the 10 EAP version to the official release - Build 99.18.

But I don't see the menu items for the Maven Dependency Graph. Do I need to purge caches or something?

The Menu I see is:

Screen shot 2010-12-15 at 3.22.43 PM.png

0
Comment actions Permalink

As Dimitry said, the Maven Dependency Graph is not available for Community Edition, so if you upgraded from 10 EAP to 10 CE, you won't get it. If you use 10 UE, then you'll have it.

0
Comment actions Permalink

I should have been more clear. I do have the 10 UE

Screen shot 2010-12-15 at 3.59.41 PM.png

0
Comment actions Permalink

Hmm... make sure the Maven Integration Extension plugin is running.

The places that I see the "Show Dependencies" and "Show Dependencies Popup" in the context menu are when I'm right-clicking in a pom.xml file, on the Maven project name in "Maven Projects" sidebar, or any of the packages under Dependencies in the Maven Projects sidebar.

0
Comment actions Permalink

I've checked and the plugins are installed (bundled) and enabled.

Screen shot 2010-12-15 at 4.36.19 PM.png

And yes, I am right-clicking in a pom.xml file, and I tried the "Maven Projects" sidebar.

That is why I was wondering if I needed to purge some caches or something after the upgrade.

Thanks for the replies.

0
Comment actions Permalink

This question is marked as answered but I don't see an answer.   I have the same issue, i purchased the Ultimate edition and see no option for the dependency graph.  Is there a trick to enable it?

0
Comment actions Permalink

I think it must have worked in the pre official release which is what the original question referred to. It would be nice if someone from JetBrains looked in to this. Perhaps a new question is in order.

0
Comment actions Permalink

I have the maven dependency graph functionality (and menu items) available in IDEA Ultimate 10.0 (build 99.18) running on Windows. Based on his screenshots, it looks like Erik is running on a Mac. Is it possibly an issue limited to Mac users? Marc, what OS are you using?

0
Comment actions Permalink

Good call, I am also using OS X.

0
Comment actions Permalink

Doesn't make sense.. I'm using OSX too and it works fine for me. Maybe with the new Ultimate version, try creating a new project from the Maven source. That might do the trick. There may be something in the EAP version of the project file/directory that is preventing the option to show.

0
Comment actions Permalink

I tried recreating two Maven based projects, one a single pom.xml and the other a large mult-module pom.xml. But, still no Dependency Graph menu items.

I am using Mac OS X 10.6.5 with the latest Java from Apple.

What is Mike Ho using?

0
Comment actions Permalink

Info attached as images.
Screen shot 2010-12-17 at 9.17.36 AM.png

Screen shot 2010-12-17 at 9.17.57 AM.png

I'm using the JDK from Apple at /System/Library/Frameworks/JavaVM.framework/

Clean install from the DMG file. Imported project as a Maven project.

0
Comment actions Permalink

At some point I had disabled my "UML Support" built in Plugin in IDEA, and then was no longer able to see Maven Dependency Diagrams.  (I didn't have the menu items to even display them.)

Check your Plugins to make sure "UML Support" is enabled, and if not, enable it.

Just an idea.  Not sure if that's your problem or not.

3
Comment actions Permalink

Bingo!

I had UML Support disabled as well. Enabling that allows me to see the Maven dependency Diagrams.

Thanks for the that clue.

0
Comment actions Permalink

whew!  Yes, thanks for that tip--the UML plugin solved this mystery for me as well.

0
Comment actions Permalink

Hello, I have IntelliJ version Ultimate 11.0.2 running on Mac OS X 10.7 Lion. For the life of me, I could not see the Maven Dependency Graph menu. I have the Maven Integration, Maven Integration Extension and UML Support plugins all installed and enabled. But this is the menu I got:

Screen Shot 2012-03-07 at 4.50.55 PM.png
So how do I get the Maven Dependency Graph?

thanks,
-shinta

0
Comment actions Permalink

That was it for me too.  I needed to enable UML support.  Is there anyway for this to be more obvious?  I just wasted about 4 hours of my time.

1

Please sign in to leave a comment.