title: Maven remove resource from dependency
body: <p>I have a <code>jgroups</code> dependency which has a <code>log4j2.xml</code> in its JAR which is getting picked up by <code>log4j</code> instead of my config file.</p>
  
  <p>How can I get Maven to exclude this file from the JAR dependencies?</p>
  
  <p>...before its suggested, I can't use the system property to set the log4j2.xml file explicitly as I want to be able to start my project without setting any JVM variables in the IDE.</p>