Class ShadeParser


  • public final class ShadeParser
    extends Object
    Utils for parsing the shade-plugin output.
    • Method Detail

      • parseShadeOutput

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

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

        This method only considers the shade-flink and shade-dist executions, because all artifacts we produce that are either published or referenced are created by these executions. In other words, all artifacts from other executions are only used internally by the module that created them.

        Throws:
        IOException