Rearrange tasks for uploading archives to maven.

Rearrange task for uploading archives into maven.