There are two ways to produce sources.
If you want sources you can use in your IDE (eg., Eclipse or JBDS), you want source features.
If you want sources you can build offline, you will want a src zip.
If you also want to produce a zip of actual source files (*.java) as pulled from github, there are three approaches, each producing different results.
This is to enable people can build it offline. Does NOT include upstream project sources.
Using Eclipse-SourceReferences
in the specified plugins' MANIFEST.MF files, this mojo collates those sources into a single zip.
See:
Note that pulling a collection of previously-built zips doesn’t guarantee you’ll getting the correct version AND it requires that the upstream projects all produce their own src zips.
Not recommended if you can simply fetch sources from github (as above).