When I create an executable jar with dependencies (using this guide), all properties files are packaged into that jar too. How to stop it from happening? Thanks.
UPD
Another possibility is to use the Maven Shade Plugin, e.g. to exclude a logging properties file used only locally in your IDE:
org.apache.maven.plugins
maven-shade-plugin
${maven-shade-plugin-version}
package
shade
*:*
log4j2.xml
This will however exclude the files from every artifact, so it might not be feasible in every situation.