fix maven uploading

resubmittion of #1525