title: How do I exclude the sources jar in mvn deploy?
body: <p>When I run "mvn deploy:deploy", maven deploys 4 jar files to my internal remote repository.</p>
  
  <p>They are:</p>
  
  <p>[module-name]-1.jar<br>
  [module-name]-1.pom<br>
  [module-name]-1-sources.jar<br>
  [module-name]-1-tests.jar  </p>
  
  <p>There are actually more files, such as md5 and sha1 files, being deployed. But for simplicity, I just skip these files here.</p>
  
  <p>Is there any way to exclude [module-name]-1-sources.jar from the deployment process? </p>
  
  <p>One way I can think of is to use "mvn deploy:deploy-file", which allows me to pinpoint which jar to deploy. But since I have a few dozen modules to deploy, it'll be nice if I can configure the deployment file exclusion in pom.xml. Otherwise, I'll have to write a script to deploy.</p>
  
  <p>Thanks,<br>
  Richard</p>