private static SortedSet<Artifact> getAllRecursive(DependencyNode node) {
        SortedSet<Artifact> children = new TreeSet<>();
        if (node.getChildren() != null) {
            for (DependencyNode dep : node.getChildren()) {
                var a = dep.getArtifact();
                if (!a.getType().equals("pom")) children.add(a);
                children.addAll(getAllRecursive(dep));
            }
        }
        return children;
    }
Wrapper around maven-shade-plugin's {@link DefaultShader} for packaging Vespa fat jars for `$VESPA_HOME/lib/jars`.
The produced fat jar will add dependencies which are already installed in lib/jars to manifest's "Class-Path" instead of embedding.

@author bjorncs
bundle-plugin/src/main/java/com/yahoo/container/plugin/mojo/AssembleFatJarMojo.java