The Apache Maven team is pleased to announce the release of the Apache Maven Source Plugin, version 3.2.1 This plugin creates a jar archive of the source files of the current project.
https://maven.apache.org/plugins/maven-source-plugin/ You should specify the version in your project's plugin configuration: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> <version>3.2.1</version> </plugin> You can download the appropriate sources etc. from the download page: https://maven.apache.org/plugins/maven-source-plugin/download.cgi Release Notes - Maven Source Plugin - Version 3.2.1 ** Bug * [MSOURCES-122] - ITs fail due to unexpected EOL characters when building release sources from the ZIP * [MSOURCES-123] - files in maven-shared-archive-resources are added in non-reproducible order Enjoy, -The Apache Maven team