for the users of my project (java/maven), I want to make the source code available in a downloadable zip (which also contains the executable jar). The idea is to have a standard jar file containing the source code of the project. The source code is for reference and checking (it’s scientific work).
I understood that the best way to create such a jar is via the maven-source-plugin. This works, however, in all our projects we use a common, self created library as dependency. I also want the sources of this specific dependency included inside this jar with source codes.
I cannot find how to do this, and if this is even possible.
I tried using the maven-source-plugin, and this worked as expected, except that it only contains the java files which are directly part of the project. I also want it to contain the java source files of a specific dependency.