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 TypeMethodDescriptionvoidaddMetadata(ArtifactMetadata metadata) getScope()Get the scope of the artifact.booleanbooleanvoidsetArtifactId(String artifactId) voidsetAvailableVersions(List availableVersions) voidsetBaseVersion(String baseVersion) voidsetDownloadUrl(String downloadUrl) voidsetGroupId(String groupId) voidsetRelease(boolean release) voidsetRepository(ArtifactRepository repository) voidvoidsetVersion(String version) voidsetVersionRange(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:
setArtifactIdin interfaceArtifact- Overrides:
setArtifactIdin classDefaultArtifact
-
getAvailableVersions
- Specified by:
getAvailableVersionsin interfaceArtifact- Overrides:
getAvailableVersionsin classDefaultArtifact
-
setAvailableVersions
- Specified by:
setAvailableVersionsin interfaceArtifact- Overrides:
setAvailableVersionsin classDefaultArtifact
-
getBaseVersion
- Specified by:
getBaseVersionin interfaceArtifact- Overrides:
getBaseVersionin classDefaultArtifact
-
setBaseVersion
- Specified by:
setBaseVersionin interfaceArtifact- Overrides:
setBaseVersionin classDefaultArtifact
-
getDownloadUrl
- Specified by:
getDownloadUrlin interfaceArtifact- Overrides:
getDownloadUrlin classDefaultArtifact
-
setDownloadUrl
- Specified by:
setDownloadUrlin interfaceArtifact- Overrides:
setDownloadUrlin classDefaultArtifact
-
setGroupId
- Specified by:
setGroupIdin interfaceArtifact- Overrides:
setGroupIdin classDefaultArtifact
-
getRepository
- Specified by:
getRepositoryin interfaceArtifact- Overrides:
getRepositoryin classDefaultArtifact
-
setRepository
- Specified by:
setRepositoryin interfaceArtifact- Overrides:
setRepositoryin classDefaultArtifact
-
getScope
Description copied from interface:ArtifactGet 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:
getScopein interfaceArtifact- Overrides:
getScopein classDefaultArtifact- Returns:
- the scope
-
setScope
- Specified by:
setScopein interfaceArtifact- Overrides:
setScopein classDefaultArtifact
-
getVersion
- Specified by:
getVersionin interfaceArtifact- Overrides:
getVersionin classDefaultArtifact
-
setVersion
- Specified by:
setVersionin interfaceArtifact- Overrides:
setVersionin classDefaultArtifact
-
getVersionRange
- Specified by:
getVersionRangein interfaceArtifact- Overrides:
getVersionRangein classDefaultArtifact
-
setVersionRange
- Specified by:
setVersionRangein interfaceArtifact- Overrides:
setVersionRangein classDefaultArtifact
-
isRelease
public boolean isRelease()- Specified by:
isReleasein interfaceArtifact- Overrides:
isReleasein classDefaultArtifact
-
setRelease
public void setRelease(boolean release) - Specified by:
setReleasein interfaceArtifact- Overrides:
setReleasein classDefaultArtifact
-
isSnapshot
public boolean isSnapshot()- Specified by:
isSnapshotin interfaceArtifact- Overrides:
isSnapshotin classDefaultArtifact
-
addMetadata
- Specified by:
addMetadatain interfaceArtifact- Overrides:
addMetadatain classDefaultArtifact
-
getMetadataList
- Specified by:
getMetadataListin interfaceArtifact- Overrides:
getMetadataListin classDefaultArtifact
-