Why do you want to replace? Leaves as it is OR after deploying new version remove the old one.
because i have issues with old versions and i want to automate deployment process
Your filter must have the path included (check the vault related filter.xml file generated or included along in your package)
so you must have a rule that include /apps/myapp/install
if not it will just add what is in the package without checking what is not.
Note that for bundle update it is good to keep the old bundle in case you have any OSGI config attached as in that case it will not complain that the config doesn't match the bundle location, unless you also always keep the config in the same package as OSGI config node.
all configs installs with app package, so i don't configure services in felix console.
as far as i know if mode not specified it set to replace
my filter xml example:
<include pattern="/apps/myapp/install" />
What do you under /vault-work/META-INF/vault/definition/.content.xml ?
Also can you try
<filter root="/apps/myapp/install" mode="replace"></filter>
<filter root="/apps/myapp" mode="replace"></filter>
/apps/myapp/install should be included under /apps/myapp any way.
i have following xml
thank you for suggestions but they does not work for me, i think this is issue GRANITE-822 listed here http://dev.day.com/docs/en/cq/5-5/release_notes_update-1.html
Can you replace
also didn't help
1 person found this helpful
i fixed this issue by installing Service Pack 2