public interface Artifact extends Comparable<Artifact>
修饰符和类型 | 字段和说明 |
---|---|
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 |
static final Pattern VERSION_FILE_PATTERN
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
boolean isSelectedVersionKnown() throws OverConstrainedVersionException
版权所有 © 2001–2022 Apache 软件基金会。版权所有。