public static String derivePomUrl(String artifactId, String version, String artifactUrl) {
        return artifactUrl.substring(0, artifactUrl.lastIndexOf('/')) + '/' + artifactId + '-' + version + ".pom";
    }
public static String derivePomUrl ( String artifactId , String version , String artifactUrl ) { return artifactUrl . substring ( 0 , artifactUrl . lastIndexOf ( '/' ) ) + '/' + artifactId + '-' + version + ".pom" ; }
Tries to determine the URL to the pom.xml.

@param artifactId the artifact id
@param version the version
@param artifactUrl the artifact URL
@return the string representation of the URL