I am building an assembly in Maven for a command line utility. I can run it as an executable jar, but it fails because I need to load the config file externally. Assuming the following config, how would I run the jar?
- Jar is in /opt/myapp/lib/myapp-assembly.jar
- Config is in /etc/myapp/config/settings.xml
- I'm loading the code from the classpath using ClassPathResource("/settings.xml");
Any help is appreciated!