Sorry, you are right. It was my shortcut. So the true answer is that it
does not support
aggregated projects. It supports data from inheritance of course.
Piotr
Michael McCallum pisze:
aggregated projects NOT EQUAL to parent poms
aggregation and inheritance and complete unrelated it just happens that many
people use the two together... which IMHO is wrong but people need to decide
for them selves
On Fri, 06 Jun 2008 02:46:55 Piotr Tabor wrote:
Hi Stefano,
The message really looks very ugly, but it means that the graph plugin
does not support aggregated projects (parents pom) yet.
Try to do find the project pom (packaging: jar,war,ear) that depends on
everything else and than call the same operation within the directory.
Currently the file generation configuration is not supported. Try with
gui and configure by gui (as described in README file).
Thanks,
Piotr
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 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.calculateGr
aph(ClassesConnector.java:96)
at
org.apache.maven.diagrams.gui.controller.MainController.refreshGraph(Main
Controller.java:251)
at
org.apache.maven.diagrams.gui.controller.MainController.run(MainControlle
r.java:397)
at
org.apache.maven.plugins.diagrams.GuiMojo.execute(GuiMojo.java:83)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMan
ager.java:451)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultL
ifecycleExecutor.java:558)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal
(DefaultLifecycleExecutor.java:512)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLi
fecycleExecutor.java:482)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleF
ailures(DefaultLifecycleExecutor.java:330)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(D
efaultLifecycleExecutor.java:291)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecy
cleExecutor.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(DelegatingMethodAccessorI
mpl.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
...
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]