Git Product home page Git Product logo

deptree2html's Introduction

Maven Dependency Viewer

Easily visualize your Maven project dependencies as an HTML file with links the Maven Repository.

Also includes an application to check for the latest versions of all of your dependencies and to list them in the output.

Prerequisites

  • Node.js
  • Maven

Installation

Copy depstree2html.js for yourself, then run the following commands:

# Make the JavaScript file executable
chmod +x depstree2html.js

# Move it to a directory in your PATH:
sudo mv depstree2html.js /usr/local/bin/depstree2html

Usage

To generate an HTML file with your Maven dependencies, navigate to your Maven project directory and run:

mvn dependency:tree | depstree2html > deps.html

To exclude specific packages from being linked, use the --ignore-packages option followed by a comma-separated list of package prefixes to ignore. For example:

mvn dependency:tree | depstree2html --ignore-packages org.acme,com.example > deps.html

This will generate deps.html without linking dependencies that start with org.acme or com.example.

Finally, open deps.html in your browser to view the dependencies.

Viewing the latest versions of your dependencies

To find out the latest version of each dependency, run the depstree-latest-version-checker.js script. It will take approximately a minute to query each hundred dependencies, and in the end the latest version of each dependency will be written to latestVersions.json. When you have this file in the directory where you then run depstree2html, the results will be amended with info about the latest versions. Note that you should also use the --ignore-packages option with depstree-latest-version-checker.js.

Development

When making changes to the HTML output, remember to validate the resulting file: tidy -q -e deps.html.

deptree2html's People

Contributors

zeroone3010 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.