Hi Guys
To load environment specific values, in my src/main/resources folder, I have some properties files in different subfolders i.e.
com/app/ws/webservices-dev.properties
com/app/ws/webservices-test.properties
com/app/jms/jms-dev.properties
com/app/jms/jms-test.properties
I am loading these properties through spring
ENVIRONMENT is environment variable.
I am using appassembler-maven-plugin to generate the executable .sh file.
As a result of this all my properties files become part of my generated jar file. I want to expose some of the properties to set their values at deployment time. I have tried following configuration
But Spring does not load the properties; may be due to the given path in spring config(see above) ?
What
maven configuration should I use to move my properties files in appassembler\conf folder at package time and have spring load them from classpath. I am after the configuration that works for both development(in eclipse,
unit tests as maven builds) and in deployment
Please guide.
Thanks