public interface Artifact extends Comparable<Artifact>
Modifier and Type | Field and Description |
---|---|
static String |
LATEST_VERSION |
static String |
RELEASE_VERSION |
static String |
SCOPE_COMPILE |
static String |
SCOPE_COMPILE_PLUS_RUNTIME |
static String |
SCOPE_IMPORT |
static String |
SCOPE_PROVIDED |
static String |
SCOPE_RUNTIME |
static String |
SCOPE_RUNTIME_PLUS_SYSTEM |
static String |
SCOPE_SYSTEM |
static String |
SCOPE_TEST |
static String |
SNAPSHOT_VERSION |
static Pattern |
VERSION_FILE_PATTERN |
compareTo
static final String RELEASE_VERSION
static final String LATEST_VERSION
static final String SNAPSHOT_VERSION
static final Pattern VERSION_FILE_PATTERN
static final String SCOPE_COMPILE
static final String SCOPE_COMPILE_PLUS_RUNTIME
static final String SCOPE_TEST
static final String SCOPE_RUNTIME
static final String SCOPE_RUNTIME_PLUS_SYSTEM
static final String SCOPE_PROVIDED
static final String SCOPE_SYSTEM
static final String SCOPE_IMPORT
String getGroupId()
String getArtifactId()
String getVersion()
void setVersion(String version)
String getScope()
String getType()
String getClassifier()
boolean hasClassifier()
File getFile()
void setFile(File destination)
String getBaseVersion()
void setBaseVersion(String baseVersion)
String getId()
String getDependencyConflictId()
void addMetadata(ArtifactMetadata metadata)
Collection<ArtifactMetadata> getMetadataList()
void setRepository(ArtifactRepository remoteRepository)
ArtifactRepository getRepository()
void updateVersion(String version, ArtifactRepository localRepository)
String getDownloadUrl()
void setDownloadUrl(String downloadUrl)
ArtifactFilter getDependencyFilter()
void setDependencyFilter(ArtifactFilter artifactFilter)
ArtifactHandler getArtifactHandler()
void setScope(String scope)
VersionRange getVersionRange()
void setVersionRange(VersionRange newRange)
void selectVersion(String version)
void setGroupId(String groupId)
void setArtifactId(String artifactId)
boolean isSnapshot()
void setResolved(boolean resolved)
boolean isResolved()
void setResolvedVersion(String version)
void setArtifactHandler(ArtifactHandler handler)
boolean isRelease()
void setRelease(boolean release)
List<ArtifactVersion> getAvailableVersions()
void setAvailableVersions(List<ArtifactVersion> versions)
boolean isOptional()
void setOptional(boolean optional)
ArtifactVersion getSelectedVersion() throws OverConstrainedVersionException
OverConstrainedVersionException
boolean isSelectedVersionKnown() throws OverConstrainedVersionException
OverConstrainedVersionException
Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.