Class ActiveProjectArtifact
- java.lang.Object
-
- org.apache.maven.project.artifact.ActiveProjectArtifact
-
- All Implemented Interfaces:
Comparable<Artifact>
,Artifact
@Deprecated public class ActiveProjectArtifact extends Object implements Artifact
Deprecated.Wraps an active project instance to be able to receive updates from its artifact without affecting the original attributes of this artifact.- Author:
- Brett Porter TODO I think this exposes a design flaw in that the immutable and mutable parts of an artifact are in one class and should be split. ie scope, file, etc depend on the context of use, whereas everything else is immutable.
-
-
Field Summary
-
Fields inherited from interface org.apache.maven.artifact.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 Summary
Constructors Constructor Description ActiveProjectArtifact(MavenProject project, Artifact artifact)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method 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.
-
-
-
Constructor Detail
-
ActiveProjectArtifact
public ActiveProjectArtifact(MavenProject project, Artifact artifact)
Deprecated.
-
-
Method Detail
-
getGroupId
public String getGroupId()
Deprecated.- Specified by:
getGroupId
in interfaceArtifact
-
getArtifactId
public String getArtifactId()
Deprecated.- Specified by:
getArtifactId
in interfaceArtifact
-
getVersion
public String getVersion()
Deprecated.- Specified by:
getVersion
in interfaceArtifact
-
setVersion
public void setVersion(String version)
Deprecated.- Specified by:
setVersion
in interfaceArtifact
-
getClassifier
public String getClassifier()
Deprecated.- Specified by:
getClassifier
in interfaceArtifact
-
hasClassifier
public boolean hasClassifier()
Deprecated.- Specified by:
hasClassifier
in interfaceArtifact
-
setFile
public void setFile(File destination)
Deprecated.
-
getBaseVersion
public String getBaseVersion()
Deprecated.- Specified by:
getBaseVersion
in interfaceArtifact
-
setBaseVersion
public void setBaseVersion(String baseVersion)
Deprecated.- Specified by:
setBaseVersion
in interfaceArtifact
-
getDependencyConflictId
public String getDependencyConflictId()
Deprecated.- Specified by:
getDependencyConflictId
in interfaceArtifact
-
addMetadata
public void addMetadata(ArtifactMetadata metadata)
Deprecated.- Specified by:
addMetadata
in interfaceArtifact
-
getMetadataList
public Collection<ArtifactMetadata> getMetadataList()
Deprecated.- Specified by:
getMetadataList
in interfaceArtifact
-
setRepository
public void setRepository(ArtifactRepository remoteRepository)
Deprecated.- Specified by:
setRepository
in interfaceArtifact
-
getRepository
public ArtifactRepository getRepository()
Deprecated.- Specified by:
getRepository
in interfaceArtifact
-
updateVersion
public void updateVersion(String version, ArtifactRepository localRepository)
Deprecated.- Specified by:
updateVersion
in interfaceArtifact
-
getDownloadUrl
public String getDownloadUrl()
Deprecated.- Specified by:
getDownloadUrl
in interfaceArtifact
-
setDownloadUrl
public void setDownloadUrl(String downloadUrl)
Deprecated.- Specified by:
setDownloadUrl
in interfaceArtifact
-
getDependencyFilter
public ArtifactFilter getDependencyFilter()
Deprecated.- Specified by:
getDependencyFilter
in interfaceArtifact
-
setDependencyFilter
public void setDependencyFilter(ArtifactFilter artifactFilter)
Deprecated.- Specified by:
setDependencyFilter
in interfaceArtifact
-
getArtifactHandler
public ArtifactHandler getArtifactHandler()
Deprecated.- Specified by:
getArtifactHandler
in interfaceArtifact
-
getDependencyTrail
public List<String> getDependencyTrail()
Deprecated.- Specified by:
getDependencyTrail
in interfaceArtifact
-
setDependencyTrail
public void setDependencyTrail(List<String> dependencyTrail)
Deprecated.- Specified by:
setDependencyTrail
in interfaceArtifact
-
setScope
public void setScope(String scope)
Deprecated.
-
getVersionRange
public VersionRange getVersionRange()
Deprecated.- Specified by:
getVersionRange
in interfaceArtifact
-
setVersionRange
public void setVersionRange(VersionRange newRange)
Deprecated.- Specified by:
setVersionRange
in interfaceArtifact
-
selectVersion
public void selectVersion(String version)
Deprecated.- Specified by:
selectVersion
in interfaceArtifact
-
setGroupId
public void setGroupId(String groupId)
Deprecated.- Specified by:
setGroupId
in interfaceArtifact
-
setArtifactId
public void setArtifactId(String artifactId)
Deprecated.- Specified by:
setArtifactId
in interfaceArtifact
-
isSnapshot
public boolean isSnapshot()
Deprecated.- Specified by:
isSnapshot
in interfaceArtifact
-
compareTo
public int compareTo(Artifact a)
Deprecated.- Specified by:
compareTo
in interfaceComparable<Artifact>
-
setResolved
public void setResolved(boolean resolved)
Deprecated.- Specified by:
setResolved
in interfaceArtifact
-
isResolved
public boolean isResolved()
Deprecated.- Specified by:
isResolved
in interfaceArtifact
-
setResolvedVersion
public void setResolvedVersion(String version)
Deprecated.- Specified by:
setResolvedVersion
in interfaceArtifact
-
setArtifactHandler
public void setArtifactHandler(ArtifactHandler handler)
Deprecated.- Specified by:
setArtifactHandler
in interfaceArtifact
-
setRelease
public void setRelease(boolean release)
Deprecated.- Specified by:
setRelease
in interfaceArtifact
-
getAvailableVersions
public List<ArtifactVersion> getAvailableVersions()
Deprecated.- Specified by:
getAvailableVersions
in interfaceArtifact
-
setAvailableVersions
public void setAvailableVersions(List<ArtifactVersion> versions)
Deprecated.- Specified by:
setAvailableVersions
in interfaceArtifact
-
isOptional
public boolean isOptional()
Deprecated.- Specified by:
isOptional
in interfaceArtifact
-
getSelectedVersion
public ArtifactVersion getSelectedVersion() throws OverConstrainedVersionException
Deprecated.- Specified by:
getSelectedVersion
in interfaceArtifact
- Throws:
OverConstrainedVersionException
-
isSelectedVersionKnown
public boolean isSelectedVersionKnown() throws OverConstrainedVersionException
Deprecated.- Specified by:
isSelectedVersionKnown
in interfaceArtifact
- Throws:
OverConstrainedVersionException
-
setOptional
public void setOptional(boolean optional)
Deprecated.- Specified by:
setOptional
in interfaceArtifact
-
-