I wanted to bundle a jar file along with the source using Maven for the Vaadin addon. I knew about the maven source plugin. The maven-source-plugin could be used to generate a source code jar file for a project. Deploying this source jar to a remote repository could be useful to the developers as they could 'attach source' and debug the project source code. Maven does a great job of automating this process.
But, the above written approach did not help me, thats the reason why I tried another solution which finally worked for me. Hereby, I am writing the same solution hoping that it might help community members.
Pom.xml

Final jar File