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.
UPDATE: I tried to exclude them using the Maven resources plugin, but then my application won’t find the properties files when I run it in Eclipse (right click on the module -> Run As -> Java Application)
UPDATE: Thanks for your useful answers. I think I’d better spend time to learn Maven, for now I just choose the simplest solution.
Put those properties files in
src/test/resources. Files insrc/test/resourcesare available within Eclipse automatically viaeclipse:eclipsebut will not be included in the packaged JAR by Maven.