Solve issue with maven publishing script