fix test/snapshot and maven repo call in buildfile

I messed up how the snapshot task takes system properties, this should fix it.

Also removed deprecated way of calling mavenrepo, no more complaints at build time.