Analyze calling dependencies in Java projects, and visualize them in a dependency graph.
Try the interactive demo: nettee.io/depview
If you want to know more about this tool, you can read my blog post.
- Visualize calling dependencies in Java projects
- Help understand the structure of new projects, especially those with little documentation
- Help adjust package structure according to connections between classes
This project targets Java 8.
Write a configuration file for the project that you want to analyze. Follow the examples in the conf-example/ directory.
Build and run DepView:
export JAVA_HOME=/path/to/jdk8
export PATH="$JAVA_HOME/bin:$PATH"
mvn clean package
java -jar target/depview-0.2-SNAPSHOT.jar <CONF_FILE>The generated dependency output is in output/<PROJECT_NAME>/. To view the dependency graph:
python3 -m http.server 8000 --bind 127.0.0.1 -d output/<PROJECT_NAME>Open http://localhost:8000 in your browser.
If Java 8 is installed but not the default Java on macOS:
export JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk1.8.0_221.jdk/Contents/Home"
export PATH="$JAVA_HOME/bin:$PATH"
mvn clean package
java -jar target/depview-0.2-SNAPSHOT.jar conf-example/depview-mac.conf
python3 -m http.server 8000 --bind 127.0.0.1 -d output/DepView