Package org.apache.maven.artifact
Interface Artifact
- All Superinterfaces:
Comparable<Artifact>
- All Known Implementing Classes:
ActiveProjectArtifact
,AttachedArtifact
,DefaultArtifact
,PluginArtifact
,ProjectArtifact
Maven Artifact interface. Notice that it mixes artifact definition concepts (groupId, artifactId, version)
with dependency information (version range, scope).
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addMetadata
(ArtifactMetadata metadata) getFile()
getId()
getScope()
getType()
boolean
boolean
boolean
boolean
boolean
boolean
void
selectVersion
(String version) void
setArtifactHandler
(ArtifactHandler handler) void
setArtifactId
(String artifactId) void
setAvailableVersions
(List<ArtifactVersion> versions) void
setBaseVersion
(String baseVersion) void
setDependencyFilter
(ArtifactFilter artifactFilter) void
setDependencyTrail
(List<String> dependencyTrail) void
setDownloadUrl
(String downloadUrl) void
void
setGroupId
(String groupId) void
setOptional
(boolean optional) void
setRelease
(boolean release) void
setRepository
(ArtifactRepository remoteRepository) void
setResolved
(boolean resolved) void
setResolvedVersion
(String version) void
void
setVersion
(String version) void
setVersionRange
(VersionRange newRange) void
updateVersion
(String version, ArtifactRepository localRepository) Methods inherited from interface java.lang.Comparable
compareTo
-
Field Details
-
RELEASE_VERSION
- See Also:
-
LATEST_VERSION
- See Also:
-
SNAPSHOT_VERSION
- See Also:
-
VERSION_FILE_PATTERN
-
SCOPE_COMPILE
- See Also:
-
SCOPE_COMPILE_PLUS_RUNTIME
- See Also:
-
SCOPE_TEST
- See Also:
-
SCOPE_RUNTIME
- See Also:
-
SCOPE_RUNTIME_PLUS_SYSTEM
- See Also:
-
SCOPE_PROVIDED
- See Also:
-
SCOPE_SYSTEM
- See Also:
-
SCOPE_IMPORT
- See Also:
-
-
Method Details
-
getGroupId
String getGroupId() -
getArtifactId
String getArtifactId() -
getVersion
String getVersion() -
setVersion
-
getScope
String getScope() -
getType
String getType() -
getClassifier
String getClassifier() -
hasClassifier
boolean hasClassifier() -
getFile
File getFile() -
setFile
-
getBaseVersion
String getBaseVersion() -
setBaseVersion
-
getId
String getId() -
getDependencyConflictId
String getDependencyConflictId() -
addMetadata
-
getMetadataList
Collection<ArtifactMetadata> getMetadataList() -
setRepository
-
getRepository
ArtifactRepository getRepository() -
updateVersion
-
getDownloadUrl
String getDownloadUrl() -
setDownloadUrl
-
getDependencyFilter
ArtifactFilter getDependencyFilter() -
setDependencyFilter
-
getArtifactHandler
ArtifactHandler getArtifactHandler() -
getDependencyTrail
-
setDependencyTrail
-
setScope
-
getVersionRange
VersionRange getVersionRange() -
setVersionRange
-
selectVersion
-
setGroupId
-
setArtifactId
-
isSnapshot
boolean isSnapshot() -
setResolved
void setResolved(boolean resolved) -
isResolved
boolean isResolved() -
setResolvedVersion
-
setArtifactHandler
-
isRelease
boolean isRelease() -
setRelease
void setRelease(boolean release) -
getAvailableVersions
List<ArtifactVersion> getAvailableVersions() -
setAvailableVersions
-
isOptional
boolean isOptional() -
setOptional
void setOptional(boolean optional) -
getSelectedVersion
- Throws:
OverConstrainedVersionException
-
isSelectedVersionKnown
- Throws:
OverConstrainedVersionException
-