Don't fail if -SNAPSHOT exists.
If you have a real build number, then just remove -SNAPSHOT, because it's legit.