This might not be the answer you are looking for. Normally in place upgrade is preferred for version history migration. If that is why you are going with in place upgrade, you can do fresh install and deployment and then package version history with filter rules, like this - /jcr:system/jcr:versionS...