Created deployment task with logic copied from Maven plugin