When deploying a snapshot release or if you by some other reason want to generate sources or javadoc jar, you could always configure maven-source-plugin and maven-javadoc-plugin and hook them in maven life cycle.
But that is not necessary in maven uber pom is that already defined for release. You can reuse that by adding -DperformRelease=true
Different example of usage:
Local build with sources and javadoc jar generation
Deploy target. Use only with snapshot version. Then deploy means snapshot publishing to defined snapshot repository.