Do not assume a .rev attribute in available in src in maven-build.nix

(cherry picked from commit 13e13f279b61c35a744888196789187828c32295)