Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

Graphing dependencies in Sakai code

home:http://el4j.sourceforge.net/index.html

 It is possible with the command mvn  depgraph:depgraph at the top level of the source code for a Sakai tag to produce a series of images for the dependencies in projects.

Note: first First the master/pom.xml needs to be modified to add an extra plugin repository and plugin in the build.

Panel

Example image
Image Removed Image Added



Plugin Description:Can be used to draw a dependency graph from the project, the mojo is executed in. It traverses all dependencies and creates a graph using Graphviz. It draws a dependency graph just for your project. For a simple POM with no submodules, it draws a graph of all dependencies (including transitive ones) below it. For a POM with submodules, goes into each leaf POM and generates a separate graph for it.

...

Code Block
 <pluginRepository>
            <id>elca-services</id>
            <url>http://el4.elca-services.ch/el4j/maven2repository</url>
             <releases>
             <enabled>true</enabled>
             </releases>
  </pluginRepository>

Just before the </plugins> </build> tags add the plugin and version

Code Block

        <plugin>
          <groupId>ch.elca.el4j.maven.plugins</groupId>
          <artifactId>maven-depgraph-plugin</artifactId>
          <version>1.8.1</version>
        </plugin>