Hello everyone, I would like to have one configuration file in properties format. Configuration differs in some parts between prod and dev profiles. For example:
conf.properties for prod env: keyA=valueAP keyB=valueBP keyC=valueCP conf.properties for dev env: keyA=valueAD keyB=valueBD keyC=valueCD keyD=valueDD keyE=valueED I would change it with use of profiles and filtering to one conf.properties file like this: conf.properties: keyA=${keyAvalueA} keyB=${keyAvalueB} keyC=${keyAvalueC} filter.properties for prod would look like this: keyAvalue=valueAP keyBvalue=valueBP keyCvalue=valueCP But what to do with values which must be in dev version and must not be in prod version (keyD and keyE)? Add in conf.properties something like ${dev.settings} in the end of file and in filter.properties for dev with: dev.settings=....... where ..... is encoded: keyD=valueDD keyE=valueED as a value of dev.settings property? Any cleaner and more readable solution? Thanks and regards, Piotr -- View this message in context: http://www.nabble.com/Profiles%2C-filtering-resources-and-optional-content-tf3402841s177.html#a9476847 Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]