Piotr Tabor ha scritto:
What is the status of the maven-grafo-plugin?
I found this:
http://docs.codehaus.org/display/MAVENUSER/Interactive+Dependency+Graphs
and this:
http://svn.apache.org/viewvc/maven/sandbox/trunk/shared/grafo/grafo-maven-plugin/
They have been touched 15 months ago: is this dead? moved elsewhere?
Any plan for this?
Stefano
Hi Stefano,
Look at this:
http://docs.codehaus.org/display/MAVENUSER/Maven+Diagram+Maker
The code of very alfa version of this is here:
http://svn.codehaus.org/mojo/trunk/sandbox/maven-diagram-maker/
(check README file to see how to run that).
I haven't time to work on it for last 8 months, but I'm still willing to.
I will appreciate your feedback.
Thanks,
Piotr Tabor
Hi Piotr, I see maven-diagram-maker is something more sophisticate than
the simply dependency grapher I was looking for, but I gave it a shot
because the whole concept seems interesting. This plugin seems to
provide a standard way for other plugins to generate graphs, to, so this
seems very maven2 oriented.
I tried to understand something from the docs but I didn't understand
what goal I should use and where to put "dataSources" configurations
(for the modules dependencies graph).
Am I offtopic for this list? Where should codehaus-mojos discussions happen?
BTW, I added codehaus snapshot repository and run this command on my
project (the only goal I found for the plugin is "gui", so I tried it),
a window open and suddenly close with this exception:
mvn
org.codehaus.mojo.maven-diagram-maker:maven-diagrams-plugin:0.1-SNAPSHOT:gui
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO] Apache JAMES Server
[INFO] Apache JAMES Server User API
[INFO] Apache JAMES Server Domain API
[INFO] Apache JAMES Server IMAP Api
[INFO] Apache JAMES Server Imap Mailbox Library
[INFO] Apache JAMES Server IMAP Codec Library
[INFO] Apache JAMES Server User Library
[INFO] Apache JAMES Server Core
[INFO] Apache JAMES Server Mailbox Manager Library
[INFO] Apache JAMES Server SMTP function
[INFO] Apache JAMES Server POP3 function
[INFO] Apache JAMES Server NNTP function
[INFO] Apache JAMES Server SpoolManager function
[INFO] Apache JAMES Server RemoteManager function
[INFO] Apache JAMES Server Basic User function
[INFO] Apache JAMES Server Avalon User function
[INFO] Apache JAMES Server Mailets function
[INFO] Apache JAMES Server FetchMail function
[INFO] Apache JAMES Server IMAP Mailbox Processor function
[INFO] Apache JAMES Server Torque Mailbox Manager
[INFO] Apache JAMES Server IMAP function
[INFO] Apache JAMES Server *Experimental* IMAP function
[INFO] Apache JAMES Server JMS Function
[INFO] Apache JAMES Server JCR Backend function
[INFO] Apache JAMES Server Phoenix Deployment
[INFO] Apache JAMES Server Spring Deployment
[INFO]
------------------------------------------------------------------------
[INFO] Building Apache JAMES Server
[INFO] task-segment:
[org.codehaus.mojo.maven-diagram-maker:maven-diagrams-plugin:0.1-SNAPSHOT:gui]
[INFO]
------------------------------------------------------------------------
[WARNING] Attempting to build MavenProject instance for Artifact
(org.codehaus.mojo.maven-diagram-maker:maven-diagrams-plugin:0.1-20070821.030535-2)
of type: maven-plugin; constructing POM artifact instead.
[INFO] [diagrams:gui]
[WARNING] No classpath attached to artifact:
org.apache.james:james-server:pom
[INFO]
------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO]
------------------------------------------------------------------------
[INFO] 0
[INFO]
------------------------------------------------------------------------
[INFO] Trace
java.lang.ArrayIndexOutOfBoundsException: 0
at
org.apache.maven.diagrams.connectors.classes.ClassesConnector.calculateGraph(ClassesConnector.java:96)
at
org.apache.maven.diagrams.gui.controller.MainController.refreshGraph(MainController.java:251)
at
org.apache.maven.diagrams.gui.controller.MainController.run(MainController.java:397)
at
org.apache.maven.plugins.diagrams.GuiMojo.execute(GuiMojo.java:83)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:512)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:482)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 4 seconds
[INFO] Finished at: Thu Jun 05 16:10:09 CEST 2008
[INFO] Final Memory: 9M/16M
[INFO]
------------------------------------------------------------------------
Thanks a lot,
Stefano
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]