anchor.diff:    print(dir);
     read(join(dir, "pom.xml")).forEach((line) {
       if (line.contains("<releaseVersion>")) {
  +      line = line.replaceFirst("-SNAPSHOT", "");
         var parts = line.split(".");
         if (parts.length != 3) {
           exit(1);
  
positive.code:   'git push origin tag $version'.run;
  }
  
  void replace(String path, version) {
    var tmp = '$path.tmp';
    if (exists(tmp)) {
      delete(tmp);
  
negative.code:       rev = int.parse(parts[2].split("<")[0]);
      }
    });
  
    var postFix = "";
    if (confirm(prompt: "Is this a SNAPSHOT release")) {
      postFix = "-SNAPSHOT";
      rev++;
    } else {
      rev = 0;
      minor++;
    }
  
    String version = "$major.$minor.$rev$postFix";
  
    replace(join(dir, "pom.xml"), version);
  
  