sources.jar for multi-module project in Maven

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

sources.jar for multi-module project in Maven

Qing Lan
Hi all,

I am currently trying to create a fat sources.jar for my maven project, the structure looks like below:


  *   init
  *   core
  *   examples
  *   assembly

I am able to create a fat jar of all modules in assembly stage using maven-assembly-plugin. However, I am not able to do the same thing with source code in assembly stage.
I tried to use maven-source-plugin however it could only create sources.jar in each of the module. In assembly there is no code there so it didn’t create anything for the sources.jar.

Can anybody help with this issue?


Some ways I found in Google but not help: