-
1. Re: How to update configuration from maven after feature is installed?
ffang Oct 30, 2013 5:09 AM (in response to henrique.viecili)Hi,
You need remove
override="true"
from the configuration, otherwise features:install will always copy mvn:com.feature/my-feature/${project.version}/cfg/com.my.feature to override the etc/com.my.feature.cfg which you modified.
Freeman
-
2. Re: How to update configuration from maven after feature is installed?
henrique.viecili Oct 30, 2013 7:19 PM (in response to ffang)ffang, that's exactly what I want.
I would like to update/override the configuration every time I run features:install or osgi:update on an already-installed feature/bundle. I've tried with both commands, but it didn't work.
-
3. Re: How to update configuration from maven after feature is installed?
ffang Oct 30, 2013 8:44 PM (in response to henrique.viecili)As I said, remove
override="true"
and use
configure:...
command from console or directly edit the etc/com.my.feature.cfg, then both features:install and osgi:update|refresh can pick up the new configuration.
Freeman
-
4. Re: How to update configuration from maven after feature is installed?
henrique.viecili Nov 1, 2013 3:25 AM (in response to ffang)(step by step, considering my-feature is already installed and etc/com.my.feature.cfg exists)
- I removed override="true" from my features file and deployed it to maven (mvn:com.feature/my-feature/1.0.0-SNAPSHOT/xml/features)
- features:refreshurl
- updated the configuration file and deployed it to maven (mvn:com.feature/my-feature/1.0.0-SNAPSHOT/cfg/com.my.feature)
- osgi:update my-feature
Result: the bundle is updated but the properties DO NOT change to the new values. (tried with and without override="true", it makes no difference)
PS.: The objective behind this is to automate the deployment of bundles and their configurations from Jenkins.