public class MavenRetriever
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static <any> |
APACHE_SNAPSHOT_URL_GENERATOR |
static <any> |
CONDITIONAL_SNAPSHOT_URL_GENERATOR |
static <any> |
LOCAL_REPO_PATH_GENERATOR |
static <any> |
MAVEN_CENTRAL_URL_GENERATOR |
static <any> |
SONATYPE_SNAPSHOT_URL_GENERATOR |
Constructor and Description |
---|
MavenRetriever() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getHostedUrl(MavenArtifact artifact) |
java.lang.String |
getLocalPath(MavenArtifact artifact) |
java.lang.String |
getLocalUrl(MavenArtifact artifact)
returns a URL for accessing the given artifact, preferring a local file if available,
else generating a hosted URL (but not checking)
|
static java.lang.String |
hostedUrl(MavenArtifact artifact)
returns a URL for accessing the artifact from any machine (ie not allowing a local repo),
using the default remote sits (sonatype for snapshots and maven.org for releases)
|
boolean |
isInstalledLocally(MavenArtifact artifact) |
static java.lang.String |
localUrl(MavenArtifact artifact)
returns a URL for accessing the artifact from the local machine (ie preferring a local repo),
using the default remote sits (sonatype for snapshots and maven.org for releases)
|
static <any> |
nexusSnapshotUrlGenerator(java.lang.String baseUrl) |
void |
setReleaseUrlGenerator(<any> releaseUrlGenerator) |
void |
setSnapshotUrlGenerator(<any> snapshotUrlGenerator) |
public static final <any> CONDITIONAL_SNAPSHOT_URL_GENERATOR
public static final <any> SONATYPE_SNAPSHOT_URL_GENERATOR
public static final <any> APACHE_SNAPSHOT_URL_GENERATOR
public static final <any> MAVEN_CENTRAL_URL_GENERATOR
public static final <any> LOCAL_REPO_PATH_GENERATOR
public static <any> nexusSnapshotUrlGenerator(java.lang.String baseUrl)
public void setSnapshotUrlGenerator(<any> snapshotUrlGenerator)
public void setReleaseUrlGenerator(<any> releaseUrlGenerator)
public java.lang.String getHostedUrl(MavenArtifact artifact)
public java.lang.String getLocalPath(MavenArtifact artifact)
public boolean isInstalledLocally(MavenArtifact artifact)
public java.lang.String getLocalUrl(MavenArtifact artifact)
public static java.lang.String localUrl(MavenArtifact artifact)
public static java.lang.String hostedUrl(MavenArtifact artifact)