I'm using maven to generate a jar with all dependencies inside the jar (as shown in this question). This is working fine. The problem is, I need to have some .properties file un an external directory (like C:/program/config) where there will be some configurations parameters. These parameters are used in Spring:
<property name="driverClassName" value="${database.driver}" />
How can I add this directory to the classpath so that Spring (or the java code whenever it neets to) can access to the files under C:/program/config.
Note that I don't wan't to include the files inside the jar, I wan't that the classpath recognize this directory (I know I can do it in a cmd with set CLASSPATH="", but I neet to avoid this).
Thanks.