Introduction
This maven plugin generates the XDepend config file from a pom.
Prerequisite
- A mavenized project with a valid pom descriptor file.
- Maven 2.x installed
XDepend Plugin Install
- Download the plugin jar xdepend-maven-plugin-1.0.1.jar and its pom xdepend-maven-plugin-1.0.1.pom
- Open a prompt in the directory where you downloaded the plugin and execute the following command to install the plugin in your local maven repository :
mvn install:install-file -Dfile=xdepend-maven-plugin-1.0.1.jar -DpomFile=xdepend-maven-plugin-1.0.1.pom
Generate your XDepend config file
- Open a prompt in your mavenized project home directory and execute the following command :
mvn compile jar:jar com.octo.xdepend:xdepend-maven-plugin:1.0.1:xdepend
If your project contains some unit tests you may add the following to execute your tests using the cobertura plugin : mvn compile jar:jar cobertura:cobertura \ -Dcobertura.report.format=xml \ com.octo.xdepend:xdepend-maven-plugin:1.0.1:xdepend |
If your project is a war, you may add the following to precompile jsps :
mvn clean jspc:compile compile jar:jar cobertura:cobertura \ -Dcobertura.report.format=xml \ com.octo.xdepend:xdepend-maven-plugin:1.0.1:xdepend
This plugin should have generated a file named
%YOUR_PROJECT_NAME%_XDependProject.xml
You are now ready to open it using XDepend
