All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org_scala_tools_maven_dependency.StringUtil Maven / Gradle / Ivy

Go to download

The maven-scala-plugin is used for compiling/testing/running/documenting scala code in maven.

There is a newer version: 2.15.2
Show newest version
package org_scala_tools_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 - 2024 Weber Informatics LLC | Privacy Policy