scala_maven_dependency.StringUtil Maven / Gradle / Ivy
package scala_maven_dependency;
import org.apache.maven.artifact.Artifact;
/**
* Utilities for making Error messages.
*/
public class StringUtil {
/**
* Creates a human-readable string for an artifact.
* @param artifact
* @return
*/
public static String makeArtifactNameString(Artifact artifact) {
//TODO - Handle version ranges...
if(artifact == null) {
return "";
}
return artifact.getGroupId() + ":" + artifact.getArtifactId() + ":" + artifact.getVersion();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy