@Deprecated public class AttachedArtifact extends DefaultArtifact
MavenProjectHelper.attachArtifact(org.apache.maven.project.MavenProject, java.io.File, java.lang.String)
instead.LATEST_VERSION, RELEASE_VERSION, SCOPE_COMPILE, SCOPE_COMPILE_PLUS_RUNTIME, SCOPE_IMPORT, SCOPE_PROVIDED, SCOPE_RUNTIME, SCOPE_RUNTIME_PLUS_SYSTEM, SCOPE_SYSTEM, SCOPE_TEST, SNAPSHOT_VERSION, VERSION_FILE_PATTERN
Constructor and Description |
---|
AttachedArtifact(Artifact parent,
String type,
ArtifactHandler artifactHandler)
Deprecated.
|
AttachedArtifact(Artifact parent,
String type,
String classifier,
ArtifactHandler artifactHandler)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
addMetadata(ArtifactMetadata metadata)
Deprecated.
|
List<ArtifactVersion> |
getAvailableVersions()
Deprecated.
|
String |
getBaseVersion()
Deprecated.
|
String |
getDownloadUrl()
Deprecated.
|
Collection<ArtifactMetadata> |
getMetadataList()
Deprecated.
|
ArtifactRepository |
getRepository()
Deprecated.
|
String |
getScope()
Deprecated.
|
String |
getVersion()
Deprecated.
|
VersionRange |
getVersionRange()
Deprecated.
|
boolean |
isRelease()
Deprecated.
|
boolean |
isSnapshot()
Deprecated.
|
void |
setArtifactId(String artifactId)
Deprecated.
|
void |
setAvailableVersions(List<ArtifactVersion> availableVersions)
Deprecated.
|
void |
setBaseVersion(String baseVersion)
Deprecated.
|
void |
setDownloadUrl(String downloadUrl)
Deprecated.
|
void |
setGroupId(String groupId)
Deprecated.
|
void |
setRelease(boolean release)
Deprecated.
|
void |
setRepository(ArtifactRepository repository)
Deprecated.
|
void |
setScope(String scope)
Deprecated.
|
void |
setVersion(String version)
Deprecated.
|
void |
setVersionRange(VersionRange range)
Deprecated.
|
compareTo, equals, getArtifactHandler, getArtifactId, getBaseVersionInternal, getClassifier, getDependencyConflictId, getDependencyFilter, getDependencyTrail, getFile, getGroupId, getId, getSelectedVersion, getType, hasClassifier, hashCode, isOptional, isResolved, isSelectedVersionKnown, selectVersion, setArtifactHandler, setBaseVersionInternal, setDependencyFilter, setDependencyTrail, setFile, setOptional, setResolved, setResolvedVersion, toString, updateVersion
public AttachedArtifact(Artifact parent, String type, String classifier, ArtifactHandler artifactHandler)
public AttachedArtifact(Artifact parent, String type, ArtifactHandler artifactHandler)
public void setArtifactId(String artifactId)
setArtifactId
in interface Artifact
setArtifactId
in class DefaultArtifact
public List<ArtifactVersion> getAvailableVersions()
getAvailableVersions
in interface Artifact
getAvailableVersions
in class DefaultArtifact
public void setAvailableVersions(List<ArtifactVersion> availableVersions)
setAvailableVersions
in interface Artifact
setAvailableVersions
in class DefaultArtifact
public String getBaseVersion()
getBaseVersion
in interface Artifact
getBaseVersion
in class DefaultArtifact
public void setBaseVersion(String baseVersion)
setBaseVersion
in interface Artifact
setBaseVersion
in class DefaultArtifact
public String getDownloadUrl()
getDownloadUrl
in interface Artifact
getDownloadUrl
in class DefaultArtifact
public void setDownloadUrl(String downloadUrl)
setDownloadUrl
in interface Artifact
setDownloadUrl
in class DefaultArtifact
public void setGroupId(String groupId)
setGroupId
in interface Artifact
setGroupId
in class DefaultArtifact
public ArtifactRepository getRepository()
getRepository
in interface Artifact
getRepository
in class DefaultArtifact
public void setRepository(ArtifactRepository repository)
setRepository
in interface Artifact
setRepository
in class DefaultArtifact
public String getScope()
getScope
in interface Artifact
getScope
in class DefaultArtifact
public void setScope(String scope)
setScope
in interface Artifact
setScope
in class DefaultArtifact
public String getVersion()
getVersion
in interface Artifact
getVersion
in class DefaultArtifact
public void setVersion(String version)
setVersion
in interface Artifact
setVersion
in class DefaultArtifact
public VersionRange getVersionRange()
getVersionRange
in interface Artifact
getVersionRange
in class DefaultArtifact
public void setVersionRange(VersionRange range)
setVersionRange
in interface Artifact
setVersionRange
in class DefaultArtifact
public boolean isRelease()
isRelease
in interface Artifact
isRelease
in class DefaultArtifact
public void setRelease(boolean release)
setRelease
in interface Artifact
setRelease
in class DefaultArtifact
public boolean isSnapshot()
isSnapshot
in interface Artifact
isSnapshot
in class DefaultArtifact
public void addMetadata(ArtifactMetadata metadata)
addMetadata
in interface Artifact
addMetadata
in class DefaultArtifact
public Collection<ArtifactMetadata> getMetadataList()
getMetadataList
in interface Artifact
getMetadataList
in class DefaultArtifact
Copyright © 2001–2023 The Apache Software Foundation. All rights reserved.