Skip to content


Subversion checkout URL

You can clone with
Download ZIP
This library contains a set of parsers that parse the output of the maven command "mvn dependency:tree", and a set of utilities to create HTML representations of the parsed tree.
JavaScript Java
Latest commit 3f188b5 CloudBees DEV@Cloud [maven-release-plugin] prepare for next development iteration
Failed to load latest commit information.
src Refactoring IT tests.
.gitignore Initial commit.
LICENSE.TXT Fixing license issues.
README.txt Comparison to Maven Mercury.


    Copyright 2011 Alexandre Dutra

       Licensed under the Apache License, Version 2.0 (the "License");
       you may not use this file except in compliance with the License.
       You may obtain a copy of the License at


       Unless required by applicable law or agreed to in writing, software
       distributed under the License is distributed on an "AS IS" BASIS,
       WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
       See the License for the specific language governing permissions and
       limitations under the License.

This library contains:

- A set of parsers that parse the output of the Maven command "mvn dependency:tree"; 
  different parsers can be used to parse the following output formats: text, dot, graphml and tgf. 
  See for further details.
  The following idiom is the recommended way to parse any input:
  InputType type = ...;
  Reader r = ...;
  Parser parser = type.newParser();
  Node tree = parser.parse(r);
  Note that this library is NOT a drop-in replacement for the Maven Mercury 
  DependencyTreeBuilder API (see 
  In other words, it does NOT make any dependency resolution whatsoever per itself;
  it simply takes an already-built dependency tree and parses it to an object representation
  that is lightweight and easily reusable.

- A set of visitors that can be used to scan the parsed tree. In particular, visitors can be 
  used to create human-readable representations of the parsed tree. E.g. the following code
  transforms the parsed tree back again to the Maven standard text format:

  Node tree = ...; 
  StandardTextVisitor visitor = new StandardTextVisitor();
- A set of Velocity renderers that create HTML representations of the parsed tree. These renderers rely upon JQuery (see and some JQuery plugins: 
  - JSTree: see
  - TreeTable: see
  These utilities are inteded as examples of HTML code; feel free to adapt them to your needs.
  To generate the HTML code and all the secondary resources (images, CSS files, etc.), run the class with the following arguments:
  - Full path of dependency tree file to parse;
  - Dependency tree file format; one of: TEXT, DOT, GRAPHML or TGF;
  - Full path to the output directory where HTML files and static resources will be generated (this directory will be erased prior to file generation);
  - Renderer format; one of: 
    - JQUERY_JSTREE (uses JQuery plugin JSTree)
    - JQUERY_TREE_TABLE (uses JQuery plugin TreeTable)
Something went wrong with that request. Please try again.