Here is what you need to do:Get com.day.jcr.vault.packaging.Packaging reference injection in your service.Packaging API will get you access to JCRPackageManager i.e. - packaging.getPackageManager(session);Now using PackageManager you can set conflict resolution policy, package name, group, version ...