Project would not build unless you had sonatypeUsername and sonatypePassword specified

Porting a commit by jelmerk from the original branch to avoid setting Sonatype username and password.