Since you intend the osgi changes to persist, instead of trying to exclude it, make the config part of your code base. Add the file under my.test.config.TestConfiguration.xml under /apps/test/config with the configuration values you want to persist: <?xml version="1.0" encoding="UTF-8"?><jcr:root x...