Apparently -Dbuild.release=1 is needed...