Class DependencyParser


  • public class DependencyParser
    extends Object
    Parsing utils for the Maven dependency plugin.
    • Constructor Detail

      • DependencyParser

        public DependencyParser()
    • Method Detail

      • parseDependencyCopyOutput

        public static Map<String,​Set<Dependency>> parseDependencyCopyOutput​(Path buildOutput)
                                                                           throws IOException
        Parses the output of a Maven build where dependency:copy was used, and returns a set of copied dependencies for each module.

        The returned dependencies will NEVER contain the scope or optional flag.

        Throws:
        IOException
      • parseDependencyTreeOutput

        public static Map<String,​DependencyTree> parseDependencyTreeOutput​(Path buildOutput)
                                                                          throws IOException
        Parses the output of a Maven build where dependency:tree was used, and returns a set of dependencies for each module.
        Throws:
        IOException