Version was not updated in the XenServerJava pom
Backport fixes on package.sh to the 4.2 branch