title: Maven: Prevent upload of default-jar - only upload jar-with-dependencies
body: <p>I'm evaluating Maven 3 at work. For several example projects I have to deploy them to a server (no repository), but that's not the problem.</p>
  
  <p>In my current example-project I'm trying to upload only the "jar-with-dependencies". 
  and exactly that's my problem.</p>
  
  <p>It all works fine, except that the main-artifact AND the jar-with-dependencies (created by the assembly-plugin) are uploaded.</p>
  
  <p>How do I prevent Maven or rather the deploy-phase from uploading the main-jar and only upload a given or specified file (in this case, the assembly-file "jar-with-dependencies")?</p>
  
  <p>Referring to the question <em><a href="https://stackoverflow.com/questions/5016467">Only create executable jar-with-dependencies in Maven</a></em>, I can't just alter the packaging-setting to pom, because it will also prevent the assembly-plugin from adding my classes to the JAR file. It only creates a JAR file with the files of the dependencies.</p>
  
  <p>I hope I'm clear about my problem, and you can help me ;) </p>