code: public static String getBaseVersion(Coordinates coordinates) {
          String version = coordinates.getVersion();
          Matcher m = SNAPSHOT_TIMESTAMP.matcher(version);
          if (m.matches()) {
              if (m.group(1) != null) {
                  return m.group(1) + SNAPSHOT;
              } else {
                  return SNAPSHOT;
              }
          }
          return version;
  
      }
docs: Determine the base version of given {@link Coordinates}.
  
  For releases the base version is the given version. If a snapshot version
  contains a repository timestamp suffix then it will be replaced by
  {@link #SNAPSHOT}.
  
  @param coordinates
  The coordinates.
  @return The base version.