title: Maven exclude only certain files when deploying
body: <p>Is there a way to exclude files only when calling <code>mvn deploy</code> but have the files included when I call <code>mvn install</code>?</p>
  
  <p><strong>EDIT:</strong>
  When I run the jar locally I want the <code>logback.xml</code> in <code>src/main/resources</code> but when I deploy it so it's a library the <code>logback.xml</code> should not be included.</p>