I want to deploy sources and javadocs with my snapshots. This means that I want to automize the following command:
mvn clean source:jar javadoc:jar deploy >
maven-source-plugin attach-sources deploy jar-no-fork maven-javadoc-plugin attach-javadocs deploy jar maven-deploy-plugin deploy deploy deploy
See Sonatype's OSS parent POM for a complete example.