File resolved = resolve(session, artifact);
return IO.read(resolved);
}
public VersionRangeResult resolveVersions(String groupId, String artifactId, String classifier, String extension, String version) {
final RepositorySystemSession session = newSession();
Artifact artifact = new DefaultArtifact(groupId, artifactId, classifier, extension, version);
if (artifact.getVersion().equals("LATEST")) {
artifact = artifact.setVersion(LATEST_VERSION_RANGE);
}
final VersionRangeRequest request = new VersionRangeRequest(artifact, m_remoteRepos, null);