The source plugin can be used to create a jar file of the project sources from the command line or by binding the goal to the project’s build lifecycle . To generate the jar from the command line, use the following command: mvn source:jar.29 Eki 2019