public static String getArtifactId(String deployedJarFileName) {
    Matcher semanticVersionMatcher = USER_VERSION_PATTERN.matcher(deployedJarFileName);
    if (semanticVersionMatcher.matches()) {
      return semanticVersionMatcher.group("artifact");
    } else {
      return FilenameUtils.getBaseName(deployedJarFileName);
    }
  }
get the artifact id from the files deployed by the user. This will recognize files with
SEMANTIC_VERSION_PATTERN, it will strip off the version part from the filename. For all other
file names, it will just return the basename.

@param deployedJarFileName the filename that's deployed by the user. could be in the form of
       abc.jar or abc-1.0.0.jar, both should return abc
@return the artifact id of the string
geode-management/src/main/java/org/apache/geode/management/internal/utils/JarFileUtils.java