@Deprecated public class ActiveProjectArtifact extends Object implements Artifact
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 |
---|
ActiveProjectArtifact(MavenProject project,
Artifact artifact)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
addMetadata(ArtifactMetadata metadata)
Deprecated.
|
int |
compareTo(Artifact a)
Deprecated.
|
boolean |
equals(Object o)
Deprecated.
|
ArtifactHandler |
getArtifactHandler()
Deprecated.
|
String |
getArtifactId()
Deprecated.
|
List<ArtifactVersion> |
getAvailableVersions()
Deprecated.
|
String |
getBaseVersion()
Deprecated.
|
String |
getClassifier()
Deprecated.
|
String |
getDependencyConflictId()
Deprecated.
|
ArtifactFilter |
getDependencyFilter()
Deprecated.
|
List<String> |
getDependencyTrail()
Deprecated.
|
String |
getDownloadUrl()
Deprecated.
|
File |
getFile()
Deprecated.
|
String |
getGroupId()
Deprecated.
|
String |
getId()
Deprecated.
|
Collection<ArtifactMetadata> |
getMetadataList()
Deprecated.
|
ArtifactRepository |
getRepository()
Deprecated.
|
String |
getScope()
Deprecated.
|
ArtifactVersion |
getSelectedVersion()
Deprecated.
|
String |
getType()
Deprecated.
|
String |
getVersion()
Deprecated.
|
VersionRange |
getVersionRange()
Deprecated.
|
boolean |
hasClassifier()
Deprecated.
|
int |
hashCode()
Deprecated.
|
boolean |
isOptional()
Deprecated.
|
boolean |
isRelease()
Deprecated.
|
boolean |
isResolved()
Deprecated.
|
boolean |
isSelectedVersionKnown()
Deprecated.
|
boolean |
isSnapshot()
Deprecated.
|
void |
selectVersion(String version)
Deprecated.
|
void |
setArtifactHandler(ArtifactHandler handler)
Deprecated.
|
void |
setArtifactId(String artifactId)
Deprecated.
|
void |
setAvailableVersions(List<ArtifactVersion> versions)
Deprecated.
|
void |
setBaseVersion(String baseVersion)
Deprecated.
|
void |
setDependencyFilter(ArtifactFilter artifactFilter)
Deprecated.
|
void |
setDependencyTrail(List<String> dependencyTrail)
Deprecated.
|
void |
setDownloadUrl(String downloadUrl)
Deprecated.
|
void |
setFile(File destination)
Deprecated.
|
void |
setGroupId(String groupId)
Deprecated.
|
void |
setOptional(boolean optional)
Deprecated.
|
void |
setRelease(boolean release)
Deprecated.
|
void |
setRepository(ArtifactRepository remoteRepository)
Deprecated.
|
void |
setResolved(boolean resolved)
Deprecated.
|
void |
setResolvedVersion(String version)
Deprecated.
|
void |
setScope(String scope)
Deprecated.
|
void |
setVersion(String version)
Deprecated.
|
void |
setVersionRange(VersionRange newRange)
Deprecated.
|
String |
toString()
Deprecated.
|
void |
updateVersion(String version,
ArtifactRepository localRepository)
Deprecated.
|
public ActiveProjectArtifact(MavenProject project, Artifact artifact)
public String getGroupId()
getGroupId
in interface Artifact
public String getArtifactId()
getArtifactId
in interface Artifact
public String getVersion()
getVersion
in interface Artifact
public void setVersion(String version)
setVersion
in interface Artifact
public String getClassifier()
getClassifier
in interface Artifact
public boolean hasClassifier()
hasClassifier
in interface Artifact
public void setFile(File destination)
public String getBaseVersion()
getBaseVersion
in interface Artifact
public void setBaseVersion(String baseVersion)
setBaseVersion
in interface Artifact
public String getDependencyConflictId()
getDependencyConflictId
in interface Artifact
public void addMetadata(ArtifactMetadata metadata)
addMetadata
in interface Artifact
public Collection<ArtifactMetadata> getMetadataList()
getMetadataList
in interface Artifact
public void setRepository(ArtifactRepository remoteRepository)
setRepository
in interface Artifact
public ArtifactRepository getRepository()
getRepository
in interface Artifact
public void updateVersion(String version, ArtifactRepository localRepository)
updateVersion
in interface Artifact
public String getDownloadUrl()
getDownloadUrl
in interface Artifact
public void setDownloadUrl(String downloadUrl)
setDownloadUrl
in interface Artifact
public ArtifactFilter getDependencyFilter()
getDependencyFilter
in interface Artifact
public void setDependencyFilter(ArtifactFilter artifactFilter)
setDependencyFilter
in interface Artifact
public ArtifactHandler getArtifactHandler()
getArtifactHandler
in interface Artifact
public List<String> getDependencyTrail()
getDependencyTrail
in interface Artifact
public void setDependencyTrail(List<String> dependencyTrail)
setDependencyTrail
in interface Artifact
public void setScope(String scope)
public VersionRange getVersionRange()
getVersionRange
in interface Artifact
public void setVersionRange(VersionRange newRange)
setVersionRange
in interface Artifact
public void selectVersion(String version)
selectVersion
in interface Artifact
public void setGroupId(String groupId)
setGroupId
in interface Artifact
public void setArtifactId(String artifactId)
setArtifactId
in interface Artifact
public boolean isSnapshot()
isSnapshot
in interface Artifact
public int compareTo(Artifact a)
compareTo
in interface Comparable<Artifact>
public void setResolved(boolean resolved)
setResolved
in interface Artifact
public boolean isResolved()
isResolved
in interface Artifact
public void setResolvedVersion(String version)
setResolvedVersion
in interface Artifact
public void setArtifactHandler(ArtifactHandler handler)
setArtifactHandler
in interface Artifact
public void setRelease(boolean release)
setRelease
in interface Artifact
public List<ArtifactVersion> getAvailableVersions()
getAvailableVersions
in interface Artifact
public void setAvailableVersions(List<ArtifactVersion> versions)
setAvailableVersions
in interface Artifact
public boolean isOptional()
isOptional
in interface Artifact
public ArtifactVersion getSelectedVersion() throws OverConstrainedVersionException
getSelectedVersion
in interface Artifact
OverConstrainedVersionException
public boolean isSelectedVersionKnown() throws OverConstrainedVersionException
isSelectedVersionKnown
in interface Artifact
OverConstrainedVersionException
public void setOptional(boolean optional)
setOptional
in interface Artifact
Copyright © 2001–2023 The Apache Software Foundation. All rights reserved.