in nbm-maven-plugin/src/main/java/org/apache/netbeans/nbm/CreateNetBeansFileStructure.java [554:580]
static void writeExternal(PrintWriter w, Artifact artifact) throws IOException {
w.write("CRC:");
File file = artifact.getFile();
w.write(Long.toString(CreateClusterAppMojo.crcForFile(file).getValue()));
w.write("\nSIZE:");
w.write(Long.toString(file.length()));
w.write("\nURL:m2:/");
w.write(artifact.getGroupId());
w.write(':');
w.write(artifact.getArtifactId());
w.write(':');
w.write(artifact.getVersion());
w.write(':');
w.write(artifact.getType());
if (artifact.getClassifier() != null) {
w.write(':');
w.write(artifact.getClassifier());
}
w.write("\nURL:");
// artifact.repository is null, so cannot use its url, and anyway might be a mirror
w.
write( /* M3: RepositorySystem.DEFAULT_REMOTE_REPO_URL + '/' */
"http://repo.maven.apache.org/maven2/");
w.write(new DefaultRepositoryLayout().pathOf(artifact));
w.write('\n');
w.flush();
}