private static void removeOtherVersionsOf(Path groupDir, String jarFileName) {
    String artifactId = JarFileUtils.getArtifactId(jarFileName);
    for (File file : groupDir.toFile().listFiles()) {
      if (file.getName().equals(jarFileName)) {
        continue;
      }
      if (JarFileUtils.getArtifactId(file.getName()).equals(artifactId)) {
        FileUtils.deleteQuietly(file);
      }
    }
  }
Add jar information into the shared configuration and save the jars in the file system used
when deploying jars
geode-core/src/main/java/org/apache/geode/distributed/internal/InternalConfigurationPersistenceService.java