Exclude file from jar as built by jar-with-dependencies
问题 My pom.xml contains the following to create a jar of my project with all dependencies. Now I have a properties file in src/main/resources which is necessary to run the application (and I want to use it from starting from the IDE), but I do not want to ship it in the created jar file, as the settings are maintained separately. Question : How I can I get a file with all dependencies, but exclude those properties files? <plugin> <artifactId>maven-assembly-plugin</artifactId> <executions>