Class AttachedArtifact
java.lang.Object
org.apache.maven.artifact.DefaultArtifact
org.apache.maven.project.artifact.AttachedArtifact
- All Implemented Interfaces:
Comparable<Artifact>
,Artifact
-
Field Summary
FieldsFields inherited from interface org.apache.maven.artifact.Artifact
LATEST_VERSION, RELEASE_VERSION, SCOPE_COMPILE, SCOPE_IMPORT, SCOPE_PROVIDED, SCOPE_RUNTIME, SCOPE_SYSTEM, SCOPE_TEST, SNAPSHOT_VERSION, VERSION_FILE_PATTERN
-
Constructor Summary
ConstructorsConstructorDescriptionAttachedArtifact
(Artifact parent, String type, String classifier, ArtifactHandler artifactHandler) AttachedArtifact
(Artifact parent, String type, ArtifactHandler artifactHandler) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addMetadata
(ArtifactMetadata metadata) getScope()
Get the scope of the artifact.boolean
boolean
void
setArtifactId
(String artifactId) void
setAvailableVersions
(List availableVersions) void
setBaseVersion
(String baseVersion) void
setDownloadUrl
(String downloadUrl) void
setGroupId
(String groupId) void
setRelease
(boolean release) void
setRepository
(ArtifactRepository repository) void
void
setVersion
(String version) void
setVersionRange
(VersionRange range) Methods inherited from class org.apache.maven.artifact.DefaultArtifact
compareTo, equals, getArtifactHandler, getArtifactId, getBaseVersionInternal, getClassifier, getDependencyConflictId, getDependencyFilter, getDependencyTrail, getFile, getGroupId, getId, getMetadata, getSelectedVersion, getType, hasClassifier, hashCode, isOptional, isResolved, isSelectedVersionKnown, selectVersion, setArtifactHandler, setBaseVersionInternal, setDependencyFilter, setDependencyTrail, setFile, setOptional, setResolved, setResolvedVersion, toString, updateVersion
-
Field Details
-
parent
-
-
Constructor Details
-
AttachedArtifact
public AttachedArtifact(Artifact parent, String type, String classifier, ArtifactHandler artifactHandler) -
AttachedArtifact
-
-
Method Details
-
setArtifactId
- Specified by:
setArtifactId
in interfaceArtifact
- Overrides:
setArtifactId
in classDefaultArtifact
-
getAvailableVersions
- Specified by:
getAvailableVersions
in interfaceArtifact
- Overrides:
getAvailableVersions
in classDefaultArtifact
-
setAvailableVersions
- Specified by:
setAvailableVersions
in interfaceArtifact
- Overrides:
setAvailableVersions
in classDefaultArtifact
-
getBaseVersion
- Specified by:
getBaseVersion
in interfaceArtifact
- Overrides:
getBaseVersion
in classDefaultArtifact
-
setBaseVersion
- Specified by:
setBaseVersion
in interfaceArtifact
- Overrides:
setBaseVersion
in classDefaultArtifact
-
getDownloadUrl
- Specified by:
getDownloadUrl
in interfaceArtifact
- Overrides:
getDownloadUrl
in classDefaultArtifact
-
setDownloadUrl
- Specified by:
setDownloadUrl
in interfaceArtifact
- Overrides:
setDownloadUrl
in classDefaultArtifact
-
setGroupId
- Specified by:
setGroupId
in interfaceArtifact
- Overrides:
setGroupId
in classDefaultArtifact
-
getRepository
- Specified by:
getRepository
in interfaceArtifact
- Overrides:
getRepository
in classDefaultArtifact
-
setRepository
- Specified by:
setRepository
in interfaceArtifact
- Overrides:
setRepository
in classDefaultArtifact
-
getScope
Description copied from interface:Artifact
Get the scope of the artifact. If the artifact is a standalone rather than a dependency, it's scope will benull
. The scope may not be the same as it was declared on the original dependency, as this is the result of combining it with the main project scope.- Specified by:
getScope
in interfaceArtifact
- Overrides:
getScope
in classDefaultArtifact
- Returns:
- the scope
-
setScope
- Specified by:
setScope
in interfaceArtifact
- Overrides:
setScope
in classDefaultArtifact
-
getVersion
- Specified by:
getVersion
in interfaceArtifact
- Overrides:
getVersion
in classDefaultArtifact
-
setVersion
- Specified by:
setVersion
in interfaceArtifact
- Overrides:
setVersion
in classDefaultArtifact
-
getVersionRange
- Specified by:
getVersionRange
in interfaceArtifact
- Overrides:
getVersionRange
in classDefaultArtifact
-
setVersionRange
- Specified by:
setVersionRange
in interfaceArtifact
- Overrides:
setVersionRange
in classDefaultArtifact
-
isRelease
public boolean isRelease()- Specified by:
isRelease
in interfaceArtifact
- Overrides:
isRelease
in classDefaultArtifact
-
setRelease
public void setRelease(boolean release) - Specified by:
setRelease
in interfaceArtifact
- Overrides:
setRelease
in classDefaultArtifact
-
isSnapshot
public boolean isSnapshot()- Specified by:
isSnapshot
in interfaceArtifact
- Overrides:
isSnapshot
in classDefaultArtifact
-
addMetadata
- Specified by:
addMetadata
in interfaceArtifact
- Overrides:
addMetadata
in classDefaultArtifact
-
getMetadataList
- Specified by:
getMetadataList
in interfaceArtifact
- Overrides:
getMetadataList
in classDefaultArtifact
-