So I understand how I can package dependencies into my executable JAR, using jar-with-dependencies descriptor for maven-assembly-plugin.
However, I want to also create a source bundle(s), that not only includes sources of my project, but sources of all dependencies that are embedded in my executable JAR.
How can one achieve that?
This is what I used finally:
It copies the sources of all known dependencies recursively into the
target/sourcedirectory. Pretty handy!Note: Use
unpack-dependenciesgoal to instead unpack all sources in destination directory.Reference: https://maven.apache.org/plugins/maven-dependency-plugin/index.html