I am building a jar using maven with simple maven install.
If I add a file to src/main/resources it can be found on the classpath but it has a config folder where I want that file to go but moving it inside the config folder makes it disappear from the classpath.
I am building a jar using maven with simple maven install. If I add
Share
If you place anything in
src/main/resourcesdirectory, then by default it will end up in your final*.jar. If you are referencing it from some other project and it cannot be found on a classpath, then you did one of those two mistakes:*.jaris not correctly loaded (maybe typo in the path?)/src/main/resources/conf/settings.propertiesis seen on classpath asclasspath:conf/settings.properties