GAVUtil { static String toColonNotation(String groupId, String artifactId, String version, String extension, String classifier) { ensureNotNullOrEmpty(groupId, GROUP_ID); ensureNotNullOrEmpty(artifactId, ARTIFACT_ID); ensureNotNullOrEmpty(version, VERSION); ensureNotNullOrEmpty(extension, EXTENSION); ensureNotNullOrEmpty(classifier, CLASSIFIER); return groupId + ":" + artifactId + ":" + extension + ":" + classifier + ":" + version; }    }
@Test public void testToColonNotation() throws Exception { Assert.assertEquals("com.sap.mytest:testArtifact:tar:classifier:1.0.0", GAVUtil.toColonNotation("com.sap.mytest", "testArtifact", "1.0.0", "tar", "classifier")); }