Fix publishing for jar based projects to release sources to repository on deploy.