在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):adutra/maven-dependency-tree-parser开源软件地址(OpenSource Url):https://github.com/adutra/maven-dependency-tree-parser开源编程语言(OpenSource Language):JavaScript 59.9%开源软件介绍(OpenSource Introduction):Maven Dependency Tree ParserWARNING: This project is not actively maintained anymore. This library contains:
To use the parser, one needs to generate a file containing the tree to parse: mvn dependency:tree -DoutputFile=/path/to/file -DoutputType=text Then the following idiom is the recommended way to parse the file: InputType type = InputType.TEXT;
Reader r = new BufferedReader(new InputStreamReader(new FileInputStream(...), "UTF-8"));
Parser parser = type.newParser();
Node tree = parser.parse(r); Note that this library 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.
Node tree = ...;
StandardTextVisitor visitor = new StandardTextVisitor();
visitor.visit(tree);
System.out.println(visitor);
These utilities are intended 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
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论